Click here to Skip to main content
15,887,434 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: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
R. Erasmus9-May-11 23:36
R. Erasmus9-May-11 23:36 
GeneralRe: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
CDP18029-May-11 23:39
CDP18029-May-11 23:39 
GeneralRe: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
R. Erasmus9-May-11 23:42
R. Erasmus9-May-11 23:42 
GeneralRe: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
CDP18029-May-11 23:44
CDP18029-May-11 23:44 
GeneralRe: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
R. Erasmus9-May-11 23:47
R. Erasmus9-May-11 23:47 
GeneralRe: The area of management of changes to documents, programs and other things relating to revision control sucks. Pin
Joshi, Rushikesh12-May-11 23:19
professionalJoshi, Rushikesh12-May-11 23:19 
GeneralUseful code comments [modified] Pin
Fred van Lieshout9-May-11 21:23
Fred van Lieshout9-May-11 21:23 
GeneralRe: Useful code comments Pin
Sander Rossel9-May-11 21:41
professionalSander Rossel9-May-11 21:41 
I think such code should not be commented at all. I know someone who would comment
C#
// Check if the string length is greater or equal to 8, if it is then go into the if. If it is not then go into the else

Such comments are really just littering your code with the obvious. It doubles development time and has no added value... If you need comments to understand that you are obviously not at your right place. A more helpful comment might be WHY the string must be at least 8 chars.
Your example is rather hilarious (or is that sad?) though Laugh | :laugh:
It's an OO world.

GeneralRe: Useful code comments Pin
Fred van Lieshout9-May-11 23:00
Fred van Lieshout9-May-11 23:00 
JokeRe: Useful code comments Pin
Sander Rossel9-May-11 23:02
professionalSander Rossel9-May-11 23:02 
GeneralRe: Useful code comments Pin
GenJerDan10-May-11 3:49
GenJerDan10-May-11 3:49 
GeneralRe: Useful code comments Pin
OriginalGriff10-May-11 4:52
mveOriginalGriff10-May-11 4:52 
GeneralRe: Useful code comments Pin
BillW3312-May-11 4:21
professionalBillW3312-May-11 4:21 
GeneralRe: Useful code comments [modified] Pin
R. Erasmus10-May-11 22:39
R. Erasmus10-May-11 22:39 
GeneralRe: Useful code comments Pin
Fred van Lieshout10-May-11 23:13
Fred van Lieshout10-May-11 23:13 
GeneralRe: Useful code comments Pin
Sterling Camden / independent consultant13-May-11 7:01
Sterling Camden / independent consultant13-May-11 7:01 
GeneralThe "best" way ever to compare two dates... Pin
mr.bart.simpson9-May-11 1:28
professionalmr.bart.simpson9-May-11 1:28 
GeneralRe: The "best" way ever to compare two dates... Pin
BillW3312-May-11 4:18
professionalBillW3312-May-11 4:18 
GeneralWhy oh why??? Pin
emartinho5-May-11 8:48
emartinho5-May-11 8:48 
GeneralRe: Why oh why??? Pin
RobCroll6-May-11 3:24
RobCroll6-May-11 3:24 
GeneralRe: Why oh why??? Pin
Marc A. Brown6-May-11 4:50
Marc A. Brown6-May-11 4:50 
GeneralRe: Why oh why??? Pin
emartinho6-May-11 5:56
emartinho6-May-11 5:56 
GeneralRe: Why oh why??? PinPopular
Luc Pattyn6-May-11 4:04
sitebuilderLuc Pattyn6-May-11 4:04 
GeneralRe: Why oh why??? Pin
Marc A. Brown6-May-11 4:50
Marc A. Brown6-May-11 4:50 
GeneralRe: Why oh why??? Pin
emartinho6-May-11 5:53
emartinho6-May-11 5:53 

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.