Warning: I’m going to tell a short story from World War II. If you have strong feelings about this time in history…
JavaScript has this very strange construct called an array-like.
Array-like objects aren’t arrays, they’re objects that have a length property and indexed properties (indexed properties have a numeric identifier). They are EXTREMELY simple to…
One of the more simple code smells to look for is Selector Arguments.
Imagine the following scene: You’re at home, sitting in your living room, curled up in your…
Being able to handle the ability to call a single function with variable inputs is really nice. Sometimes we need a function to do different things based on the parameters given. When doing this be sure to consider code smells like I detailed in my last email.
In your life you have a calling, a mission. Possibly more than one, and certainly over the course you will have…
I know, long method? Come on. That’s an easy one: just don’t write long methods. Easy right?
One of the more interesting code smells is changing our level of abstraction. This…
A famous baseball-related quote is often attributed to Yogi Berra: “You can’t think and…
You’re probably reading this on the weekend. The workweek is over. You get your break. We often look forward to the weekend for a much-needed…