Coding Tip: Try to Code Without If-statements
Samer Buna

Fantastic write up. I am always leery of using any kind of branching logic as it always introduces the possibility of bugs and makes unit testing harder. My rule of thumb has always been if you have more than one branch in a function it is time to refactor.

Love the examples, only comment I would have is with your last example I probably would have factored out the functionality of the object to call individual functions vice having them inline.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.