神刀安全网

Common Fundamental Theorem of Software Development

Common Fundamental Theorem Of Software Development

Introduction

Let’s consider two unobfuscated source code, A and B, that do exactly the same thing. Now, let’s say that A has 10 times less lines of code than B. Then we can say that, in average, one line of A produce more value than one line of B.

Lemme

There exists a value V that is produced, in average, by one line of code of an unobfuscated source code.

(As a side note, it is suggested to call strong code , an unobfuscated source code that has a high value per line of code. Conversely, it is suggested to call weak code , a source code that has a low value per line of code.)

Common Fundamental Theorem Of Software Development

Given any two unobfuscated source codes, the one that produces more value in average per line of code is greater.

Direct consequences of the Common Fundamental Theorem Of Software Development

Any practice that tend to increase generaly the average produced value per line of code, without obfuscating, should be considered good practice . Conversely, any practice that tend to generally decrease the average produced value per line of code should be considered bad practice . What is true for practices is also true for languages, methodologies, tools, etc.

Finally, good programmers then favors anything that makes code stronger, that is, anything that make code produce more value per line.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Common Fundamental Theorem of Software Development

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮