Click here to Skip to main content
15,923,051 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: Nice usage of foreach Pin
Soundman32.225-Feb-09 6:12
Soundman32.225-Feb-09 6:12 
GeneralRe: Nice usage of foreach Pin
JasonPSage27-Feb-09 7:14
JasonPSage27-Feb-09 7:14 
GeneralIf File exist Pin
Yusuf11-Feb-09 4:13
Yusuf11-Feb-09 4:13 
GeneralRe: If File exist Pin
Tony Pottier12-Feb-09 4:29
Tony Pottier12-Feb-09 4:29 
GeneralRe: If File exist Pin
oggenok6412-Feb-09 6:45
oggenok6412-Feb-09 6:45 
GeneralRe: If File exist Pin
Yusuf12-Feb-09 8:15
Yusuf12-Feb-09 8:15 
GeneralRe: If File exist Pin
Donsw17-Feb-09 2:37
Donsw17-Feb-09 2:37 
GeneralRe: If File exist Pin
dojohansen10-Mar-09 22:23
dojohansen10-Mar-09 22:23 
Classical! Presumably the dev didn't understand or did not care to understand what the old code was doing and decided to leave it there "just in case".

At my company we've got the full source history in a sourcesafe database (though we are finally moving on to Team System now), but a lot of people still attempt to keep a full version history in the latest version of the code - never removing anything, but commenting it out and usually adding their initials and the date and time, as if this would actually help anyone later on. In my view it just distracts, and is never really useful since it's far easier to compare versions in sourcesafe than comparing the comments to the current code.

Well, at least they comment it out rather than leave the old code in there...
GeneralRe: If File exist Pin
Yusuf11-Mar-09 3:41
Yusuf11-Mar-09 3:41 
GeneralSomewhat of a jem... Pin
cliran6-Feb-09 0:47
cliran6-Feb-09 0:47 
GeneralRe: Somewhat of a jem... Pin
PIEBALDconsult6-Feb-09 4:39
mvePIEBALDconsult6-Feb-09 4:39 
GeneralRe: Somewhat of a jem... Pin
«_Superman_»6-Feb-09 17:00
professional«_Superman_»6-Feb-09 17:00 
GeneralRe: Somewhat of a jem... Pin
PIEBALDconsult7-Feb-09 3:52
mvePIEBALDconsult7-Feb-09 3:52 
GeneralRe: Somewhat of a jem... Pin
Thomas Weller8-Feb-09 2:52
Thomas Weller8-Feb-09 2:52 
GeneralRe: Somewhat of a jem... Pin
supercat99-Feb-09 8:09
supercat99-Feb-09 8:09 
GeneralRe: Somewhat of a jem... Pin
leppie11-Feb-09 4:48
leppie11-Feb-09 4:48 
GeneralTrue/False Dichotomy Pin
Geoff Field2-Feb-09 15:31
Geoff Field2-Feb-09 15:31 
GeneralRe: True/False Dichotomy Pin
PIEBALDconsult2-Feb-09 16:05
mvePIEBALDconsult2-Feb-09 16:05 
GeneralRe: True/False Dichotomy [modified] Pin
Geoff Field2-Feb-09 16:09
Geoff Field2-Feb-09 16:09 
GeneralRe: True/False Dichotomy Pin
PIEBALDconsult2-Feb-09 16:24
mvePIEBALDconsult2-Feb-09 16:24 
GeneralRe: True/False Dichotomy PinPopular
ClementsDan2-Feb-09 17:14
ClementsDan2-Feb-09 17:14 
GeneralRe: True/False Dichotomy Pin
Lutosław6-Feb-09 0:38
Lutosław6-Feb-09 0:38 
GeneralNot really a horror, but useless all the same Pin
Anthony Mushrow1-Feb-09 8:38
professionalAnthony Mushrow1-Feb-09 8:38 
GeneralRe: Not really a horror, but useless all the same Pin
Randor 1-Feb-09 15:08
professional Randor 1-Feb-09 15:08 
GeneralRe: Not really a horror, but useless all the same Pin
DePatrick1-Feb-09 18:26
DePatrick1-Feb-09 18:26 

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.