Click here to Skip to main content
15,867,851 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: Throwing exception Pin
Mohibur Rashid20-Jul-18 19:17
professionalMohibur Rashid20-Jul-18 19:17 
GeneralRe: Throwing exception Pin
Super Lloyd21-Jul-18 0:44
Super Lloyd21-Jul-18 0:44 
GeneralRe: Throwing exception Pin
Sander Rossel22-Jul-18 3:22
professionalSander Rossel22-Jul-18 3:22 
GeneralRe: Throwing exception Pin
Super Lloyd23-Jul-18 0:07
Super Lloyd23-Jul-18 0:07 
GeneralRe: Throwing exception Pin
Philippe Mori21-Jul-18 15:30
Philippe Mori21-Jul-18 15:30 
GeneralRe: Throwing exception Pin
Mohibur Rashid22-Jul-18 12:41
professionalMohibur Rashid22-Jul-18 12:41 
GeneralRe: Throwing exception Pin
Nathan Minier23-Jul-18 1:49
professionalNathan Minier23-Jul-18 1:49 
GeneralRe: Throwing exception Pin
raddevus24-Jul-18 3:06
mvaraddevus24-Jul-18 3:06 
OOAD commandments:
"Thou shalt not use exceptions for flow control."

Right. Because exceptions used for flow control are gotos. Smile | :)
The code jumps to the exception handling routine on error, just as a goto jumps to another place.
GeneralBurn Baby, Burn! PinPopular
Randor 18-Jul-18 14:43
professional Randor 18-Jul-18 14:43 
GeneralRe: Burn Baby, Burn! Pin
Abbas A. Ali19-Jul-18 21:52
professionalAbbas A. Ali19-Jul-18 21:52 
GeneralRe: Burn Baby, Burn! Pin
Bruce Patin20-Jul-18 3:32
Bruce Patin20-Jul-18 3:32 
GeneralRe: Burn Baby, Burn! Pin
SeattleC++20-Jul-18 8:01
SeattleC++20-Jul-18 8:01 
GeneralRe: Burn Baby, Burn! Pin
Steve Naidamast20-Jul-18 4:51
professionalSteve Naidamast20-Jul-18 4:51 
GeneralRe: Burn Baby, Burn! Pin
Abbas A. Ali20-Jul-18 6:02
professionalAbbas A. Ali20-Jul-18 6:02 
GeneralRe: Burn Baby, Burn! Pin
Slow Eddie20-Jul-18 14:34
professionalSlow Eddie20-Jul-18 14:34 
GeneralRe: Burn Baby, Burn! Pin
David A. Gray6-Oct-18 10:27
David A. Gray6-Oct-18 10:27 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 5:36
professionalMSBassSinger20-Jul-18 5:36 
GeneralRe: Burn Baby, Burn! Pin
Richard Deeming20-Jul-18 5:38
mveRichard Deeming20-Jul-18 5:38 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 6:28
professionalMSBassSinger20-Jul-18 6:28 
GeneralRe: Burn Baby, Burn! Pin
Richard Deeming20-Jul-18 6:52
mveRichard Deeming20-Jul-18 6:52 
GeneralRe: Burn Baby, Burn! Pin
MSBassSinger20-Jul-18 7:01
professionalMSBassSinger20-Jul-18 7:01 
GeneralRe: Burn Baby, Burn! Pin
Robert/Not The Pirate20-Jul-18 8:41
professionalRobert/Not The Pirate20-Jul-18 8:41 
GeneralRe: Burn Baby, Burn! Pin
Slow Eddie20-Jul-18 14:31
professionalSlow Eddie20-Jul-18 14:31 
GeneralRe: Burn Baby, Burn! Pin
David A. Gray6-Oct-18 10:56
David A. Gray6-Oct-18 10:56 
GeneralRe: Burn Baby, Burn! Pin
André Pereira20-Jul-18 0:24
André Pereira20-Jul-18 0:24 

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.