News for hackers. Stuff that matters.
Re:Javascript patterns by avodonosov on Thursday January 02, 2014 @02:59AM (#6998669)
Are you really going to write "var getData = function getDataF () { };"

instead of "function getData() {}"

for pseudo benefits like

* 1. Makes it easier to understand "functions as an object". * 2. It enforces good semicolon habits. * 3. Doesn't have much of the baggage traditionally associated with functions and scope.

?

Re:Javascript patterns by rnd33 on Thursday January 02, 2014 @03:52AM (#6998784)
Agreed, and what exactly is the baggage traditionally associated with functions and scope that you avoid by using a function expression?