Click here to Skip to main content
15,885,546 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: Code Puzzle Pin
Agent__00714-May-15 1:46
professionalAgent__00714-May-15 1:46 
GeneralRe: Code Puzzle Pin
Smart K813-May-15 23:26
professionalSmart K813-May-15 23:26 
GeneralRe: Code Puzzle Pin
Power Puff Boy15-May-15 2:04
Power Puff Boy15-May-15 2:04 
GeneralRe: Code Puzzle Pin
Freak3015-May-15 2:11
Freak3015-May-15 2:11 
GeneralRe: Code Puzzle Pin
Richard Deeming15-May-15 3:59
mveRichard Deeming15-May-15 3:59 
GeneralRe: Code Puzzle Pin
Brisingr Aerowing15-May-15 4:02
professionalBrisingr Aerowing15-May-15 4:02 
GeneralRe: Code Puzzle Pin
Sascha Lefèvre15-May-15 4:12
professionalSascha Lefèvre15-May-15 4:12 
GeneralSOLUTION Pin
Sascha Lefèvre15-May-15 4:22
professionalSascha Lefèvre15-May-15 4:22 
Among all the toe-curling flaws in there, these are my two favorites:
It's not even a singleton - it's a "noneton": Trying to access the Instance-property will cause a stack overflow due to recursion..
The List<QueryContainer> will be really, really short. Even when fixing the above flaw..

And the answer to the million dollar question:
It's supposed to somehow (don't ask me) help with fixing code that is vulnerable to SQL-injection.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: SOLUTION Pin
Richard Deeming15-May-15 7:07
mveRichard Deeming15-May-15 7:07 
GeneralRe: SOLUTION Pin
Sascha Lefèvre15-May-15 7:50
professionalSascha Lefèvre15-May-15 7:50 
GeneralRe: SOLUTION Pin
OriginalGriff15-May-15 8:36
mveOriginalGriff15-May-15 8:36 
GeneralRe: SOLUTION Pin
Freak3018-May-15 1:11
Freak3018-May-15 1:11 
GeneralRe: Code Puzzle Pin
Power Puff Boy19-May-15 3:55
Power Puff Boy19-May-15 3:55 
GeneralRe: Code Puzzle Pin
Sascha Lefèvre19-May-15 4:06
professionalSascha Lefèvre19-May-15 4:06 
GeneralRe: Code Puzzle Pin
Power Puff Boy20-May-15 0:43
Power Puff Boy20-May-15 0:43 
GeneralRe: Code Puzzle Pin
Jörgen Andersson20-May-15 1:13
professionalJörgen Andersson20-May-15 1:13 
GeneralRe: Code Puzzle Pin
Sascha Lefèvre20-May-15 1:14
professionalSascha Lefèvre20-May-15 1:14 
GeneralRe: Code Puzzle Pin
Power Puff Boy20-May-15 2:10
Power Puff Boy20-May-15 2:10 
GeneralRe: Code Puzzle Pin
Sascha Lefèvre20-May-15 2:38
professionalSascha Lefèvre20-May-15 2:38 
GeneralSingleton Pattern Pin
Anurag Gandhi4-May-15 18:42
professionalAnurag Gandhi4-May-15 18:42 
GeneralRe: Singleton Pattern Pin
dan!sh 4-May-15 20:37
professional dan!sh 4-May-15 20:37 
GeneralRe: Singleton Pattern Pin
CHill6013-May-15 22:56
mveCHill6013-May-15 22:56 
GeneralNow, that's a first... Pin
OriginalGriff1-May-15 8:04
mveOriginalGriff1-May-15 8:04 
GeneralRe: Now, that's a first... Pin
Pualee1-May-15 10:10
Pualee1-May-15 10:10 
GeneralRe: Now, that's a first... Pin
Daniel Pfeffer2-May-15 21:19
professionalDaniel Pfeffer2-May-15 21:19 

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.