3 ms·
I had a coworker who was fanatical about removing else blocks, and would refactor entire files so that else wouldn't be necessary. This blog post is about guar
by camgunz 9y ago
I had a coworker who was fanatical about removing else blocks, and would refactor entire files so that else wouldn't be necessary.
This blog post is about guard clauses and it's good advice. But if you find yourself refactoring huge chunks of code to avoid a keyword, even making code more complex as a result, stop and consider that you may be making things worse, and maybe look at your other habits to see if you're doing the same thing elsewhere.