3 ms·
Unfortunately these stats likely mean nearly nothing when you separate them out on some more important dimensions. Javascript productivity is likely incredibly
by nwienert 9y ago
Unfortunately these stats likely mean nearly nothing when you separate them out on some more important dimensions.
Javascript productivity is likely incredibly variant as you have such a diverse set of tools/libraries/build-systems within it. At the top end you have people using async/await, Typescript, hot reloading, and a litany of libraries and patterns they have learned over years, test suites that encourage writing more tests more easily (Jest, Ava), and huge downstream efforts in tooling like the recent profiling improvements in Chrome devtools or profiling/errors in React.
In the end my best guess at what roughly equates to real-world productivity ends up being much more centered around the following metrics:
- Richness of developer debugging tools
- 3rd party library maturity
- Online community, documentation, examples (chat + q&a)
- Ability implement better design patterns easily
- Type systems
- Feedback loops (hmr, auto-restart, easy package writing)
Further, lines of code is a poor metric for effectiveness. As an example in JS, I much prefer a more explicit, less functional, and more spaced out style of code as it is really quite easy to read and debug and in effect takes no more time to write than the more dense functional style.
Caveat: I only skimmed the attached paper, but writing these thoughts to provide a counter to what I assume is the claim there.
- pvg 9y agolines of code is a poor metric for effectiveness. That's one of the central arguments of the paper. The metric it uses is not LoC, other than as a comparison to other metrics.
- codemac 9y agoYou should really read the attached paper. The whole point is that it takes total cost of ownership (i.e. all those other metrics / factors you list) into account, and function points instead of lines of code.. Capers Jones measures these things in a fairly sophisticated way, and has been working on it since the late seventies. Spend some time and read his work before making these surface level comments that are refuted directly in the source.
- nwienert 9y agoActually that applies only to a small part of what I wrote, which is why I still posted it. The bulk of my argument remains valid.
- codemac 9y ago... no, it doesn't. He evaluates productivity in terms of the total cost, including all of those development tools & practices you list. The bulk of your argument is valid, but it's by definition included in what Jones' calculates as "productivity". It's a enormous red flashing light that says "I didn't read the linked references".