Click here to Skip to main content
15,867,453 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: Which one is better Pin
AspDotNetDev27-Sep-10 7:42
protectorAspDotNetDev27-Sep-10 7:42 
GeneralRe: Which one is better Pin
elitig28-Sep-10 22:27
elitig28-Sep-10 22:27 
GeneralTake a Nap Pin
Chris Meech22-Sep-10 8:07
Chris Meech22-Sep-10 8:07 
GeneralRe: Take a Nap Pin
fjdiewornncalwe22-Sep-10 11:45
professionalfjdiewornncalwe22-Sep-10 11:45 
GeneralRe: Take a Nap Pin
The Man from U.N.C.L.E.24-Sep-10 1:50
The Man from U.N.C.L.E.24-Sep-10 1:50 
GeneralRe: Take a Nap Pin
fjdiewornncalwe24-Sep-10 3:32
professionalfjdiewornncalwe24-Sep-10 3:32 
GeneralRe: Take a Nap Pin
The Man from U.N.C.L.E.24-Sep-10 4:25
The Man from U.N.C.L.E.24-Sep-10 4:25 
GeneralRe: Take a Nap Pin
Graham Cottle24-Sep-10 3:36
professionalGraham Cottle24-Sep-10 3:36 
Hmmm. Did something similar a while ago when I wrote my first multithreading application. It was getting three datasets from a database and needed all three to finish before moving on. Initially, I had the sleep before I got the threads to synchronise properly. However, I forgot to take the sleep out. Application went into Production and only after a complaint a few months later did I investigate and find the gem.

Good thing was that I looked like a hero because I made the application so much quicker. One of these days I'll own up!
GeneralRe: Take a Nap Pin
Chris Meech24-Sep-10 4:37
Chris Meech24-Sep-10 4:37 
GeneralRe: Take a Nap Pin
Gary Wheeler29-Sep-10 0:36
Gary Wheeler29-Sep-10 0:36 
GeneralRe: Take a Nap Pin
ghle29-Sep-10 19:30
ghle29-Sep-10 19:30 
GeneralRe: Take a Nap Pin
Peter_in_278029-Sep-10 20:14
professionalPeter_in_278029-Sep-10 20:14 
GeneralWhew Pin
Richard A. Dalton22-Sep-10 6:47
Richard A. Dalton22-Sep-10 6:47 
GeneralRe: Whew Pin
Chris Meech22-Sep-10 7:37
Chris Meech22-Sep-10 7:37 
GeneralRe: Whew Pin
fjdiewornncalwe22-Sep-10 7:56
professionalfjdiewornncalwe22-Sep-10 7:56 
GeneralRe: Whew Pin
JHizzle24-Sep-10 3:20
JHizzle24-Sep-10 3:20 
GeneralRe: Whew Pin
RugbyLeague27-Sep-10 4:15
RugbyLeague27-Sep-10 4:15 
GeneralRe: Whew Pin
BillW3322-Sep-10 9:03
professionalBillW3322-Sep-10 9:03 
GeneralRe: Whew Pin
Richard A. Dalton22-Sep-10 15:47
Richard A. Dalton22-Sep-10 15:47 
GeneralRe: Whew Pin
Gary Wheeler29-Sep-10 0:38
Gary Wheeler29-Sep-10 0:38 
GeneralRe: Whew Pin
Richard A. Dalton29-Sep-10 0:48
Richard A. Dalton29-Sep-10 0:48 
GeneralWriting to a Text File 101 Pin
QuiJohn17-Sep-10 4:23
QuiJohn17-Sep-10 4:23 
GeneralRe: Writing to a Text File 101 Pin
AspDotNetDev17-Sep-10 5:14
protectorAspDotNetDev17-Sep-10 5:14 
GeneralRe: Writing to a Text File 101 Pin
QuiJohn17-Sep-10 5:19
QuiJohn17-Sep-10 5:19 
GeneralRe: Writing to a Text File 101 Pin
RugbyLeague17-Sep-10 5:46
RugbyLeague17-Sep-10 5:46 

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.