Click here to Skip to main content
15,860,861 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: DFA code generation Pin
Anurag Gandhi30-Dec-15 18:46
professionalAnurag Gandhi30-Dec-15 18:46 
GeneralRe: DFA code generation Pin
Eddy Vluggen31-Dec-15 9:15
professionalEddy Vluggen31-Dec-15 9:15 
GeneralRe: DFA code generation Pin
danah gaz31-Dec-15 18:30
professionaldanah gaz31-Dec-15 18:30 
GeneralRe: DFA code generation Pin
Eddy Vluggen1-Jan-16 4:06
professionalEddy Vluggen1-Jan-16 4:06 
GeneralRe: DFA code generation Pin
PIEBALDconsult2-Jan-16 7:31
mvePIEBALDconsult2-Jan-16 7:31 
GeneralRe: DFA code generation Pin
danah gaz2-Jan-16 17:28
professionaldanah gaz2-Jan-16 17:28 
GeneralRe: DFA code generation Pin
Xmen Real 5-Jan-16 16:26
professional Xmen Real 5-Jan-16 16:26 
GeneralRe: DFA code generation Pin
danah gaz5-Jan-16 20:10
professionaldanah gaz5-Jan-16 20:10 
It's not wrong as such, but using it breaks control flow (such as gotoing out of a loop, or worse, into another loop) and can contribute to maintenance issues and general spaghetti code.

Obviously maintenance isn't really an issue for autogenerated code - as long as you have the tool that generates it whenever you are modifying the source file that creates it, but it is just offensive to one's sensibilities to look at modern code full of goto statements.


GeneralWindows 10 ... slow burn. Pin
StampedePress23-Dec-15 2:37
StampedePress23-Dec-15 2:37 
GeneralRe: Windows 10 ... slow burn. Pin
danah gaz30-Dec-15 18:21
professionaldanah gaz30-Dec-15 18:21 
GeneralRe: Windows 10 ... slow burn. Pin
Sander Rossel31-Dec-15 0:32
professionalSander Rossel31-Dec-15 0:32 
GeneralRe: Windows 10 ... slow burn. Pin
StampedePress31-Dec-15 1:48
StampedePress31-Dec-15 1:48 
GeneralRe: Windows 10 ... slow burn. Pin
Brisingr Aerowing31-Dec-15 6:12
professionalBrisingr Aerowing31-Dec-15 6:12 
GeneralRe: Windows 10 ... slow burn. Pin
StampedePress31-Dec-15 6:39
StampedePress31-Dec-15 6:39 
GeneralRe: Windows 10 ... slow burn. Pin
Brisingr Aerowing31-Dec-15 7:07
professionalBrisingr Aerowing31-Dec-15 7:07 
GeneralRe: Windows 10 ... slow burn. Pin
Eddy Vluggen31-Dec-15 9:18
professionalEddy Vluggen31-Dec-15 9:18 
GeneralUnique function name. Globally. Pin
Lutosław22-Dec-15 3:34
Lutosław22-Dec-15 3:34 
GeneralRe: Unique function name. Globally. Pin
RugbyLeague22-Dec-15 4:02
RugbyLeague22-Dec-15 4:02 
GeneralRe: Unique function name. Globally. Pin
OriginalGriff1-Jan-16 4:43
mveOriginalGriff1-Jan-16 4:43 
GeneralRe: Unique function name. Globally. Pin
RugbyLeague4-Jan-16 22:42
RugbyLeague4-Jan-16 22:42 
GeneralRe: Unique function name. Globally. Pin
  Forogar  10-Jan-16 9:20
professional  Forogar  10-Jan-16 9:20 
GeneralRe: Unique function name. Globally. Pin
RugbyLeague10-Jan-16 21:14
RugbyLeague10-Jan-16 21:14 
GeneralRe: Unique function name. Globally. Pin
BillW3322-Dec-15 4:26
professionalBillW3322-Dec-15 4:26 
JokeRe: Unique function name. Globally. Pin
Anurag Gandhi22-Dec-15 14:16
professionalAnurag Gandhi22-Dec-15 14:16 
GeneralRe: Unique function name. Globally. Pin
Brisingr Aerowing22-Dec-15 14:42
professionalBrisingr Aerowing22-Dec-15 14:42 

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.