Click here to Skip to main content
15,905,614 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: Stupid Naming Consequences with LINQ Pin
Hired Mind13-Jul-10 10:00
Hired Mind13-Jul-10 10:00 
GeneralRe: Stupid Naming Consequences with LINQ Pin
Marcelo Ricardo de Oliveira8-Jul-10 6:50
Marcelo Ricardo de Oliveira8-Jul-10 6:50 
GeneralJavaScript Conditional Pin
Andres Martin23-Jun-10 12:05
Andres Martin23-Jun-10 12:05 
GeneralRe: JavaScript Conditional Pin
Luc Pattyn23-Jun-10 12:17
sitebuilderLuc Pattyn23-Jun-10 12:17 
GeneralRe: JavaScript Conditional Pin
oggenok6423-Jun-10 20:48
oggenok6423-Jun-10 20:48 
GeneralRe: JavaScript Conditional Pin
Kevin Drzycimski24-Jun-10 0:14
Kevin Drzycimski24-Jun-10 0:14 
GeneralRe: JavaScript Conditional Pin
Viorel.24-Jun-10 3:52
Viorel.24-Jun-10 3:52 
GeneralRe: JavaScript Conditional Pin
Electron Shepherd27-Jun-10 22:43
Electron Shepherd27-Jun-10 22:43 
GeneralRe: JavaScript Conditional Pin
Jeroen De Dauw24-Jun-10 3:54
Jeroen De Dauw24-Jun-10 3:54 
GeneralRe: JavaScript Conditional Pin
Tsuda Kageyu24-Jun-10 17:38
Tsuda Kageyu24-Jun-10 17:38 
GeneralRe: JavaScript Conditional Pin
whatrevolution25-Jun-10 2:54
whatrevolution25-Jun-10 2:54 
GeneralRe: JavaScript Conditional Pin
Lutosław27-Jun-10 1:12
Lutosław27-Jun-10 1:12 
GeneralRe: JavaScript Conditional Pin
whatrevolution27-Jun-10 3:18
whatrevolution27-Jun-10 3:18 
GeneralRe: JavaScript Conditional Pin
jsc4222-Jul-10 23:35
professionaljsc4222-Jul-10 23:35 
GeneralRe: JavaScript Conditional Pin
whatrevolution23-Jul-10 9:36
whatrevolution23-Jul-10 9:36 
GeneralWhat a trigger Pin
Bernhard Hiller22-Jun-10 23:39
Bernhard Hiller22-Jun-10 23:39 
GeneralRe: What a trigger Pin
Chris Meech23-Jun-10 6:16
Chris Meech23-Jun-10 6:16 
GeneralRe: What a trigger Pin
David Skelly23-Jun-10 22:52
David Skelly23-Jun-10 22:52 
GeneralRe: What a trigger Pin
Bernhard Hiller23-Jun-10 20:16
Bernhard Hiller23-Jun-10 20:16 
GeneralRe: What a trigger Pin
Covean23-Jun-10 23:20
Covean23-Jun-10 23:20 
GeneralDeliberate Crash Pin
ARopo16-Jun-10 4:01
ARopo16-Jun-10 4:01 
Once back in the early 90s when internet connections were not so common. I was working on some general exception trapping in an application written in C, to test it I added something like this to startup code of the application

int* ptrDummy = NULL;
if (*ptrDummy == 0) /* this causes an access violation*/


Having finished that I checked it in to the main product code which got build into a special release for a customer who had had some problems with the software. An engineer was sent from our office in the uk to the customer in the South of France with the software on a CD. The engineer then installed it on the customers system, ran it up in frount of the customer only to discover that it crashed on startup. Sorry engineer.
GeneralRe: Deliberate Crash Pin
rentzk16-Jun-10 6:18
rentzk16-Jun-10 6:18 
GeneralRe: Deliberate Crash Pin
Chris Meech16-Jun-10 6:40
Chris Meech16-Jun-10 6:40 
GeneralRe: Deliberate Crash Pin
Stryder_116-Jun-10 8:37
Stryder_116-Jun-10 8:37 
GeneralRe: Deliberate Crash Pin
ARopo16-Jun-10 23:41
ARopo16-Jun-10 23: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.