Click here to Skip to main content
16,010,394 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.

 
JokeRe: Care for belt, suspenders, and a spare rope? Pin
Bernhard Hiller29-May-12 0:01
Bernhard Hiller29-May-12 0:01 
JokeRe: Care for belt, suspenders, and a spare rope? Pin
BobJanova29-May-12 0:37
BobJanova29-May-12 0:37 
GeneralRe: Care for belt, suspenders, and a spare rope? PinPopular
OriginalGriff29-May-12 2:50
mveOriginalGriff29-May-12 2:50 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
Sander Rossel30-May-12 11:11
professionalSander Rossel30-May-12 11:11 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
OriginalGriff30-May-12 21:32
mveOriginalGriff30-May-12 21:32 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
KP Lee31-May-12 19:46
KP Lee31-May-12 19:46 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
OriginalGriff31-May-12 21:40
mveOriginalGriff31-May-12 21:40 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
Peter_in_278031-May-12 22:01
professionalPeter_in_278031-May-12 22:01 
OriginalGriff wrote:
"Don't like the OS? Use FORTRAN, and change it!"

You've just reminded me of my first ever hack. Back in 1964 or thereabouts at Monash Uni, they had a "state of the art" CDC 3200 to which we were allowed to send decks of punched cards. A day or so later, the deck reappeared, hopefully wrapped in a couple of pages of printout. We mere undergrads were limited to IIRC 30 secs run time, which became a bit of a limit on some of our "foreign orders". So, based on a knowledge of the constant absolute address of blank common and a bit of spelunking (find locations in the OS that changed more or less linearly with time...), I wrote an innocent looking FORTRAN subroutine that reset the job timer if it was close to running out. Oh, the joys of unchecked negative array indexes!

Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

GeneralRe: Care for belt, suspenders, and a spare rope? Pin
KP Lee1-Jun-12 20:25
KP Lee1-Jun-12 20:25 
GeneralRe: Care for belt, suspenders, and a spare rope? Pin
Kostya Kovalskyy30-May-12 22:45
Kostya Kovalskyy30-May-12 22:45 
GeneralInteresting usage of Enumerable.Range PinPopular
leppie22-May-12 22:41
leppie22-May-12 22:41 
GeneralRe: Interesting usage of Enumerable.Range Pin
Bernhard Hiller22-May-12 22:50
Bernhard Hiller22-May-12 22:50 
GeneralRe: Interesting usage of Enumerable.Range Pin
Sentenryu23-May-12 4:30
Sentenryu23-May-12 4:30 
GeneralRe: Interesting usage of Enumerable.Range Pin
PIEBALDconsult23-May-12 3:26
mvePIEBALDconsult23-May-12 3:26 
GeneralRe: Interesting usage of Enumerable.Range Pin
Rahul Rajat Singh28-May-12 2:00
professionalRahul Rajat Singh28-May-12 2:00 
GeneralMultithreading done "right" Pin
Fedor Hajdu22-May-12 3:07
professionalFedor Hajdu22-May-12 3:07 
GeneralRe: Multithreading done "right" Pin
Member 863053122-May-12 3:15
Member 863053122-May-12 3:15 
GeneralRe: Multithreading done "right" Pin
Fedor Hajdu22-May-12 3:17
professionalFedor Hajdu22-May-12 3:17 
GeneralRe: Multithreading done "right" PinPopular
TorstenH.22-May-12 3:18
TorstenH.22-May-12 3:18 
GeneralRe: Multithreading done "right" Pin
spencepk31-May-12 3:18
spencepk31-May-12 3:18 
GeneralRe: Multithreading done "right" Pin
Manfred Rudolf Bihy22-May-12 3:19
professionalManfred Rudolf Bihy22-May-12 3:19 
GeneralRe: Multithreading done "right" Pin
PIEBALDconsult22-May-12 3:24
mvePIEBALDconsult22-May-12 3:24 
GeneralRe: Multithreading done "right" Pin
Fedor Hajdu22-May-12 3:28
professionalFedor Hajdu22-May-12 3:28 
GeneralRe: Multithreading done "right" Pin
CDP180222-May-12 3:29
CDP180222-May-12 3:29 
GeneralRe: Multithreading done "right" Pin
PIEBALDconsult22-May-12 3:47
mvePIEBALDconsult22-May-12 3:47 

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.