Regular Expressions Are Great… Sometimes

Regular expressions (or regex) are incredibly helpful tools to have at your disposal as a software developer, but they’re often dangerous tools. In this post, I’m going to focus on the times where you shouldn’t use regex, and then I’ll go over some strategies and features to use when you do write regular expressions. Lastly, I’ll provide a few other tools and resources that will further aid you when using regular expressions.
Read more on Regular Expressions Are Great… Sometimes…

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…