Tag Archives: Code

Review: Learning Dojo by Peter Svensson

… or How to Write a Good JavaScript Book It’s widely known that the vast majority of JavaScript books that exist are bad. Unfortunately, I have another one to add to the list: Learning Dojo by Peter Svensson. I fought … Continue reading

Posted in Code, JavaScript, Opinion, Reviews | Tagged , , | 2 Comments

A Week in JavaScript Patterns: Self-invocation

I would like to begin this series of posts with one of the most useful and commonplace patterns in my code. Arguably, this can be considered a feature of the JavaScript language rather than a design pattern; however, when considering … Continue reading

Posted in Code, Design Patterns, JavaScript | Tagged , | 5 Comments

Improving the Module

Update: In my code example below, I make use of a self variable. This probably isn’t the best idea in hindsight since JavaScript reserves self as a secondary reference to window. I’m always fascinated by the JavaScript language. What impressed … Continue reading

Posted in Code, Design Patterns, JavaScript | Tagged , , , | 3 Comments