Click here to Skip to main content
15,888,286 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: How to get today's date Pin
Marc Clifton15-Sep-09 9:46
mvaMarc Clifton15-Sep-09 9:46 
GeneralRe: How to get today's date Pin
Mark Hurd15-Sep-09 20:10
Mark Hurd15-Sep-09 20:10 
GeneralRe: How to get today's date Pin
Dave Parker2-Oct-09 3:03
Dave Parker2-Oct-09 3:03 
GeneralKeyUp event PinPopular
Frederic Vaillancourt13-Aug-09 3:03
Frederic Vaillancourt13-Aug-09 3:03 
GeneralRe: KeyUp event Pin
0x3c013-Aug-09 6:42
0x3c013-Aug-09 6:42 
JokeRe: KeyUp event Pin
DaveyM6913-Aug-09 7:28
professionalDaveyM6913-Aug-09 7:28 
GeneralRe: KeyUp event Pin
0x3c013-Aug-09 7:50
0x3c013-Aug-09 7:50 
GeneralRe: KeyUp event Pin
supercat919-Aug-09 5:08
supercat919-Aug-09 5:08 
I remember one program which wanted to check if two variables were equal to something like 73 and 89, in either order, so rather than testing whether (var1=73 and var2=89) or (var1=89 and var2=73) it tested whether var*var2=6497. Not sure whether that qualifies as brilliant or horrible. The two variables were bytes, and the constants were primes, so the factorization was unique.
GeneralRe: KeyUp event Pin
OriginalGriff19-Aug-09 8:20
mveOriginalGriff19-Aug-09 8:20 
GeneralRe: KeyUp event Pin
supercat920-Aug-09 5:38
supercat920-Aug-09 5:38 
GeneralRe: KeyUp event Pin
justastupidgurl12-Sep-09 2:52
justastupidgurl12-Sep-09 2:52 
GeneralTry to find something dumber if you can... Pin
Bernard Laplace5-Aug-09 3:54
Bernard Laplace5-Aug-09 3:54 
GeneralRe: Try to find something dumber if you can... Pin
zlezj5-Aug-09 4:34
zlezj5-Aug-09 4:34 
GeneralRe: Try to find something dumber if you can... Pin
David Skelly5-Aug-09 6:14
David Skelly5-Aug-09 6:14 
JokeRe: Try to find something dumber if you can... Pin
Super Lloyd5-Aug-09 17:29
Super Lloyd5-Aug-09 17:29 
GeneralRe: Try to find something dumber if you can... Pin
Edbert P6-Aug-09 19:49
Edbert P6-Aug-09 19:49 
GeneralRe: Try to find something dumber if you can... Pin
Paw Jershauge6-Aug-09 20:57
Paw Jershauge6-Aug-09 20:57 
GeneralRe: Try to find something dumber if you can... Pin
supercat97-Aug-09 8:09
supercat97-Aug-09 8:09 
GeneralRe: Try to find something dumber if you can... Pin
Edbert P9-Aug-09 16:27
Edbert P9-Aug-09 16:27 
GeneralEnumerate Websites in Vista Pin
costas08114-Aug-09 4:14
costas08114-Aug-09 4:14 
GeneralNot a horror, but still ugly Pin
codemunkeh3-Aug-09 17:38
codemunkeh3-Aug-09 17:38 
GeneralRe: Not a horror, but still ugly Pin
dasli5-Aug-09 0:10
dasli5-Aug-09 0:10 
GeneralRe: Not a horror, but still ugly Pin
Michael Bookatz5-Aug-09 1:08
Michael Bookatz5-Aug-09 1:08 
GeneralRe: Not a horror, but still ugly Pin
Stryder_15-Aug-09 5:05
Stryder_15-Aug-09 5:05 
GeneralA Junior Developer Learns that Seniority Doesn't Mean Smarter Pin
Kevin McFarlane31-Jul-09 4:41
Kevin McFarlane31-Jul-09 4:41 

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.