多少行数_经验丰富的程序员和其每日代码行数
John D. Cook是一位數學教授、程序員、顧問、經理人和統計學家,善于并享受結合運用這些技能來解決問題。他曾撰文說(中文):
“最近,我聽說了一個關于缺乏經驗的程序員和經驗豐富的程序員每天寫相同行數的代碼的研究結果。其不同之處在于,經驗豐富的編程人員讓這些代碼更高效,向著目標穩步前進;缺乏經驗的程序員單純地將大段的代碼分隔開,并且多次復寫相同的代碼塊直到它們看起來能夠運行。或者不拆分代碼,他們連續調試好多天,幾乎是隨機的改變一兩行代碼,直到這些代碼看起來能夠運行……
并且,也有研究顯示,程序員每天編寫相同行數的代碼與他們使用的語言無關。你可能認為使用匯編語言的程序員每天能比使用像VB或Java之類的高級語言的程序員編寫更多的代碼,但是事實并非如此。雖然通過數代碼的行數來衡量程序員的產量是一種很爛的方法,但它卻是判斷一個人大腦能裝多少東西的好方法……”
John D. Cook
Experienced programmers and lines of code
by JOHN on JUNE 3, 2008
I heard of a study recently that concluded inexperienced and experienced programmers write about the same number of lines of code per day. The difference is that experienced programmers keep more of those lines of code, making steady progress toward a goal. Less experienced programmers write large chunks of code only to rip them out and rewrite the same chunk many times until the code appears to work. Or instead of ripping out the code, they debug for days on end, changing one or two lines at a time, almost at random, until the code appears to work.
As Greg Wilson pointed out in his interview, focusing on quality in software development often results in increased productivity as well. More effort goes into forward progress and less goes into re-work.
Not only do experienced programmers produce more lines of code worth keeping each day, they also accomplish more per line of code, sometimes dramatically more. But that’s not news. It’s well known that the best programmers aren’t just a little more productive than average, they’re one or two orders of magintude more productive. (See, for example, Joel Spolsky’s book Smart and Gets Things Done.) More interesting is that the best programmers don’t seem to have a much larger capacity for producing and understanding lines of code.
There have also been studies that show programmers produce about the same number of lines of code per day independent of the language they use. You might think that someone working in assembly language could produce more lines of per day than someone writing in a higher level language such as VB or Java, but that’s not the case. It seems that while counting lines of code is a terrible way to measure productivity, it is a good way to measure what you can expect someone to be able to hold in their head.
私信“01”領取海量C/C++的編程學習資料以及代碼編輯工具。我設置好了自動回復,就看你們是不是需要這些了。
總結
以上是生活随笔為你收集整理的多少行数_经验丰富的程序员和其每日代码行数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 魔法门之英雄无敌王朝如何提升战力 魔法门
- 下一篇: NASA 机智号直升机完成第 59 次火