design
design copied to clipboard
`if` vs `switch` vs OOP
When to use each.
Self-promotion: remember that the code smells talk distills a lot of internal discussion about different approaches to conditional logic: https://github.com/jennybc/code-smells-and-feels
And #99