Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
DotSln1477ySo he didn't really learn How to use it.
It's like - I guess everyone knows some chess-rules. But to play it properly is a different thing. 😏 -
p100sch15007yI can't understand the problem with his method. I always use try catch to manage any control flow, like throwing a costume exception instead of returns, using exceptions instead of breaks. I can't understand how this could be a problem. 😀
-
Axis8447yThis is actually a coding style mostly used in python but the idea is to use try catches instead of validating information with if statements https://stackoverflow.com/questions...
-
vhoyer13537y@Axis that's very nice to know and interesting to think, but still, we are not using python, and all the catches were empty (not even described what exception it was supposed to throw)
the person who wrote the code I'm maintaining had just learned try {}catch {} seriously, the guy preferred using try catch over ifs...
rant