News for hackers. Stuff that matters.
Re:Tutorial: Create a Mobile HTML5 Farming Game with LimeJS by kevincennis on Wednesday October 17, 2012 @01:53PM (#4665656)
It's awesome that people are writing articles on this stuff, but man -- some of the code in those examples is pretty rough.
Re:Tutorial: Create a Mobile HTML5 Farming Game with LimeJS by WesleyJohnson on Wednesday October 17, 2012 @02:36PM (#4665844)
Any specific examples you'd like to site? I always enjoy learning new things by seeing how people might re-factor or rewrite existing code samples.
Re:Tutorial: Create a Mobile HTML5 Farming Game with LimeJS by kevincennis on Wednesday October 17, 2012 @04:10PM (#4666191)
The block that starts with the comment `//shop items`:

`var label` gets declared 3 times inside each loop iteration. Even if JS had block scope, which it doesn't, that would be pretty bad.

Re:Tutorial: Create a Mobile HTML5 Farming Game with LimeJS by fariazz on Wednesday October 17, 2012 @05:05PM (#4666433)
Thanks for noticing that kevincennis I've just corrected it.