How to Console Yourself through JavaScript Debugging

Debugging JavaScript can be frustrating sometimes, or at least time-consuming. To reduce the amount of suffering invovled, I’m going to share some of the processes that I take to debug JavaScript in the browser. I’ll focus on the debugging tools offered by the unexplored Console api. There’s a lot of good functionality beyond the tried-and-true console.log.
Read more on How to Console Yourself through JavaScript Debugging…

Be Expressive: How to Give Your Variables Better Names

Well-named variables are one of the most useful tools for building a maintainable and predictable codebase. Poor variable names can confuse users, but good ones make code seem effortless. As Ward Cunningham put it:

You know you are working on clean code when each routine turns out to be pretty much what you expected.

Naming variables well is one of the first and most important things you can do to create code that feels expected.
Read more on Be Expressive: How to Give Your Variables Better Names…