Re:How To Become A Better Programmer By Not Programming
by wging on Friday August 19, 2011 @06:21PM
(#2905103)
Did you mean to write '100 lines/month' up there, or is that an exaggeration for comic effect? I have little experience with bad programmers--but you seem to know enough (or think you do) to throw percentages out there.
Re:How To Become A Better Programmer By Not Programming
by michaelochurch on Friday August 19, 2011 @08:24PM
(#2905381)
Perhaps a slight exaggeration, but not much of one. 200-300 lines per developer per month is the norm in large companies. Most of the time is spent reading crappy code, debugging crappy code, and dealing with crappy workarounds for crappy code. It sucks.
Even very good programmers fall below 500/month if they get mired in legacy bullshit.
Re:How To Become A Better Programmer By Not Programming
by davidjnelson on Saturday August 20, 2011 @03:01AM
(#2906048)
crazy. I have _days_ I write 500 lines of production grade code.
Having mentors, supportive management, and interesting work is great. But these are not the norm anywhere and they're certainly uncommon in the first few years in the software industry. A career average of 25% on these, for one's first 10 years, is probably about par. The good programmers are those who figured out how to get better in spite of these setbacks.
If I were going to put it into simple terms, the problem with the worst of the bad programmers (the deserving underclass) is that they don't expect much of themselves. They're happy to chug along at 100 lines/month on uninspiring work, and they do just enough not to get fired, but they don't achieve enough to offset the complexity load they create by modifying code while not knowing what they're doing, and by imposing resistance-to-change on the organization they inhabit. That's Class #1 of bad programmers, the ones who've been powerless for too long and are now just passing through. It probably comprises 65% of bad programmers out there.
Class #2 is the do-the-wrong-thing-well type. These are the ones who are generally very intelligent but narrow-minded. For example, they optimize for runtime performance at the expense of code readability, or who use the wrong languages, or who eschew databases because "SQL is a mess; let's just use the filesystem". They tend to be really, really good at some small subset of programming and tend to want to use that set of tools and skills even when not appropriate. These are the people who annotate an O(n^2) sorting algorithm as "WRONG!!" even when it's sorting a collection of 20 elements, because to them, not optimized == wrong. Their learning rates were too high, and now they're stuck at suboptimal local maxima. That's 15% of bad programmers.
Class #3 of bad programmer (15%) is the rock star, the kind who writes lots of code quickly, uses fancy "metaprogramming" features, but no one can understand the code (much less the rock star) a week after it's written. They tend to be parasitic, appearing highly productive but actually generating lots of unpleasant work (externalized costs) for the rest of the team. The call sign of the rockstar is the tendency to change interfaces willy-nilly and expect everyone else to adapt to his changes.
Those numbers add up to 95%. I'm going to leave 5% open to acknowledge that there are species of bad programmers I haven't met yet.