I’m not a huge fan of the switch statement. While when used in the correct scenarios it can be a big help, eliminating code duplication and increasing readability and maintainability, it is often thrown around in many situations when it actually works against developers and decreases these important metrics. A common use is to assign …
Read more