1,331 reputation
37
bio website johansens.us
location Michigan
age
visits member for 2 years, 7 months
seen Mar 14 at 13:57

Dec
31
comment What is negative code?
@Synetech Sure, brevity achieved by using some obscure construct is not a plus. But brevity achieved by eliminating redundant code is a huge plus. Brevity achieved by eliminating code that is never executed is a big plus too. Brevity achieved by simplifying the algorithm requires case by case analysis: If by simplifying it you have made it easier to understand but take longer to run, that could go either way.
Dec
31
comment What is negative code?
A more serious analogy would be that measuring software productivity by lines of code is like measuring progress on an auto repair job by counting the number of grease rags used. This could be accurate to an extent: the more work the mechanic does, the more grease rags he'll use. But it counts mistakes and wasted effort as much as effort that actually leads to a goal, and a big mistake -- like accidentally breaking an oil line and having to clean up a huge mess -- gets counted as major progress when it's really the opposite.
Aug
26
comment What is negative code?
@Nav: Reminds me of a similar story that begins the same way. Then the coach throws a ball in the air, swings and misses. He throws it in the air again, swings and misses. He throws it in the air a third time, swings and misses. Then he says to the team, "See, THAT'S how you should be pitching!" (I have no idea what this story might have to do with software development.)