Click here to Skip to main content
15,887,585 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: Is this a coding horror? Pin
GibbleCH30-Aug-11 11:42
GibbleCH30-Aug-11 11:42 
GeneralRe: Is this a coding horror? Pin
BobJanova30-Aug-11 23:12
BobJanova30-Aug-11 23:12 
GeneralRe: Is this a coding horror? Pin
GibbleCH31-Aug-11 3:56
GibbleCH31-Aug-11 3:56 
GeneralRe: Is this a coding horror? Pin
BobJanova31-Aug-11 6:04
BobJanova31-Aug-11 6:04 
GeneralRe: Is this a coding horror? Pin
GibbleCH31-Aug-11 7:50
GibbleCH31-Aug-11 7:50 
GeneralRe: Is this a coding horror? Pin
BobJanova1-Sep-11 0:40
BobJanova1-Sep-11 0:40 
GeneralRe: Is this a coding horror? Pin
YSLGuru2-Sep-11 6:57
YSLGuru2-Sep-11 6:57 
GeneralRe: Is this a coding horror? Pin
I.explore.code30-Aug-11 5:30
I.explore.code30-Aug-11 5:30 
Even though you are entitled to your own thoughts, I think most programmers would agree in favor of documentation, imagine Java or .NET libraries without the javadoc or help respectively. I would imagine it would take a lot of trial and error to get to what a function actually did, especially, if you are not the author of the function. Documentation exists, mostly, for people who are using or referring to your code after you have written it. In some cases, it also helps the original programmers themselves to recall why they did something in a way they did in a function. The irony is that if the code is really a horror, it would be equally difficult to document or comment it to begin with, atleast in a way that solves the riddle of a function in a more comprehensive way. I personally like to comment and document my code wherever I think is necessary to explain any nitty-gritty of it. Programmers move so fast, that 6 months down the line our own code seems difficult to decode sometimes and hence documentation really helps to quickly understand in plain and simple English or whatever language one may use, what the code does. Unless, the only language you speak is code and you have difficulty interpreting natural language more than a coding language.

Cheers
GeneralRe: Is this a coding horror? Pin
patbob30-Aug-11 5:59
patbob30-Aug-11 5:59 
GeneralRe: Is this a coding horror? Pin
BloodyBaron29-Aug-11 22:38
BloodyBaron29-Aug-11 22:38 
GeneralRe: Is this a coding horror? Pin
GibbleCH30-Aug-11 11:44
GibbleCH30-Aug-11 11:44 
GeneralRe: Is this a coding horror? Pin
BloodyBaron30-Aug-11 22:21
BloodyBaron30-Aug-11 22:21 
GeneralRe: Is this a coding horror? Pin
GibbleCH31-Aug-11 3:56
GibbleCH31-Aug-11 3:56 
GeneralRe: Is this a coding horror? Pin
BobJanova31-Aug-11 0:03
BobJanova31-Aug-11 0:03 
GeneralRe: Is this a coding horror? Pin
Rob Grainger6-Sep-11 0:58
Rob Grainger6-Sep-11 0:58 
GeneralRe: Is this a coding horror? Pin
Eusebiu Marcu30-Aug-11 2:46
Eusebiu Marcu30-Aug-11 2:46 
GeneralRe: Is this a coding horror? Pin
BobJanova30-Aug-11 2:51
BobJanova30-Aug-11 2:51 
GeneralRe: Is this a coding horror? Pin
BobJanova30-Aug-11 2:47
BobJanova30-Aug-11 2:47 
GeneralRe: Is this a coding horror? Pin
BubingaMan30-Aug-11 3:03
BubingaMan30-Aug-11 3:03 
GeneralRe: Is this a coding horror? Pin
Vlad Krivoroutchko30-Aug-11 3:11
Vlad Krivoroutchko30-Aug-11 3:11 
GeneralRe: Is this a coding horror? Pin
BubingaMan30-Aug-11 3:17
BubingaMan30-Aug-11 3:17 
GeneralRe: Is this a coding horror? Pin
ii_noname_ii30-Aug-11 3:37
ii_noname_ii30-Aug-11 3:37 
GeneralRe: Is this a coding horror? Pin
Stefan_Lang30-Aug-11 3:49
Stefan_Lang30-Aug-11 3:49 
GeneralRe: Is this a coding horror? Pin
IAbstract30-Aug-11 4:13
IAbstract30-Aug-11 4:13 
GeneralRe: Is this a coding horror? Pin
Schmuli30-Aug-11 23:10
Schmuli30-Aug-11 23:10 

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.