<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>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>The argument that stack traces are easier to debug when functions are named is always brought up when talking about the issue of naming functions. However, I don&amp;#x27;t quite understand why it&amp;#x27;s such a big issue. Whenever I get a stack trace the issue is almost always easy to debug. That has been my experience working with JavaScript full time for two and a half years.&lt;p&gt;And every difficult to debug bug hasn&amp;#x27;t been related to knowing which functions are in the stack, but are instead related to figuring out why frameworks do something or race conditions and so on.&lt;p&gt;I just find it surprising that people are having problems with anonymous functions in stack traces, when I&amp;#x27;ve never seen that.</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>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>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></comment>