What's the best code you ever wrote? Is it the most clever, or the cleanest. The most fun problem to solve, or the most impactful. The surprise throwaway everyone uses, or the love nobody noticed. (more…)
Read more »
Constants, globals and nested object namespacing, by convention, use all UPPERCASE for those variable names.
also removed an extra line space from line 142. (more…)
Read more »
Lots of people treat the ternary operator with suspicion. At first glance, ternaries appear unnecessary. Nothing more than a tool for the overly clever to trim some characters from their code. A favourite hack for coders who don’t care about readability. ... (more…)
Read more »
Unit tests are a great way to get quick feedback after any code change — if you know how to use and write them well. The key factor to… (more…)
Read more »