Friday, April 11

A note from Goto's Legal Representative

People are annoying me by EVEN TODAY talking about Spaghetti Programming as if Spaghetti Programing is the use of Goto. People think so long as their program text doesn't contain gotos it's linear and easy to understand. Leave Goto the fuck alone. I mean, seriously, between Procedures, Functions, Methods, Objects and various iterators, there are plenty of new ways to make people scroll up and down your code as if they're trying to loose weight sitting down. I agree that Goto is useless out of any language that doesn't use line-numbers, but wait... that's all languages. The poor thing is extinct: dead with a bad reputation. Sometimes it was the right tool for a job. It's certainly less confusing than breaking from a switch case. Unless we're talking about VB's goto, where it takes you to a label. I mean, "goto line 53" I can do. "goto flibble" isn't so great. What direction is flibble even in?. Additionally, VB isn't even linear, it's event driven! It makes very little sense!

0 Comments:

Post a Comment

<< Home