Click here to Skip to main content
15,562,903 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: Efficiency redux Pin
Andrei Straut19-Jul-12 4:26
Andrei Straut19-Jul-12 4:26 
GeneralRe: Efficiency redux Pin
BillW3319-Jul-12 8:16
professionalBillW3319-Jul-12 8:16 
GeneralRe: Efficiency redux Pin
Andrei Straut19-Jul-12 10:03
Andrei Straut19-Jul-12 10:03 
GeneralRe: Efficiency redux Pin
BillW3319-Jul-12 11:42
professionalBillW3319-Jul-12 11:42 
GeneralRe: Efficiency redux Pin
Andrei Straut19-Jul-12 11:43
Andrei Straut19-Jul-12 11:43 
GeneralRe: Efficiency redux Pin
BillW3319-Jul-12 11:45
professionalBillW3319-Jul-12 11:45 
GeneralRe: Efficiency redux Pin
Lutosław28-Jul-12 0:07
Lutosław28-Jul-12 0:07 
GeneralRe: Efficiency redux Pin
Fran Porretto19-Jul-12 1:46
Fran Porretto19-Jul-12 1:46 

Measuring "productivity" by lines of code written per unit time is bad, but I know of a case that's worse: measuring it by the number of faults found and fixed per unit time.

I was assigned to a project about twenty years ago that actually used such a metric. The top guy thought it was a clever twist on SLOC metrics. He reasoned that what really matters is whether the program meets its specification and is working properly -- so far, so good -- so lines-of-code-written is an irrelevant metric. But bug fixing, which is, after all, the process by which a faulty program approaches acceptability, struck him as just right!

I'd never before seen software engineers deliberately write huge numbers of bugs into their code. Pray God, I never see it again.

(This message is programming you in ways you cannot detect. Be afraid.)

GeneralRe: Efficiency redux Pin
BillW3319-Jul-12 2:48
professionalBillW3319-Jul-12 2:48 
GeneralRe: Efficiency redux Pin
BobJanova19-Jul-12 3:42
BobJanova19-Jul-12 3:42 
GeneralRe: Efficiency redux Pin
onemorechance19-Jul-12 3:11
onemorechance19-Jul-12 3:11 
GeneralRe: Efficiency redux Pin
Lutosław28-Jul-12 0:16
Lutosław28-Jul-12 0:16 
GeneralRe: Efficiency redux Pin
rtklueh19-Jul-12 6:19
rtklueh19-Jul-12 6:19 
General1,2,3,4...lots of...what exactly? PinPopular
Andrei Straut18-Jul-12 5:49
Andrei Straut18-Jul-12 5:49 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
BillW3318-Jul-12 7:37
professionalBillW3318-Jul-12 7:37 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
Andrei Straut18-Jul-12 9:09
Andrei Straut18-Jul-12 9:09 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
Shameel25-Jul-12 3:11
professionalShameel25-Jul-12 3:11 
GeneralRe: 1,2,3,4...lots of...what exactly? Pin
S Houghtelin19-Jul-12 3:21
professionalS Houghtelin19-Jul-12 3:21 
GeneralMake sure this value is returned... Pin
cmger18-Jul-12 4:21
cmger18-Jul-12 4:21 
GeneralRe: Make sure this value is returned... Pin
BillW3318-Jul-12 5:07
professionalBillW3318-Jul-12 5:07 
GeneralRe: Make sure this value is returned... Pin
cmger18-Jul-12 5:34
cmger18-Jul-12 5:34 
GeneralRe: Make sure this value is returned... Pin
Andrei Straut18-Jul-12 5:56
Andrei Straut18-Jul-12 5:56 
GeneralRe: Make sure this value is returned... Pin
BillW3318-Jul-12 7:32
professionalBillW3318-Jul-12 7:32 
GeneralRe: Make sure this value is returned... Pin
cmger18-Jul-12 21:34
cmger18-Jul-12 21:34 
GeneralRe: Make sure this value is returned... Pin
BillW3319-Jul-12 8:22
professionalBillW3319-Jul-12 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.