Click here to Skip to main content
15,918,742 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
CPallini7-Jun-18 6:24
mveCPallini7-Jun-18 6:24 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
CodeWraith7-Jun-18 6:24
CodeWraith7-Jun-18 6:24 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 6:36
RandyBuchholz7-Jun-18 6:36 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
CodeWraith7-Jun-18 7:00
CodeWraith7-Jun-18 7:00 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Marc Clifton7-Jun-18 6:31
mvaMarc Clifton7-Jun-18 6:31 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 6:52
RandyBuchholz7-Jun-18 6:52 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Gary Wheeler7-Jun-18 6:50
Gary Wheeler7-Jun-18 6:50 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Navanax8-Jun-18 6:17
Navanax8-Jun-18 6:17 
Yup, been there. Just after starting my first "real" job in the early PC days (company upgraded the network file server to a bleeding-edge IBM AT just after I started), I had to debug a DOS BASIC program that implemented the equivalent of function/subroutine calls by saving the return line in a variable (all global, single letter optionally followed by a single digit), setting an ON ERROR GOTO for the desired function, then forcing an exception, and using the same mechanism with the saved return line value to return. Written by a nuclear physicist, no REMarks in the code - just the physicist's hand-scrawled notes. I might be mistaken, but I seem to recall that there was a way to set the ON ERROR GOTO for different target lines depending on the exception code generated, and this was used to pick which "function" to "call" at various locations in the code.

Today, he probably would have coded the entire thing as a single Excel macro with just Row-Column cell references and of course, no labels, headings, etc. Laugh | :laugh:
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Rick York7-Jun-18 7:25
mveRick York7-Jun-18 7:25 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
GuyThiebaut7-Jun-18 7:47
professionalGuyThiebaut7-Jun-18 7:47 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
CodeWraith7-Jun-18 10:24
CodeWraith7-Jun-18 10:24 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
kmoorevs7-Jun-18 11:05
kmoorevs7-Jun-18 11:05 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
GuyThiebaut7-Jun-18 20:37
professionalGuyThiebaut7-Jun-18 20:37 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Nathan Minier7-Jun-18 7:53
professionalNathan Minier7-Jun-18 7:53 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Maximilien7-Jun-18 8:00
Maximilien7-Jun-18 8:00 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
OriginalGriff7-Jun-18 8:13
mveOriginalGriff7-Jun-18 8:13 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Eddy Vluggen7-Jun-18 8:16
professionalEddy Vluggen7-Jun-18 8:16 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 9:04
RandyBuchholz7-Jun-18 9:04 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Eddy Vluggen7-Jun-18 11:09
professionalEddy Vluggen7-Jun-18 11:09 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
englebart8-Jun-18 2:01
professionalenglebart8-Jun-18 2:01 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Mycroft Holmes7-Jun-18 13:33
professionalMycroft Holmes7-Jun-18 13:33 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
CarelAgain7-Jun-18 19:44
professionalCarelAgain7-Jun-18 19:44 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
DKWatson7-Jun-18 21:43
DKWatson7-Jun-18 21:43 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
soulesurfer7-Jun-18 22:33
soulesurfer7-Jun-18 22:33 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
englebart8-Jun-18 2:09
professionalenglebart8-Jun-18 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.