Clean code

  • The bouncer pattern

    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 statements

    The switch statement is a powerful tool for every developer but it's quite verbose. Let's try to use object literals instead