Sean ShaughnessyExtract 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…2 min read·Jul 20, 2021----
Sean ShaughnessyDon’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…3 min read·Jul 6, 2021----
Sean ShaughnessyIF-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…3 min read·Jun 24, 2021----
Sean ShaughnessyDon’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…2 min read·Jun 9, 2021----
Sean ShaughnessyAvoid 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:2 min read·May 20, 2021----