Click here to Skip to main content

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, embarrasing 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.

 
RantRe: Sometimes I wonder about code comments PinmemberSuper Lloyd4-Mar-13 13:32 
GeneralRe: Sometimes I wonder about code comments Pinmemberwout de zeeuw6-Mar-13 14:31 
GeneralThis is the kind of productivity you get when you pay by lines of code PinmemberRob Grainger18-Feb-13 1:18 
JokeRe: This is the kind of productivity you get when you pay by lines of code PinprotectorAspDotNetDev18-Feb-13 9:32 
I say this developer had brilliant foresight and should be given both a raise and a promotion! They must have known that VB's built-in functions would be transitioned to the .Net Framework at some point. Now, they only have to change a single line of code to make sure their entire code base uses System.Threading.Thread.Sleep().
 
They have also created a function rather than a sub, a clever trick in case they ever decide to return a value (e.g., a bool indicating whether or not the sleep operation was successful). Ingenious!

GeneralRe: This is the kind of productivity you get when you pay by lines of code PinmemberNaerling18-Feb-13 20:45 
GeneralRe: This is the kind of productivity you get when you pay by lines of code PinmvpOriginalGriff19-Feb-13 4:59 
GeneralRe: This is the kind of productivity you get when you pay by lines of code PinmemberBernhard Hiller19-Feb-13 5:05 
GeneralRe: This is the kind of productivity you get when you pay by lines of code PinmvpMarcus Kramer20-Feb-13 3:13 
GeneralRe: This is the kind of productivity you get when you pay by lines of code Pinmemberwout de zeeuw6-Mar-13 14:31 
GeneralIF-free codes PinmemberSarK0Y15-Feb-13 12:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 20 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid