Submitted by Dacadey t3_z89cro in explainlikeimfive
Sloloem t1_iyed84i wrote
Reply to comment by SuperBelgian in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
That's all true, you're absolutely right. I was just trying to keep my anecdote from getting too lengthy by leaving out details...in this case the code in question was written in Java in 2009 and running on IBM WebSphere on contemporary datacenter hardware so there were really better ways to have laid it out. Maybe the robots are stack limited which makes sense, but refactoring it is still a good thought experiment if nothing else.
Viewing a single comment thread. View all comments