You can subscribe to the javascript tag micro-feed.

Eval is not Evil

We’ve all read JavaScript: The Good Parts, and there is plenty of wisdom in Douglas Crockford’s landmark work. His reminder that eval is evil has echoed through the JavaScript community and saved many people from a total mess. However, as programmers we must remain thinking individuals who question received wisdom. You must resist inappropriate use […]

The JavaScript NIFE Pattern

Most JavaScript developers are very familiar with the Immediately Invoked Function Expression (IIFE): (function () { var x = ‘loaded’; console.log(x); }()); In this expression, we create a function that wraps all the enclosed code in its scope, and at the end we execute the function with the parentheses. If you aren’t super-careful though, you […]