Slashdot Mirror


The Futility of Developer Productivity Metrics

snydeq writes "Fatal Exception's Neil McAllister discusses why code analysis and similar metrics provide little insight into what really makes an effective software development team, in the wake of a new scorecard system employed at IBM. 'Code metrics are fine if all you care about is raw code production. But what happens to all that code once it's written? Do you just ship it and move on? Hardly — in fact, many developers spend far more of their time maintaining code than adding to it. Do your metrics take into account time spent refactoring or documenting existing code? Is it even possible to devise metrics for these activities?' McAllister writes. 'Are developers who take time to train and mentor other teams about the latest code changes considered less productive than ones who stay heads-down at their desks and never reach out to their peers? How about teams that take time at the beginning of a project to coordinate with other teams for code reuse, versus those who charge ahead blindly? Can any automated tool measure these kinds of best practices?'"

56 of 203 comments (clear)

  1. Refactor... by Tsingi · · Score: 4, Insightful

    Refactor, refactor, refactor

    KISS technology, nothing beats it.

    1. Re:Refactor... by ZeroExistenZ · · Score: 5, Informative

      Application design (have someone think about everything in broad lines, set out a main architecture-model in ADVANCE.)

      Iterative design.

      A good project manager prioritizing and communicating current development shielding programmer from clients (who during the "waiting time", are fantasizing changes).

      In contrast, in debugging and QA, free way between the client and the developer (more efficient and gives more motivation to the dev as to slave for )

      Realistic expectations: don't get your devs running around doing "quick" jobs left and right while they're trying to keep a tight schedule.

      Keep everybody current: short standup meeting in the morning

      Motivate communication; devs tend to get absorbed in their coding-problem (nd prioritize being "productive") but forget to be a team

      The right personality on the right segment of a project: developers have their strengths and their weaknesses.

      ...

      --
      I think we can keep recursing like this until someone returns 1
    2. Re:Refactor... by sg_oneill · · Score: 4, Interesting

      Refactoring and metrics are often rarely agree. I remember one job I came into, I was given this steaming horrible piece of php (ugh) mess to fix up and add a bunch of features for the client. I took one look at it, and said "I need a good two months to fix this code" and demonstrated a series of horrible vunerabilities and fuckups in the code. Realising the vunerabilities (hint, demonstrating security holes in existing code is a REALLY good way to convince management you need to spend some quality time refatoring it) where just plain dangerous, I got given the go ahead.

      A couple of weeks in, the manager called me into the office asking "Shayne, this is very strange. You know we take a metric of how many lines of code per hour are written into account here?". "Yes" I replied, "You also know I think its idiotic". The guy said "Right , well your registering a highly negative score on this. I dont even know if this is working right?".

      The reality was this code was written by someone who really didn't "get" databases. A table would be loaded in, then iiterated over, and each pass would issue new sql calls for data, which would then be loaded in and iiterated again. I'd just delete all of the twenty+ pages of code, write a half-page winner of an SQL query, drop it into a mysql stored procedure, and select from it, then spending half a page formatting it and displaying it. It was robust, safe, and fast as hell. I went through the whole code like this turning hundreds of pages of code into tens of pages, all neatly commented, scrubbed of nasties, isolating out the design from the logic, putting models into model classes, views into templates and controllers to glue it all together.

      And the end result was every day the code would lose twenty-thirty pages of code and develop 2 or 3 pages of terse, clean, maintainable code.

      And as an end result, my metrics where fucked. I tried to argue that they needed to look at more sane metrics, like what was coming out of the CI software, and if they wanted to be really clever, things like complexity metrics and the like.

      Ultimately however ,they still wanted the "codes of line per day" metrics because as non technical people it made them feel like they understood what was going on, but ultimately they didn't. My suggestion to them however was "When developing fresh new code, that number should increase, when refactoring code, it should decrease. But only if the coder knows what he's frigging doing."

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  2. Writing for reuse is lacking use case by rednip · · Score: 4, Interesting

    If you don't have a use case for reuse, you shouldn't try to code for it. To many 'interfaces' are single use, see 'servlet' vs. 'http servlet'.

    --
    The force that blew the Big Bang continues to accelerate.
    1. Re:Writing for reuse is lacking use case by Rob+the+Bold · · Score: 2

      If you don't have a use case for reuse, you shouldn't try to code for it. To many 'interfaces' are single use, see 'servlet' vs. 'http servlet'.

      This is an especially good policy if you're a contractor paid by the hour.

      --
      I am not a crackpot.
  3. It's tricky by LunaticTippy · · Score: 5, Insightful

    Whatever you measure will be gamed. Measure bugs fixed, and you will find people wasting time listing each tiny variation of a bug. Measure lines of code, you will get spaghetti code.

    It almost seems better to measure a bunch of things and use a secret formula to determine productivity.

    --
    Man, you really need that seminar!
    1. Re:It's tricky by abroadwin · · Score: 5, Insightful

      Or you could just communicate with your developers, be aware of the work they're doing and judge their performance based on their effective productivity from your perspective. I've heard this called "management" before, but I know that word has been twisted to mean something more sinister as of late.

    2. Re:It's tricky by ackthpt · · Score: 5, Insightful

      Whatever you measure will be gamed. Measure bugs fixed, and you will find people wasting time listing each tiny variation of a bug. Measure lines of code, you will get spaghetti code.

      It almost seems better to measure a bunch of things and use a secret formula to determine productivity.

      In my book there are only three ways to measure code:

      • For speed
      • For size
      • For readability

      Emphasis on any one and the others suffer. They're goal should be on bug-free code which meets a spec. Writing code is like practicing medicine, every patient is different and has its own demands.

      --

      A feeling of having made the same mistake before: Deja Foobar
    3. Re:It's tricky by jeffmeden · · Score: 2

      Whatever you measure will be gamed. Measure bugs fixed, and you will find people wasting time listing each tiny variation of a bug. Measure lines of code, you will get spaghetti code.

      It almost seems better to measure a bunch of things and use a secret formula to determine productivity.

      A secret formula like, oh I dunno, customer satisfaction (maybe "how many bugs make it to the customer")? Every piece of software is written for a customer (of some sort) so maybe time could be spent actually thinking about how effective the code is AFTER it's used. Speaking as someone who doesn't write much code, but lives and breathes the consequences of good and bad code every day, I can say with confidence that quality would go up if the only coding "practice" was severe punishment of anyone who introduced/propagated/failed to eliminate bugs in the code they were responsible for.

    4. Re:It's tricky by icebraining · · Score: 5, Insightful

      So, you want to reward Wally? He probably doesn't introduce much bugs...

    5. Re:It's tricky by Curunir_wolf · · Score: 4, Insightful

      Or you could just communicate with your developers, be aware of the work they're doing and judge their performance based on their effective productivity from your perspective. I've heard this called "management" before, but I know that word has been twisted to mean something more sinister as of late.

      That won't work, because we laid off all the middle managers years ago. Developers are all exactly the same - we just need to know which ones to slot into the critical path.

      --
      "Somebody has to do something. It's just incredibly pathetic it has to be us."
      --- Jerry Garcia
    6. Re:It's tricky by nine-times · · Score: 5, Insightful

      Yeah, I've come to realize that nobody understands what a manager is supposed to do anymore. Most people's concept is that managers exist to play the part of the PHB, but they don't do anything useful.

      More and more, I think no one even understands the value of having a knowledgeable person make difficult decisions based on well thought-out judgments. People want procedures that they can just give to anyone and assume that the outcome will be the same, and then they want metrics that they can use to measure the outcome without knowing anything about the situation.

      The proper role of a manager-- aside from particular responsibilities he/she might have on top of this-- is to understand the people working for him and understand his unit's role in the greater context of the company, and then to eliminate obstacles that prevent the people working for him from performing their roles. This might mean protecting the people that work for you from upper management, it might mean recognizing and rewarding good performance, or it might mean all sorts of other things. But to do it right, it takes a lot of work and it takes good judgment.

    7. Re:It's tricky by stanlyb · · Score: 2

      Actually, in my book there is only one feature that i wanna to see in every program/module/library. To.Be.Debugable. If i cannot debug it......sorry, but your code is crap.

    8. Re:It's tricky by Rob+the+Bold · · Score: 3, Insightful

      Actually, in my book there is only one feature that i wanna to see in every program/module/library. To.Be.Debugable. If i cannot debug it......sorry, but your code is crap.

      Unfortunately, if you can't debug it, it's your source code that's crap. Because if you're debugging it, it's yours now . . .

      --
      I am not a crackpot.
    9. Re:It's tricky by c0lo · · Score: 2

      Whatever you measure will be gamed. Measure bugs fixed, and you will find people wasting time listing each tiny variation of a bug. Measure lines of code, you will get spaghetti code.

      Two things:
      1. Your point - which is "Tell me how you measure me and I'll tell you how I'll behave" - with the addition that it's so natural/visceral a reaction that one doesn't even need to intend to game the measurement, the behavior of the measured will alter
      2. I'm firmly on the opinion that code is value-spent and is not value-created. From this point of view, seems very strange to me for one to use metrics of cost to measure productivity. Efficiency should be measured in how small the number of lines of code/bug fixes are needed for implementing/maintaining the desired functionality.

      --
      Questions raise, answers kill. Raise questions to stay alive.
    10. Re:It's tricky by marcosdumay · · Score: 4, Insightful

      Yes, they are objective and quantitative. Managers love that, because being objective excuses them from forming the kind of bias people used to call "leadership", and being quantitative they fit into nice formulas where they can convey no information at all to higher managers that are too insecure to ask what it means.

      Just don't expect those quantitative and objective metrics to be correlated with the overall profit of your business.

    11. Re:It's tricky by smelch · · Score: 2

      It is odd how many code-sharing sessions start with "this is all ugly and I haven't had a chance to clean it up yet but...."

      --
      If I can just reach out with my words and touch a butthole, just one, it will all be worth it.
    12. Re:It's tricky by nine-times · · Score: 3, Insightful

      Yeah, that's my point. As a manager, it's your job to learn about the people who work for you, to help them understand what they should be working on, to help motivate them, to judge their strengths and weaknesses, and to coordinate/arrange things so that their weaknesses don't keep them from doing their job well. Then you have to weed out people who aren't going to do a good job, and meanwhile reward, foster, and develop the employees who have potential and do good work.

      That's a lot of work, but that's the work that a manager is supposed to be doing. Too often they shirk that work and instead treat their employees like "gears in a box". Sometimes it's laziness, but a big part of the problem is that our society/culture doesn't recognize the work/judgement of a good manager as valuable. We instead expect people to be interchangeable, which is a problem.

    13. Re:It's tricky by c++0xFF · · Score: 2

      You deserve to be modded up, you do.

      The fallacy is that any metric (lines of code, number bugs reports closed, mean time to complete fixes, etc.) or a combination thereof can differentiate between the programmers that should be promoted and those that should be fired. The assumption is that "good programmers" write more lines of code, fix more bugs, make the code run faster, or even write code that optimizes some arbitrary complexity metric. In fact, a "good programmer" does none of these things.

      A "good programmer" doesn't necessarily create or changes lots of code. This is especially true of older code. Some of the most intricate fixes I've ever had to make only involved a couple of characters on a single line.

      A "good programmer" puts in useful comments, which line of code counters usually exclude.

      A "good programmer" will fix a bug the right way the first time, and doesn't race to close bugs. However, a "good programmer" will close as many bugs as possible, as the thought of an unfixed software bug produces the same emotions as knowing real live bugs live in your computer.

      Well, so much for the objective measures. How about some subjective ones?

      A "good programmer" will write code that others will find a pleasure to work with later. Not necessarily bug-free, but fixing those bugs are simple. Extending functionality doesn't break everything all over again. Reusing functions is a breeze. Everything's well-documented.

      A "good programmer" gets the job done. Easy tasks will be completed quickly, difficult tasks will be completed after some time, but both will be "well done."

      A "good programmer" will test all code as thoroughly as necessary. This means that odd corner cases are considered and accounted for, that error conditions are handled gracefully.

      A "good programmer" will find and fix bugs, refactoring and cleaning up code with each change. Code runs and even looks better after a "good programmer" works with it, even in passing.

      Metrics say absolutely nothing about a programmer. And yet, I can tell you exactly which programmers I work with actually know what they're doing and produce good results. I know which ones will help the company make money. I know which ones will meet deadlines. And I also know which ones I'll be cleaning up after later on. I know of no metric that can tell me this, so yes, it's purely subjective.

    14. Re:It's tricky by russotto · · Score: 2

      People want procedures that they can just give to anyone and assume that the outcome will be the same, and then they want metrics that they can use to measure the outcome without knowing anything about the situation.

      That's what modern (from 1911) "scientific" management is all about. That's "best practices". That's ISO 9000, TQM, and all the rest of the alphabet soup. You break the work down into a number of tasks. You measure alternatives and find out the best way to do that task. You document that best way, and have all your workers on that task do it that way. When you've done that with every task, you have an efficiently-running widget factory.

      Sounds great and scientific and objective and all. There's only one slight issue with it when it comes to software development, which is that it doesn't work.

  4. Short answers by drb226 · · Score: 3, Insightful

    But what happens to all that code once it's written? Do you just ship it and move on? Do your metrics take into account time spent refactoring or documenting existing code? Is it even possible to devise metrics for these activities? Are developers who take time to train and mentor other teams about the latest code changes considered less productive than ones who stay heads-down at their desks and never reach out to their peers? How about teams that take time at the beginning of a project to coordinate with other teams for code reuse, versus those who charge ahead blindly? Can any automated tool measure these kinds of best practices?

    It bitrots. Yes. No. Maybe. Probably. Definitely. Possibly.

  5. Metrics suck in any job by GeneralTurgidson · · Score: 2

    Unless it's your job to make up the metrics.

  6. Problem by bigsexyjoe · · Score: 5, Insightful

    A lot of problems rating developer productivity. First, if a system is that good, then managers won't be able to game it to play favorites. Second, writing code for future use is always harder than writing code specific to the problem. Third, almost any metric is going to penalize a simpler solution. (Keep in mind that once you see a simple solution it seems obvious and everyone thinks they'd think of it. Fourth, evaluating developers well would require making the best coders managers, and that rarely happens for several reasons.

    1. Re:Problem by snowgirl · · Score: 2

      First, if a system is that good, then managers won't be able to game it to play favorites.

      This is the most likely reason I see why no performance metric that works would actually be picked up. The ideal rating system for a corrupt manager is one where everyone is rated poorly, and then you selectively absolve bad performance metrics for anyone you don't want fired.

      Of course, one also has to be careful in this situation and not have employees discuss their performance ratings, and especially don't have anyone else in management discuss performance rating absolutions. Think of the horrible legal shit storm you would get into if you rated one employee really poorly in one area, and then later that employee hears in a random meeting from your boss's boss that no one actually met that rating, and so if we held people to that rating, then no one would qualify as a good employee! Be sure once that event has actually happened though to stop recommending that every employee go to these diverse group weekly meetings...

      --
      WARNING! This girl exceeds the MAXIMUM SAFE standards established by the FDA for BRATTINESS
    2. Re:Problem by MadKeithV · · Score: 2

      Second, writing code for future use is always harder than writing code specific to the problem. .

      It's nearly always wrong, too. YAGNI. You Ain't Gonna Need It.

    3. Re:Problem by uncqual · · Score: 2

      If you can't trust your first level managers to understand who is contributing w/o a pile of metrics, there is a simple solution -- get new managers.

      ICs will game metrics much more than managers. Good managers rarely have a vested interest in favoring one developer over another except to the extent that one developer contributes more than another to getting reliable systems meeting requirements to the customer.

      If you have metrics that "managers can't game", it means that ICs can game them because they must be very objective (i.e., your review is 2.954 because your $METRIC1 was 68, your $METRIC2 was 93, your $METRIC3 was 17).

      Once you give anyone a list of metrics they will be measured by for raises, bonuses, and promotions, they will optimize for "good metrics" rather than actually keeping the customer happy. As well, since such metrics must include quite a few "quality" measures, this easily result in in-fighting within the team. Alan will say "No, this bug isn't attributable to me, it's attributable to Jim because the documentation on his method doesn't make it clear enough that division by zero is undefined". Whoever wins this battle (after arbitration is complete and the appropriate developer's $METRIC_QUAL has been decremented) will find it harder to work with the other developer in the future.

      --
      Why is there an "insightful" mod and why isn't it "-1"? If I wanted insight, I wouldn't be reading /.
    4. Re:Problem by smellotron · · Score: 2

      On a recent project there were two developerss fixing bugs.

      Gollum, is that you?

  7. Project leader responsibilities by Synerg1y · · Score: 3, Insightful

    Wouldn't it be the project leader who monitors these on an individual basis? If a coder isn't pulling their weight its up to the project leader to address it up to the point of termination. Above that you have a suit who monitors the project leader's team performance and decides how well the project leader is doing. Of all the places layered management doesn't work, coding is not one of them. It's a challenge to hold a developer accountable because there are so many different approaches to the same problem in coding and a lot have definitive pros and cons.

  8. Pfft by Allicorn · · Score: 5, Insightful

    Can any automated tool measure these kinds of best practices?

    No. The - for the sake of politeness, let's call them "people" - who invested time and effort into devising these schemes have actually built a complete chain of negative productivity by doing so. Remarkable.

    --
    OMG!!! Ponies!!!
  9. Measure the objective not the code by Crashmarik · · Score: 4, Insightful

    Personally I am always happy with the guy who can get things done with one line of code instead of a hundred, but what I really care about is that objective is met and we don't have a host of bugs that require 10 times the cost of the development just to maintain. Its not hard stuff but it does require common sense and a hard nosed attitude both of which can be scarce commodities these days.

    1. Re:Measure the objective not the code by RingDev · · Score: 2

      That's really the key to it. Focusing on objectives.

      Are outputs matching estimates for time? Are programs being deployed/shipped on schedule? Are bug report rates with in acceptable ranges? etc...

      And once you get good at that, start looking for ways to improve on the metrics. Reducing bug counts, getting more accurate estimates, and pushing for shorter (but still reasonable) estimates.

      I knew a programmer who once solved a problem that was going to be addressed with a $100,000 inventory management system, with a piece of cardboard and a black magic marker. No code metric could show that performance. But outcome based metrics were all maxed out for that job.

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    2. Re:Measure the objective not the code by TheRealMindChild · · Score: 2

      It isn't that cut and clear. I can write a bug-free one line perl solution, but what happens when someone needs to maintain it? Objectives come from all directions. Your shop wants quick turn around and maximum profit. The customer wants quick turn around , solid code, AND a cheap price. Your goal is to be productive and get home before dinner. Notice the conflicting objectives.

      --

      "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    3. Re:Measure the objective not the code by MadKeithV · · Score: 5, Insightful

      Personally I am always happy with the guy who can get things done with one line of code instead of a hundred, but what I really care about is that objective is met and we don't have a host of bugs that require 10 times the cost of the development just to maintain. Its not hard stuff but it does require common sense and a hard nosed attitude both of which can be scarce commodities these days.

      I am also REALLY happy to have "that guy" that has absolutely shit productivity, but somehow manages to pick up on every time a "solution" is proposed by the rest of the team to a problem that doesn't exist or doesn't matter, and stops THEM from being really efficient at doing the wrong thing.
      I'm also really happy to have "that girl" that doesn't seem to really be doing anything, but take her out of the team and everyone else starts floundering because she's actually constantly helping them be a lot more productive.
      "Meeting the objective" is actually potentially just as bad as any other metric, because it depends on how you define the objective, and meeting it. What the customer asked? What the customer wanted? Or what the customer actually needed?

    4. Re:Measure the objective not the code by Crashmarik · · Score: 3, Informative

      Personally I am always happy with the guy who can get things done with one line of code instead of a hundred, but what I really care about is that objective is met and we don't have a host of bugs that require 10 times the cost of the development just to maintain. Its not hard stuff but it does require common sense and a hard nosed attitude both of which can be scarce commodities these days.

      I am also REALLY happy to have "that guy" that has absolutely shit productivity, but somehow manages to pick up on every time a "solution" is proposed by the rest of the team to a problem that doesn't exist or doesn't matter, and stops THEM from being really efficient at doing the wrong thing.
        I'm also really happy to have "that girl" that doesn't seem to really be doing anything, but take her out of the team and everyone else starts floundering because she's actually constantly helping them be a lot more productive.

      "Meeting the objective" is actually potentially just as bad as any other metric, because it depends on how you define the objective, and meeting it. What the customer asked? What the customer wanted? Or what the customer actually needed?

      That guy and that girl are generally called project/team leaders. Don't fret, You raised an important issue. The guy you don't want on the team is the one that comes up with ridiculous edge cases and is needlessly obtuse. Like someone who invents coders that are doing the work of managers and senior managers then complains a measurement tool doesn't capture their contribution, or goes into a recursive loop trying to figure out what the objective should be.

    5. Re:Measure the objective not the code by RingDev · · Score: 2

      At a high level, absolutely!

      I don't know how many project charters have come across my desk that have the project goal as "To create software that..."

      I work at a food company. A multibillion dollar food company. We do food research. We sell food. We do NOT turn a profit writting software. So no project should ever come to me with a goal of creating software.

      You are correct in that the only metric that matters to the business is the profit. But in order to determine individual contribution, you can't just look at the 50,000 foot view. You'll wind up with some rather irate folks if the people who did all the work get the same bonus as the ones who contributed nothing, or negative value.

      There are Objectives, and then there are Enabling Objectives. Enabling objectives are were you can start to compare individual contributions to the outcome of the overall Objective.

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
  10. Developers will cook the books anyway by Anonymous Coward · · Score: 3, Insightful

    If they know their productivity is being measured, it becomes a contest to see who can cook the books the best anyway.

    1. Re:Developers will cook the books anyway by inglorion_on_the_net · · Score: 2

      If they know their productivity is being measured, it becomes a contest to see who can cook the books the best anyway.

      Yes. And this would be a Good Thing if the metrics actually measured the right thing. The problem is, the metrics represent something that isn't actually what you want, so developers are motivated to do something that isn't actually what you want.

      So if you are going to be using a metric at all, the first questions you should ask yourself is what the metric measures, and if that is actually what you care about. For example, you could measure how many lines of code people produce, and reward people based on that, but is more lines of code actually better for your business?

      Personally, I don't have a great solution for comparing performance that matters, and motivating developers to increase it. I've seen some bad metrics. I've also worked with people who identified key performance indicators for their work and evaluated everything by them (when asked if they can do something, if it doesn't help them towards their KPIs, they'll say no), and it has been a very pleasant experience.

      I think that if you _can_ find a good metric and motivate people to score better on it, this is a Good Thing. The difficulty is that the things you are interested in are often either fuzzy and hard to quantify, or black and white and only known at the end. In many cases, no metric is better than a bad metric, and your best guide may be your own judgment: make sure you know what people are doing and how they work, interact with them, and you will probably see which ones are great and which ones aren't so great.

      --
      Please correct me if I got my facts wrong.
  11. We need metric metrics by naroom · · Score: 5, Funny

    metrics provide little insight

    If only we had some kind of.... metric metric.

  12. What about non-coding time? by slapout · · Score: 2

    What about all the time you spend not coding: meetings, documentation, training users on how to use the system, working out the design before you start coding, answering emails, sending status reports, filling out time sheets, coordinating work with other developers, coordinating things with others in IT so your program will have a server to run from, being the go-between for the IT server team and the customer when the server goes down, creating database layouts and writing SQL?

    --
    Coder's Stone: The programming language quick ref for iPad
    1. Re:What about non-coding time? by EricWright · · Score: 2

      Not according to some of the developers around here. Of course, these are the types that put "select * from table" into their Java code, then try to filter data in the application layer. Then they whine that their application is slow.

      Seriously.

    2. Re:What about non-coding time? by lwsimon · · Score: 2

      Well, that's just ignorant, then.

      I write SQL most of the day, and in my opinion, it's more difficult to do well than traditional programming. If I'm writing a webapp somewhere, I only have to keep the individual logic i'm working on in my head - with SQL, I may have to know how a single dataset is processed over a half dozen steps to get the result I want.

      --
      Learn about Photography Basics.
  13. Re:Complex things can be measured by obsess5 · · Score: 2

    But that's the whole question, isn't it? What are the *relevant* "easily quantifiable measures"?

  14. lazy management by J-1000 · · Score: 5, Insightful

    This all comes down to lazy, gutless management. Why take the time to get to know Dave and monitor the quality of Dave's work when we can just look at a spreadsheet at the end of the month? Managers prefer to tinker with automatic analysis software rather than manage.

    Which is more fun, getting a better handle on what Dave is doing, or researching fancy new software tools that might get you all sorts of praise from metric-craving executives?

    Dave's job, which was once about creating a quality product, now shifts to merely satisfying the metrics.

  15. Repeatability by 3count · · Score: 4, Insightful

    Metrics are valuable if you do the same thing repeatedly. If you build a new building that is like the previous one, you can collect metrics and compare your performance against history. If you write the same search algorithm again and again, you can collect metrics and compare to see how your performance changes over time. Of course, with software, you never repeat. Somewhere around the third time, you move it into some form of library, reuse it, and start on a fresh problem. Perhaps metrics are helpful in some situations, such if your team keeps repeating the same mistakes, you might find similarity in those mistakes (code smells.) There are plenty of people working on these problems and tools. But, from a management point of view, if you keep doing the same thing, you are doing it wrong, and code metrics are not going to help much.

  16. Why are metrics so damn important by Riceballsan · · Score: 4, Insightful

    I don't get the concept of everything needing to be quantified. Does the team accomplish what the goals of having the team are? Does it get developed in a fair timeframe? Is everyone on the team pulling their own weight, or are there complaints of someone slacking off? In the end if the product works then the team is doing well, if the product isn't there should be at least one hybrid manager/coder that actually works with the team members sees who is committing what and can tell off the bat if there is or isn't a weak link dragging the rest down. Actually putting a pen and paper number on a complex project is silly. Do authors get judged by the number of pages they write in a day, no they get paid by the success or failure of the book. You can't judge by the number of lines of code, bugs per line ratio or anything like that, because it is all subjective and has little to no bearing on the end product.

  17. Hmm by Hognoxious · · Score: 2

    Not everything that matters can be measured; not everything that can be measured matters.

    -- Einstein (or maybe it was Franklin)
     

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  18. This is BS by fortapocalypse · · Score: 2

    Measuring developer output/metrics effectively is a tough problem. Developers could solve it, but if they do, then they have to both change the way that they work and possibly work harder. Developers are smart enough to know that the metrics will be misused, even if the logic used to produce them is valid. Therefore, any solution will be ridiculed by the development community as insufficient, but the degree to which it is ridiculed will lessen as the solution improves. A solution though, is inevitable if development continues.

    1. Re:This is BS by DalDei · · Score: 2

      BS

  19. more reasons than just reuse. by RingDev · · Score: 5, Interesting

    Writing for reuse can be excessive, but there are a number of reasons to move in that direction even if you don't intend to reuse that specific code block:

    1) Unit Tests. If you abstract your functionality in a way that allows reuse, it also abstracts in for extremely easy unit testing. And unit testing will save you an incredible amount of effort in code maintenance.

    2) Consistency. If you follow the same design pattern for all of your abstractions, all of your developers should be familiar with it. This makes it significantly easier for different developers to step into projects as the hopefully don't have to learn another person's style for abstraction.

    3) Replacement and isolation. Need to implement a functional change? If your code is abstracted, like it would be for reuse, the functional change is limited to a single block, which is easily identifiable and if you're doing it right, unit-testable.

    4) Just in case. Most of the time abstracted code doesn't get reused, and event when it does get reused it's usually a copy and paste job instead of a reference. Even so, if anyone ever does need the same functionality, it allows them to quickly rip off the exact piece they are looking for as opposed to trying to strip out your programs logic to get the tiny bit they want.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    1. Re:more reasons than just reuse. by Radres · · Score: 3, Insightful

      It's easier to just refactor for re-use after the fact than try to design upfront for something that might someday never happen.

    2. Re:more reasons than just reuse. by c++0xFF · · Score: 4, Insightful

      And the "reusable" version very often isn't reusable at all, since the original coder didn't properly envision what other use cases would look like.

  20. Re:Coding is an art by stanlyb · · Score: 4, Insightful

    And every developer starts as an engineer, and ends as an artist. As simple as that. The engineer can do anything, but have not done it yet. The artist knows what to NOT DO, because he has already done it, and does not wanna to repeat all the teenage mistakes again. The artist just gives you the solution. End of story.

  21. If you need metrics to know who your stars are ... by Surt · · Score: 2

    ... you are already doomed. You've gone so far down the wrong path there's no hope of recovery.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  22. Measure Effectiveness, not Productivity by TheWoozle · · Score: 3, Interesting

    I think the idea of "productivity" is a hold-over of the Industrial Revolution that does not pertain to many of today's jobs; jobs where the unit of work is hard to define, and ultimately irrelevant. Are you telling me you pick your doctor by how many patients he can see in a day? Probably quite the opposite!

    In terms of software development, I find that the *effectiveness* of a developer is more important, where effectiveness considers the following (not an exhaustive list):
          - Appropriateness of solution
          - Thoroughness of implementation (logging, exception handling, graceful failure, input validation, etc.)
          - Well-written, parsimonious code that is easy to read and descriptive of what it does
          - Works right the first time, no kickbacks from QA or end user

    Give me someone who is effective but slow over someone who craps out junk quickly any day of the week and twice on Sunday! In the end, I don't care about productivity metrics, I care that the end users get a useful piece of software that does what they need with a minimum of headaches.

    --
    Insisting on "correct" English is like saying that there is only one, definitive recipe for chili.
  23. Re:If you need metrics to know who your stars are by Surt · · Score: 2

    Yeah, that's an upper management failure in my book. They should be connected well enough to know what is going on at least two levels down, not one (enabling them to check the calibration of their direct reports). If that's not possible, the branching factor is probably too high.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  24. the most important things can't be measured by PJ6 · · Score: 2

    This is the guy who first said it.

    Stop listening to the MBA and metrics nutjobs. Don't try to manage your people like the machines they operate.