zoukankan      html  css  js  c++  java
  • 21 Laws of Computer Programming


  • Any given program, once deployed, is already obsolete.
  • It is easier to change the specification to fit the program than vice versa.
  • If a program is useful, it will have to be changed.
  • If a program is useless, it will have to be documented.
  • Only ten percent of the code in any given program will ever execute.
  • Software expands to consume all available resources.
  • Any non-trivial program contains at least one error.
  • The probability of a flawless demo is inversely proportional to the number of people watching, raised to the power of the amount of money involved.
  • Not until a program has been in production for at least six months will its most harmful error be discovered.
  • Undetectable errors are infinite in variety, in contrast to detectable errors, which by definition are limited.
  • The effort required to correct an error increases exponentially with time.
  • Program complexity grows until it exceeds the capabilities of the programmer who must maintain it.
  • Any code of your own that you haven’t looked at in months might as well have been written by someone else.
  • Inside every small program is a large program struggling to get out.
  • The sooner you start coding a program, the longer it will take.
  • A carelessly planned project takes three times longer to complete than expected; a carefully planned project takes only twice as long.
  • Adding programmers to a late project makes it later.
  • A program is never less than 90% complete, and never more than 95% complete.
  • If you automate a mess, you get an automated mess.
  • Build a program that even a fool can use, and only a fool will want to use it.
  • Users truly don’t know what they want in a program until they use it.
查看全文
  • 相关阅读:
    Docker 学习4 Docker容器虚拟化网络概述
    Ceph 命令
    Day_09【常用API】扩展案例1_程序中使用一个长度为3的对象数组,存储用户的登录名和密码……
    Day_08【面向对象】扩展案例4_年龄为30岁的老王养了一只黑颜色的2岁的宠物……
    Day_08【面向对象】扩展案例3_使用多态的形式创建缉毒狗对象,调用缉毒方法和吼叫方法
    Day_08【面向对象】扩展案例2_测试旧手机新手机类,并给新手机实现玩游戏功能
    Day_08【面向对象】扩展案例1_测试项目经理类和程序员类
    用两个栈实现队列
    二叉树前序、中序、后序遍历相互求法
    洗牌
  • 原文地址:https://www.cnblogs.com/yaoliang11/p/1845855.html
  • Copyright © 2011-2022 走看看