<story><title>Debugging Node.js in Production</title><url>http://techblog.netflix.com/2015/12/debugging-nodejs-in-production.html</url></story><parent_chain><item><author>ameen</author><text>I&amp;#x27;ve never understood JScripters&amp;#x27; insistence on anonymous functions instead of named ones.&lt;p&gt;As someone just delving into Node from another platform what&amp;#x27;re &amp;quot;proper best practices&amp;quot;-based JS patterns?</text></item><item><author>z3t4</author><text>&amp;quot;Name your functions&amp;quot;: Easier to know what the code does, flattens the &amp;quot;Christmas tree from hell&amp;quot;, no need for ugly closures, + Makes it&amp;#x27;s easier to debug.
Anonymous functions is probably the most abused syntax in JavaScript.</text></item></parent_chain><comment><author>nawitus</author><text>Lambdas make code really easy to read compared to making the reader skip around the code. In addition, it reduces boilerplate code and requires less time to be spent on naming functions. Of course, it all depends on situation. Simple logic which is not beneficial elsewhere can be implemented as an anonymous function in my opinion.&lt;p&gt;For example:
if(objects.find(object =&amp;gt; object.id === id)) {}</text></comment>
<story><title>Debugging Node.js in Production</title><url>http://techblog.netflix.com/2015/12/debugging-nodejs-in-production.html</url></story><parent_chain><item><author>ameen</author><text>I&amp;#x27;ve never understood JScripters&amp;#x27; insistence on anonymous functions instead of named ones.&lt;p&gt;As someone just delving into Node from another platform what&amp;#x27;re &amp;quot;proper best practices&amp;quot;-based JS patterns?</text></item><item><author>z3t4</author><text>&amp;quot;Name your functions&amp;quot;: Easier to know what the code does, flattens the &amp;quot;Christmas tree from hell&amp;quot;, no need for ugly closures, + Makes it&amp;#x27;s easier to debug.
Anonymous functions is probably the most abused syntax in JavaScript.</text></item></parent_chain><comment><author>aus_</author><text>&lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;callbackhell.com&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;callbackhell.com&lt;/a&gt; is a good starting point.</text></comment>