Mi è piaciuta molto questa frase di Kent Beck da una mail sulla lista xp americana, sull’uso del numero di linee di codice come metrica di produttività:
Lines of code has many limitations — it’s like measuring a factory based on its consumption of raw materials not on its output.
Ricorda un po’ quella di Edsger W.Dijkstra
Yet people talk about programming as if it were a production process and measure “programmer productivity” in terms of “number of lines of code produced”. In so doing they book that number on the wrong side of the ledger: we should always refer to “the number of lines of code spent”.