News for hackers. Stuff that matters.
Re:Torvalds' quote about good programmers by hermannj314 on Sunday September 23, 2012 @08:54AM (#4560790)
I'm in the position of maintaining a legacy codebase. I feel like I've shown up half-way through a game of Jenga and management still wants me to play the game with the same speed as the guy who played the 1st half.

Meanwhile, he's been promoted to start work on a brand-new Jenga tower since he's demonstrated such remarkable success in the past.

I just want everyone to stop playing Jenga.

Re:Torvalds' quote about good programmers by ryanmolden on Sunday September 23, 2012 @11:19AM (#4561125)
I've always, only half-snarkily, said that if you have never had to maintain/modify someone else's code then you probably write code like an asshole. Writing code that is both easy to understand and maintain and correct can be difficult, lots of people just go for the latter.

Unfortunately as you pointed out, especially in large companies, people can get promoted before the deficiencies of their previous work become clear. This leads to people never learning because the feedback loop is too long, or worse, they never deal with their past code so are oblivious to all its shortcomings and just think they are awesome. Also management tends to reward based on accomplishments today without an eye for costs to be born down the road, which gives perverse incentives to "get it done" programmers who leave mountains of technical debt in their wake for others to deal with.

Re:Torvalds' quote about good programmers by loup-vaillant on Sunday September 23, 2012 @01:07PM (#4561384)
> Writing code that is both easy to understand and maintain and correct can be difficult, lots of people just go for the latter.

They believe they go for the latter, but actually they don't. If their code was easy to understand and correct, it would have fewer defects to begin with.

Your second paragraph I totally agree with. I've dealt with such code. Sometimes, I can halve its volume simply by applying local correctness-preserving transformations. That is, without even knowing what the code is doing. I even spotted some bugs in the process.

Re:Torvalds' quote about good programmers by mononcqc on Sunday September 23, 2012 @10:29PM (#4562930)
'correct' is always only about a given specification, that is right for a limited period of time, assuming needs are well understood. It is very well possible to write satisfactory code one day that becomes inadequate the next.

I won't deny the presence of bugs though, there is endless evidence that bugs always exist.

Re:Torvalds' quote about good programmers by ryanmolden on Sunday September 23, 2012 @11:56PM (#4563134)
Correct, I was talking mainly about code that 'works' (i.e. is 'correct', for the given spec) but is highly sub-optimal, confusing, tightly coupled with other code, etc...
Re:Torvalds' quote about good programmers by wellpast on Sunday September 23, 2012 @10:48AM (#4561055)
If only there was a way to measure programmers on the robustness and potential of their code, and not just on "they wrote a lot of it."

The system seems to be that it is much more advantageous to your career to rapidly produce gobs of spaghetti -- and confound everyone around you -- than to build elegant code that enables everyone around you. You look better when everyone but you is confounded; you look replaceable when everyone around you can extract as much value out of your clean, powerful code as you can.

Re:Torvalds' quote about good programmers by Evbn on Monday September 24, 2012 @01:58AM (#4563397)
The more code I see, the lower my estimation of the coder. The mark of a talented engineer is how much code they delete.