I’m going to kick the new year off with a 10 part series that I call “Responsible JavaScript.”
Most professional JavaScript programmers are well aware of the “bad” parts of JavaScript. We’re told to avoid them at all costs and our programs will be better as a result. For an in-depth overview of the bad parts of JavaScript, check out Doug Crockford’s JavaScript: The Good Parts. In addition to the bad parts, there are piles of other best practices which we’re told to strictly adhere to (no globals, eval is evil, …).
While all of these mantra’s are wise words to live by, it’s important to understand exactly why these best practices exist. Through that understanding, we can even find responsible ways to make use of some of these forbidden areas in our programs.
So without further ado, here is my list of focus points (in no particular order):
- Part 1: Globals
- Part 2: Namespaces
- Part 3: Prototype Modification
- Part 4: Using Factories
- Part 5: Using ‘this’
- Part 6: Incrementing and Decrementing
- Part 7: Using Switch
- Part 8: Testing Equality
- Part 9: Using eval
- Part 10: The $ function
Keep checking back here, I’ll be updating these daily. Also, if you’re in NYC, I’ll be presenting on these and a few other areas next week at the Refresh NYC January Meeting.
hello M+G
come back korea!!