Click here to Skip to main content
15,888,461 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
I.explore.code30-Aug-11 5:30
I.explore.code30-Aug-11 5:30 
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 
While I mostly agree, this is not always possible. C++ in particular is such a large language that few people know it completely, but its perfectly possible to write excellent programs using a familiar subset. In such cases, use the arcane features of the language can be regarded as a codin horror - as the majority of developers will need to look up the meaning.

While programmers favouring other languages may scoff, this seems similar to knowing the libraries. I could learn C# syntax in at most a week for example, becoming familiar with the libraries takes longer, and is actually what I spend of my time doing. I'm absolutely sure I don't know them as well as I'd like, and there's whole areas I leave until I need to.

What makes all this work is MS's documentation that (normally) helps see usage conveniently.

Most of that is auto-generated from Comments, so comments seem fairly necessary.

I kind of hate the "everyone who doesn't know what I know is an idiot" approach to programming - I'd hate to be on a project with someone with that attitude, they tend to leave unmaintainable code in their wake.
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 
GeneralRe: Is this a coding horror? Pin
IAbstract31-Aug-11 1:27
IAbstract31-Aug-11 1:27 
GeneralRe: Is this a coding horror? Pin
Jim (SS)30-Aug-11 6:06
Jim (SS)30-Aug-11 6:06 
GeneralRe: Is this a coding horror? Pin
Kenneth Kasajian30-Aug-11 9:10
Kenneth Kasajian30-Aug-11 9:10 
GeneralRe: Is this a coding horror? Pin
OriginalGriff30-Aug-11 9:19
mveOriginalGriff30-Aug-11 9:19 
GeneralRe: Is this a coding horror? Pin
Kenneth Kasajian30-Aug-11 19:13
Kenneth Kasajian30-Aug-11 19:13 
GeneralRe: Is this a coding horror? Pin
OriginalGriff30-Aug-11 21:43
mveOriginalGriff30-Aug-11 21:43 
GeneralRe: Is this a coding horror? Pin
BobJanova30-Aug-11 23:07
BobJanova30-Aug-11 23:07 

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.