Skip to content
PotHix edited this page Jan 15, 2012 · 4 revisions

This page was made to help new contributors on how to write code for Akihabara. We are using simple patterns:

Tipos from https://people.mozilla.com/~dmandelin/KnowYourEngines_Velocity2011.pdf

  • Always use for(var i=0; len=myArray.length; i++){} instead of for(i in myArray){} (because the second version is 20-80x slower )
  • Do not use throw/catch on the main loop
Clone this wiki locally