Click here to Skip to main content
15,887,083 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: That's not nice! (disappearing files) Pin
ZurdoDev7-Jun-17 3:59
professionalZurdoDev7-Jun-17 3:59 
GeneralRe: That's not nice! (disappearing files) Pin
Nelek7-Jun-17 5:58
protectorNelek7-Jun-17 5:58 
GeneralRe: That's not nice! (disappearing files) Pin
PIEBALDconsult7-Jun-17 12:26
mvePIEBALDconsult7-Jun-17 12:26 
GeneralIf it fails, try again Pin
gjp13112-Jun-17 18:36
gjp13112-Jun-17 18:36 
GeneralRe: If it fails, try again Pin
Super Lloyd2-Jun-17 19:41
Super Lloyd2-Jun-17 19:41 
GeneralRe: If it fails, try again Pin
gjp13114-Jun-17 13:31
gjp13114-Jun-17 13:31 
JokeRe: If it fails, try again Pin
sx20086-Jun-17 12:55
sx20086-Jun-17 12:55 
GeneralRe: If it fails, try again Pin
Sander Rossel4-Jun-17 1:03
professionalSander Rossel4-Jun-17 1:03 
I've seen and written code like that.
One time there was a bug in a big ass Oracle procedure that made it return no records on the first try, but did the right thing after that (don't know what it was, we're talking about 100's of lines of Oracle code, a horror in its own right!).
Once had an issue with a rather unstable connection that often made it fail the first time.
Same thing for timeouts. Timeout on first try, instant result on the second try.

While retrying isn't really a solution it may get the desired result with very few trouble.
Especially useful when it has to work NOW and the real issue is not so easy to fix (or not yours to fix).

GeneralRe: If it fails, try again Pin
gjp13114-Jun-17 13:33
gjp13114-Jun-17 13:33 
GeneralRe: If it fails, try again Pin
Graham Coulby4-Jun-17 20:18
Graham Coulby4-Jun-17 20:18 
GeneralRe: If it fails, try again Pin
Daniel Pfeffer4-Jun-17 21:11
professionalDaniel Pfeffer4-Jun-17 21:11 
GeneralRe: If it fails, try again Pin
Kirk 103898215-Jun-17 5:21
Kirk 103898215-Jun-17 5:21 
GeneralRe: If it fails, try again Pin
PIEBALDconsult6-Jun-17 10:21
mvePIEBALDconsult6-Jun-17 10:21 
GeneralRe: If it fails, try again Pin
Rob Grainger6-Jul-17 2:09
Rob Grainger6-Jul-17 2:09 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 1:14
professionalSander Rossel5-Jun-17 1:14 
GeneralRe: If it fails, try again Pin
the Kris5-Jun-17 0:30
the Kris5-Jun-17 0:30 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 1:10
professionalSander Rossel5-Jun-17 1:10 
JokeRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 3:05
professionalJim_Snyder5-Jun-17 3:05 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 5:30
professionalSander Rossel5-Jun-17 5:30 
GeneralRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 6:04
professionalJim_Snyder5-Jun-17 6:04 
PraiseRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 6:05
professionalJim_Snyder5-Jun-17 6:05 
GeneralRe: If it fails, try again Pin
kalberts5-Jun-17 22:06
kalberts5-Jun-17 22:06 
GeneralRe: If it fails, try again Pin
Sander Rossel6-Jun-17 5:58
professionalSander Rossel6-Jun-17 5:58 
GeneralRe: If it fails, try again Pin
Nelek6-Jun-17 6:53
protectorNelek6-Jun-17 6:53 
GeneralRe: If it fails, try again Pin
Sander Rossel6-Jun-17 11:06
professionalSander Rossel6-Jun-17 11:06 

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.