Click here to Skip to main content
15,900,511 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
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 
As with any instruction in any language, improper use will get you into trouble. There are some 470,000 words in Webster's dictionary. Day-to-day we typically use less than 500. The others are there just in case but that doesn't mean we have to use them. The closer to bare metal you get, the more the higher level languages simply carry too much overhead to be practical. In resource-constrained environments you don't have the luxury of being elegant. On a 32K platform you're limited to about 3-5,000 lines of (C) code, you need to be creative and shortcuts save program space. When the need arises for an assembly stub, branches and jumps (assembly level GOTOs) are a way of life.

The GOTO instruction is a tool and like any tool, use it if you need it, but don't use it just because it's there. As it is said, if the only tool in your box is a hammer, you're constrained to build everything with nails, but if you need to nail something, it's useful (not necessary) to have a hammer.
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 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
bleahy488-Jun-18 3:23
bleahy488-Jun-18 3:23 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
obermd8-Jun-18 3:27
obermd8-Jun-18 3:27 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Member 136445608-Jun-18 4:29
Member 136445608-Jun-18 4:29 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
SeattleC++8-Jun-18 5:16
SeattleC++8-Jun-18 5:16 
Generalgoto considered useful Pin
Martijn Smitshoek8-Jun-18 7:39
Martijn Smitshoek8-Jun-18 7:39 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
TNCaver8-Jun-18 15:17
TNCaver8-Jun-18 15:17 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
AnotherKen8-Jun-18 15:52
professionalAnotherKen8-Jun-18 15:52 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
jschell9-Jun-18 4:58
jschell9-Jun-18 4:58 
GeneralThought of the Day Pin
OriginalGriff7-Jun-18 5:00
mveOriginalGriff7-Jun-18 5:00 
GeneralRe: Thought of the Day Pin
den2k887-Jun-18 5:02
professionalden2k887-Jun-18 5:02 
GeneralRe: Thought of the Day Pin
megaadam7-Jun-18 5:09
professionalmegaadam7-Jun-18 5:09 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani7-Jun-18 5:33
professionalRavi Bhavnani7-Jun-18 5:33 
GeneralRe: Thought of the Day Pin
jeron17-Jun-18 7:04
jeron17-Jun-18 7:04 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani7-Jun-18 8:38
professionalRavi Bhavnani7-Jun-18 8:38 
GeneralRe: Thought of the Day Pin
jeron17-Jun-18 9:23
jeron17-Jun-18 9:23 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   490 votes