The bouncer patternPosted on:January 24, 2021 at 03:22 PM
The bouncer pattern is a very simple technique that can make your code more readable. It shines when it comes to pieces of code with many if/else statements and you want to get rid of some unwanted code indentation.
Simplify your switch statementsPosted on:December 31, 2020 at 03:22 PM
The switch statement is a powerful tool for every developer but it's quite verbose. Let's try to use object literals instead.