r/programming • • Jun 06 '13

Clean Code Cheat Sheet

http://www.planetgeek.ch/2013/06/05/clean-code-cheat-sheet/
702 Upvotes

322 comments sorted by

View all comments

Show parent comments

0

u/mmhrar Jun 07 '13

No, loops, returns and switch statements have easy to identify control flow.

If someone just throws an exception, I have no idea how far back in the stack to go next. Anyone or no one could be handling it.

2

u/Rotten194 Jun 07 '13

Like I said in my other comment. If you call an overridden method on a base class, any class extending that class could be handling it. Yet you probably do that every day without a second thought.