Extract Till You DropRecently, I watched a video from Uncle Bob where he talked about writing clean code. One of the most striking suggestions that he made is…Jul 20, 2021Jul 20, 2021
Don’t Have Two ProblemsJamie Zawinski once posted this on a message board: “Some people, when confronted with a problem, think ‘I know, I’ll use regular…Jul 6, 2021Jul 6, 2021
IF-less ProgrammingThere are several alternatives to IF statements in JavaScript. Today, I will be looking at a few of my favorites. These are very useful…Jun 24, 2021Jun 24, 2021
Don’t Write CENTS-less Code When Calculating MoneyIn my last blog: Avoid Magic Numbers in Writing Code | by Sean Shaughnessy | May, 2021 | Medium , I wrote about a number that you…Jun 9, 2021Jun 9, 2021
Avoid Magic Numbers in Writing CodeLet’s say you wanted to write an algorithm for shuffling a deck of cards in JavaScript. You might start with something like this:May 20, 2021May 20, 2021