TIP

The important point is that the cost of adding a feature isn’t just the time it takes to code it. The cost also includes the addition of an obstacle to future expansion. Sure, any given feature list can be implemented, given enough coding time. But in addition to coming out late, you will usually wind up with a codebase that is so fragile that new ideas that should be dead-simple wind up taking longer and longer to work into the tangled existing web. The trick is to pick the features that don’t fight each other. — John Carmack, computer game programmer
有一点需要注意,增加一个功能的成本并不仅仅是实现它所花费时间。在扩展过程中会遇到很多bug,还要包括解决这些bug的时间。所以说如果增加一个功能,就要预留足够多的时间。除此之外,不管新的需求有多简单,你在实现的时候都会感到非常的担忧,代码的复杂性和脆弱性让你如履薄冰,陷在泥潭里无法自拔。有一个窍门可以解决这个问题,那就是新提的需求与原来的功能不要有任何关系。

转载于:https://www.cnblogs.com/studywithallofyou/p/11136421.html

你可能感兴趣的:(TIP)