Click here to Skip to main content
15,867,308 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.

 
AnswerRe: I'm guessing there are two unit tests for this .... ? Pin
Dave Kreskowiak4-Dec-15 12:34
mveDave Kreskowiak4-Dec-15 12:34 
GeneralRe: I'm guessing there are two unit tests for this .... ? Pin
Brisingr Aerowing6-Dec-15 17:33
professionalBrisingr Aerowing6-Dec-15 17:33 
GeneralRe: I'm guessing there are two unit tests for this .... ? Pin
Dave Kreskowiak6-Dec-15 18:04
mveDave Kreskowiak6-Dec-15 18:04 
GeneralRe: I'm guessing there are two unit tests for this .... ? Pin
RugbyLeague22-Dec-15 4:04
RugbyLeague22-Dec-15 4:04 
General"...using the best programming practice..." yes sure PinPopular
Andres Cassagnes7-Nov-15 7:54
Andres Cassagnes7-Nov-15 7:54 
GeneralRe: "...using the best programming practice..." yes sure Pin
PIEBALDconsult7-Nov-15 12:39
mvePIEBALDconsult7-Nov-15 12:39 
GeneralRe: "...using the best programming practice..." yes sure Pin
Andres Cassagnes7-Nov-15 12:46
Andres Cassagnes7-Nov-15 12:46 
GeneralRe: "...using the best programming practice..." yes sure Pin
PIEBALDconsult7-Nov-15 12:51
mvePIEBALDconsult7-Nov-15 12:51 
But this way eliminates a test when you don't have SENSAR; ergo it's FFFAAASSSTTTEEERRR... Cool | :cool:

Why test something that's always true?
GeneralRe: "...using the best programming practice..." yes sure Pin
Andres Cassagnes7-Nov-15 12:59
Andres Cassagnes7-Nov-15 12:59 
GeneralRe: "...using the best programming practice..." yes sure Pin
Nicholas Marty19-Nov-15 20:27
professionalNicholas Marty19-Nov-15 20:27 
GeneralRe: "...using the best programming practice..." yes sure Pin
Mohibur Rashid6-Dec-15 21:02
professionalMohibur Rashid6-Dec-15 21:02 
GeneralRe: "...using the best programming practice..." yes sure Pin
Bernhard Hiller9-Nov-15 1:34
Bernhard Hiller9-Nov-15 1:34 
GeneralRe: "...using the best programming practice..." yes sure PinPopular
Patrice T13-Nov-15 18:46
mvePatrice T13-Nov-15 18:46 
GeneralRe: "...using the best programming practice..." yes sure Pin
BillW3323-Nov-15 9:12
professionalBillW3323-Nov-15 9:12 
GeneralRe: "...using the best programming practice..." yes sure Pin
RugbyLeague22-Dec-15 4:06
RugbyLeague22-Dec-15 4:06 
GeneralRe: "...using the best programming practice..." yes sure Pin
Patrice T22-Dec-15 6:34
mvePatrice T22-Dec-15 6:34 
GeneralRe: "...using the best programming practice..." yes sure Pin
KarstenK2-Dec-15 6:26
mveKarstenK2-Dec-15 6:26 
GeneralLets make sure, shall we Pin
k50546-Nov-15 7:41
mvek50546-Nov-15 7:41 
GeneralRe: Lets make sure, shall we Pin
Richard Deeming6-Nov-15 8:16
mveRichard Deeming6-Nov-15 8:16 
GeneralRe: Lets make sure, shall we PinPopular
User 110609796-Nov-15 8:43
User 110609796-Nov-15 8:43 
GeneralRe: Lets make sure, shall we Pin
MacSpudster19-Nov-15 12:30
professionalMacSpudster19-Nov-15 12:30 
GeneralRe: Lets make sure, shall we Pin
Xmen Real 16-Dec-15 2:55
professional Xmen Real 16-Dec-15 2:55 
GeneralRe: Lets make sure, shall we Pin
User 1106097918-Dec-15 5:38
User 1106097918-Dec-15 5:38 
GeneralRe: Lets make sure, shall we Pin
Nguyen.H.H.Dang21-Aug-16 15:06
professionalNguyen.H.H.Dang21-Aug-16 15:06 
GeneralWhy name things sensibly, when you could also not? PinPopular
r_hyde2-Nov-15 14:16
r_hyde2-Nov-15 14:16 

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.