Justin Ohms
Jun 13, 2022

--

No no no this is bad advice all around. Using else when you should use switch statements or objects and in general creating less readable code. Seeing an else statement is a good sign that you haven’t factored your logic correctly or into discrete areas of responsibility. You shouldn’t be looking to add more of them.

--

--

No responses yet