The Singleton Pattern
The Singleton pattern is useful when you want to ensure that only one instance of a class exists in your application. (For other design patterns, see Why Know Design Patterns?) Definition The ...
The Singleton pattern is useful when you want to ensure that only one instance of a class exists in your application. (For other design patterns, see Why Know Design Patterns?) Definition The ...
The Observer pattern is very useful when you have several classes (the observers) that depend on changing data in a specific class (the subject). (For other design patterns, see Why Know Design Pat...
I’ve recently worked on a project where part of the team was based in Eastern Europe and some in Minnesota. We had to offer support throughout the US (as far west as Hawaii). And of course, our log...
What is the “next level up” for a software engineer? The options are bewildering. Probably the first thing that comes to my mind is learning another programming language. Learning new programming l...
There are many key insights in Robert Martin’s Clean-Architecture: A Craftsman’s Guide to Software Structure and Design, and it’s well worth a read. It covers SOLID principles and how they apply on...
Fuzzy Find in the Terminal with fzf In this post, I’ll share how I use fzf to fuzzy find and open files in my Editor. I also have a post on how I use fzf to speed up working with Git on the command...
Using Git In this post, I’ll share how I use fzf to fuzzy find and open files in my Editor. I also have a post on how I use fzf to speed up working with Git on the command line, where I explain a ...
Introduction There are several reasons why you would want to link to a specific commit on GitHub. In active projects, code is always changing. You want to make sure that you’re linking to the exac...
The Problem Ever needed to remove all the duplicates from an Array in JavaScript, or in other words, had to filter an array for all its unique values? Well, there’s a hard way, an easy way, and an...
The Problem I recently needed to automatically run JavaScript on a page (owned by someone else) that I wanted to refresh after regular intervals. TLDR - Jump to the solution, which included creati...