Thread:Pecoes/@comment-4674838-20121012013714/@comment-4674838-20121016014045

$.makeArray is nice, I've used it a couple times. It's not really necessary, but in this sort of educational case, I just like it because it's easier to read than  and more obvious what the purpose of the code is. (I suppose if you had named the variable "argsAsArray" instead of "args" it would have been another way to make it immediately obvious what the code was doing)

JavaScript's call and apply methods I find particularly confusing when tracing program flow, as it's a highly unique (and odd) way of executing functions, so I try to avoid them as much as possible.

Self-executing functions that return a value that is used by something else is also a tricky pattern that I try to avoid. (Self-executing functions that return nothing are fine :)