News for hackers. Stuff that matters.
Re:Long live the callbacks by why-el on Thursday August 22, 2013 @11:11AM (#6257595)
This is in general a good advice for most languages; instead of calling a function multiple times, do it once (and potentially store the result if you want it for later use). A similar, albeit far more simple, example would be calling a length method when iterating over an array instead of saving it to a variable.

There are no comments on this comment yet.