Click here to Skip to main content
15,891,981 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: How to create mouse cursor control in C# Pin
RedDk7-Jun-18 12:29
RedDk7-Jun-18 12:29 
GeneralRe: How to create mouse cursor control in C# Pin
Dan Neely8-Jun-18 3:06
Dan Neely8-Jun-18 3:06 
GeneralRe: How to create mouse cursor control in C# Pin
Ryan Peden11-Jun-18 6:24
professionalRyan Peden11-Jun-18 6:24 
GeneralRe: How to create mouse cursor control in C# Pin
Dan Neely11-Jun-18 6:57
Dan Neely11-Jun-18 6:57 
GeneralRe: How to create mouse cursor control in C# Pin
Member 122681837-Jun-18 19:49
Member 122681837-Jun-18 19:49 
GeneralRe: How to create mouse cursor control in C# Pin
  Forogar  8-Jun-18 3:19
professional  Forogar  8-Jun-18 3:19 
GeneralRe: How to create mouse cursor control in C# Pin
User 48350477-Jun-18 10:57
User 48350477-Jun-18 10:57 
GeneralWhen I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 5:45
RandyBuchholz7-Jun-18 5:45 
Mention "goto" to many programmers and they'll say, "Never use them, they lead to spaghetti code." It's a conditioned response. It seems to be a definition - "Dad, what's for dinner?" - "We're having goto." - "Again?". Ask them to explain why it is so bad, and you'll likely get a blank stare, or they just chant "spaghetti, spaghetti, …" Of course, a misused goto can lead to spaghetti code, but a (misused) [any reserved word] can lead to [some bad thing]. Have we developed an irrational fear of goto born out of ancient coding dogma? Or is goto inherently and absolutely evil? Smile | :)

Update: As suggested by englebart, I'm adding why I asked this question.

It came out of a recent discussion. I was reviewing some code someone showed me (they didn't write it) that had a goto in it. He said the code was Spaghetti Code. When I asked why, he said because it had a goto. I asked why that made it spaghetti, and all he could come up with was that he was taught that. I asked about a few other "programming truths", and had much the same response. This is good, that is bad, but I don't really know why. I started thinking about how for some things, aspects of programming have become more faith than science.

modified 8-Jun-18 8:46am.

GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
den2k887-Jun-18 5:54
professionalden2k887-Jun-18 5:54 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 6:14
RandyBuchholz7-Jun-18 6:14 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
den2k887-Jun-18 21:03
professionalden2k887-Jun-18 21:03 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
KBZX50007-Jun-18 21:15
KBZX50007-Jun-18 21:15 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Plamen Dragiyski7-Jun-18 22:24
professionalPlamen Dragiyski7-Jun-18 22:24 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
den2k887-Jun-18 22:25
professionalden2k887-Jun-18 22:25 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Plamen Dragiyski7-Jun-18 23:17
professionalPlamen Dragiyski7-Jun-18 23:17 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
jschell9-Jun-18 5:01
jschell9-Jun-18 5:01 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
User 110609797-Jun-18 6:01
User 110609797-Jun-18 6:01 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
RandyBuchholz7-Jun-18 6:03
RandyBuchholz7-Jun-18 6:03 
GeneralRe: When I say "goto", my parrot says "Spaghetti Code" Pin
Randor 7-Jun-18 6:18
professional Randor 7-Jun-18 6:18 
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 

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.