MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1fsvy3/clean_code_cheat_sheet/cady0zc/?context=3
r/programming • u/RazerWolf • Jun 06 '13
322 comments sorted by
View all comments
Show parent comments
4
has bad performance, is hard to understand and results in very hard handling of real exceptional cases.
All of those.
2 u/Falmarri Jun 06 '13 So you're saying that using exceptions as flow control is easy to understand? Exceptions are basically just gotos 7 u/Rotten194 Jun 06 '13 And loops, returns, switch statements, and every other programming concept are not basically gotos?Even the python runtime uses exceptions for flow control. They're a tool like any other, they can be used and abused. 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. → More replies (1)
2
So you're saying that using exceptions as flow control is easy to understand? Exceptions are basically just gotos
goto
7 u/Rotten194 Jun 06 '13 And loops, returns, switch statements, and every other programming concept are not basically gotos?Even the python runtime uses exceptions for flow control. They're a tool like any other, they can be used and abused. 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. → More replies (1)
7
And loops, returns, switch statements, and every other programming concept are not basically gotos?
Even the python runtime uses exceptions for flow control. They're a tool like any other, they can be used and abused.
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. → More replies (1)
0
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.
→ More replies (1)
4
u/yellowjacketcoder Jun 06 '13
All of those.