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

 
JokeRe: WTF! Pin
akyriako7820-Aug-10 3:57
akyriako7820-Aug-10 3:57 
GeneralRe: WTF! Pin
CDP180220-Aug-10 5:35
CDP180220-Aug-10 5:35 
QuestionCargo cult programming for thread safe variable access? Pin
iberg16-Aug-10 3:28
iberg16-Aug-10 3:28 
AnswerRe: Cargo cult programming for thread safe variable access? Pin
Luc Pattyn16-Aug-10 4:03
sitebuilderLuc Pattyn16-Aug-10 4:03 
GeneralRe: Cargo cult programming for thread safe variable access? Pin
iberg16-Aug-10 5:13
iberg16-Aug-10 5:13 
GeneralRe: Cargo cult programming for thread safe variable access? Pin
Luc Pattyn16-Aug-10 5:26
sitebuilderLuc Pattyn16-Aug-10 5:26 
GeneralRe: Cargo cult programming for thread safe variable access? Pin
iberg16-Aug-10 6:05
iberg16-Aug-10 6:05 
GeneralRe: Cargo cult programming for thread safe variable access? Pin
Luc Pattyn16-Aug-10 6:23
sitebuilderLuc Pattyn16-Aug-10 6:23 
iberg wrote:
Who is inventing all those terms?


I'm not.


iberg wrote:
just the unnecessary locks


yeah, they may heavily influence code execution times, and that is why I would not touch them unless I have a work hypothesis that links the problem to them. I'd rather improve observability (add logging) and do whatever it takes to increase the problem frequency (as in reduce unnecessary delays, replace human/external input by automatic/local input, reduce the data set). I rather get 10 crashes/deadlocks a day with lots of logging, than reduce the problem frequency to once a month, which makes it almost impossible to solve at all.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: Cargo cult programming for thread safe variable access? Pin
dojohansen16-Aug-10 4:09
dojohansen16-Aug-10 4:09 
GeneralRe: Cargo cult programming for thread safe variable access? Pin
iberg16-Aug-10 5:35
iberg16-Aug-10 5:35 
AnswerRe: Cargo cult programming for thread safe variable access? Pin
Mladen Janković16-Aug-10 7:13
Mladen Janković16-Aug-10 7:13 
AnswerRe: Cargo cult programming for thread safe variable access? Pin
ed welch19-Aug-10 5:38
ed welch19-Aug-10 5:38 
GeneralUh...check what? Pin
TheyCallMeMrJames12-Aug-10 7:34
TheyCallMeMrJames12-Aug-10 7:34 
GeneralRe: Uh...check what? Pin
OriginalGriff12-Aug-10 9:21
mvaOriginalGriff12-Aug-10 9:21 
GeneralRe: Uh...check what? Pin
GibbleCH12-Aug-10 9:51
GibbleCH12-Aug-10 9:51 
GeneralRe: Uh...check what? Pin
Andre xxxxxxx13-Aug-10 1:50
Andre xxxxxxx13-Aug-10 1:50 
GeneralRe: Uh...check what? Pin
Super Lloyd15-Aug-10 16:20
Super Lloyd15-Aug-10 16:20 
GeneralRe: Uh...check what? Pin
Andre xxxxxxx16-Aug-10 1:51
Andre xxxxxxx16-Aug-10 1:51 
GeneralRe: Uh...check what? Pin
Ian Shlasko12-Aug-10 10:40
Ian Shlasko12-Aug-10 10:40 
GeneralRe: Uh...check what? Pin
Bigdeak12-Aug-10 20:42
Bigdeak12-Aug-10 20:42 
GeneralRe: Uh...check what? Pin
David Skelly12-Aug-10 23:33
David Skelly12-Aug-10 23:33 
GeneralRe: Uh...check what? Pin
Richard A. Dalton13-Aug-10 4:20
Richard A. Dalton13-Aug-10 4:20 
GeneralRe: Uh...check what? Pin
GibbleCH13-Aug-10 4:36
GibbleCH13-Aug-10 4:36 
GeneralRe: Uh...check what? Pin
AspDotNetDev13-Aug-10 13:08
protectorAspDotNetDev13-Aug-10 13:08 
GeneralRe: Uh...check what? Pin
TheyCallMeMrJames13-Aug-10 4:52
TheyCallMeMrJames13-Aug-10 4:52 

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.