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.

 
GeneralRe: Reversing time, without a flux capacitor Pinmemberenglebart23-Jan-13 3:35 
GeneralRe: Reversing time, without a flux capacitor PinmemberGary R. Wheeler23-Jan-13 11:45 
GeneralRe: Reversing time, without a flux capacitor PinmemberMember 793197823-Jan-13 5:44 
GeneralRe: Reversing time, without a flux capacitor PinmemberGary R. Wheeler23-Jan-13 11:58 
JokeRe: Reversing time, without a flux capacitor PinmemberRafagaX23-Jan-13 6:21 
GeneralRe: Reversing time, without a flux capacitor PinmemberPaulo Zemek23-Jan-13 7:37 
GeneralRe: Reversing time, without a flux capacitor PinmemberJonathan C Dickinson3-Feb-13 22:47 
GeneralThe best refactoring I have ever seen Pinmembermatt_taws17-Jan-13 1:29 
Apparently, one of my co-workers found out that the GetTickCount function from the Windows API isn't reliable as it seemed in the first time he used it. The solution, obviously, was to refactor our code base to use a more reliable function, like timeGetTime.
 
I almost cried when I saw his commit changing a bunch of *.cpp files, with the following code in the beginning of every file:
 
 
#undef GetTickCount
#define GetTickCount timeGetTime
 
 
Sad thing is, he doesn't take criticism well.
GeneralRe: The best refactoring I have ever seen PinmemberSuper Lloyd17-Jan-13 2:42 
GeneralRe: The best refactoring I have ever seen PinmemberJonathan C Dickinson17-Jan-13 3:22 
GeneralRe: The best refactoring I have ever seen PinmemberPIEBALDconsult17-Jan-13 3:48 
GeneralRe: The best refactoring I have ever seen PinmemberRob Grainger1-Feb-13 3:17 
GeneralWhat was I thinking Pinmemberdjj5516-Jan-13 1:15 
GeneralRe: What was I thinking PinmemberDavid Goebet16-Jan-13 1:40 
GeneralRe: What was I thinking PinmemberMatt U.16-Jan-13 1:56 
GeneralRe: What was I thinking Pinmemberpeterchen16-Jan-13 3:24 
GeneralRe: What was I thinking PinmemberG James16-Jan-13 9:57 
JokeRe: What was I thinking PinadminChris Maunder16-Jan-13 18:02 
GeneralRe: What was I thinking Pinmember33deepak16-Jan-13 18:13 
GeneralRe: What was I thinking PinadminChris Maunder16-Jan-13 18:14 
GeneralRe: What was I thinking PinmemberJames Lonero19-Jan-13 11:08 
JokeRe: What was I thinking PinmemberAndrew Rissing17-Jan-13 5:48 
GeneralRe: What was I thinking PinadminChris Maunder17-Jan-13 9:43 
GeneralRe: What was I thinking PinmemberAndrew Rissing17-Jan-13 9:55 
JokeRe: What was I thinking PinmemberJecc22-Jan-13 23:56 

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
Web01 | 2.8.140709.1 | Last Updated 14 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid