Click here to Skip to main content
14,272,402 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: Best Practices turned into Coding Horrors. Pin
BobJanova16-Apr-13 22:58
memberBobJanova16-Apr-13 22:58 
GeneralRe: Best Practices turned into Coding Horrors. Pin
R. Giskard Reventlov17-Apr-13 4:56
professionalR. Giskard Reventlov17-Apr-13 4:56 
GeneralRe: Best Practices turned into Coding Horrors. Pin
James Lonero18-Apr-13 12:35
memberJames Lonero18-Apr-13 12:35 
GeneralRe: Best Practices turned into Coding Horrors. Pin
ENOTTY18-Apr-13 5:56
memberENOTTY18-Apr-13 5:56 
GeneralRe: Best Practices turned into Coding Horrors. Pin
MacSpudster15-Apr-13 11:30
professionalMacSpudster15-Apr-13 11:30 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Paulo Zemek15-Apr-13 13:16
professionalPaulo Zemek15-Apr-13 13:16 
GeneralRe: Best Practices turned into Coding Horrors. Pin
MacSpudster15-Apr-13 13:24
professionalMacSpudster15-Apr-13 13:24 
GeneralRe: Best Practices turned into Coding Horrors. PinPopular
PIEBALDconsult15-Apr-13 17:26
protectorPIEBALDconsult15-Apr-13 17:26 
Indeed, not a candidate for StringBuilderhood. And I write it as

private const string SQL = 
@"
SELECT ID
, NAME
, BIRTHDAY
FROM TABLE
WHERE NAME LIKE @PARAM
" ;


so it prints out nice in error messages [added>>] and I can very easily copy/paste it between a code file and SSMS or other SQL executor.
GeneralRe: Best Practices turned into Coding Horrors. Pin
Brady Kelly15-Apr-13 19:49
memberBrady Kelly15-Apr-13 19:49 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell16-Apr-13 9:57
memberjschell16-Apr-13 9:57 
GeneralRe: Best Practices turned into Coding Horrors. Pin
PIEBALDconsult16-Apr-13 15:23
protectorPIEBALDconsult16-Apr-13 15:23 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell17-Apr-13 8:20
memberjschell17-Apr-13 8:20 
GeneralRe: Best Practices turned into Coding Horrors. Pin
PIEBALDconsult17-Apr-13 15:00
protectorPIEBALDconsult17-Apr-13 15:00 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell18-Apr-13 10:00
memberjschell18-Apr-13 10:00 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Brady Kelly16-Apr-13 21:45
memberBrady Kelly16-Apr-13 21:45 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell17-Apr-13 8:17
memberjschell17-Apr-13 8:17 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 9:34
memberKP Lee22-Apr-13 9:34 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KRucker16-Apr-13 5:17
memberKRucker16-Apr-13 5:17 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Paulo Zemek16-Apr-13 5:29
professionalPaulo Zemek16-Apr-13 5:29 
GeneralRe: Best Practices turned into Coding Horrors. Pin
BobJanova16-Apr-13 23:01
memberBobJanova16-Apr-13 23:01 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell16-Apr-13 10:06
memberjschell16-Apr-13 10:06 
GeneralRe: Best Practices turned into Coding Horrors. Pin
KP Lee22-Apr-13 10:17
memberKP Lee22-Apr-13 10:17 
GeneralRe: Best Practices turned into Coding Horrors. Pin
RafagaX16-Apr-13 7:09
professionalRafagaX16-Apr-13 7:09 
GeneralRe: Best Practices turned into Coding Horrors. Pin
Chad3F16-Apr-13 12:25
memberChad3F16-Apr-13 12:25 
GeneralRe: Best Practices turned into Coding Horrors. Pin
jschell17-Apr-13 8:22
memberjschell17-Apr-13 8:22 

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.