You Ain't Gonna Need It

| No Comments | No TrackBacks
      今天看了Daniel Lemire关于software design的一篇文章Cool software design insight #1。其中的建议其实就是software engineering中的一条准则:You Ain't Gonna Need It (YAGNI)。他建议software engineer不要轻易在程序中加入新的功能,直到真正需要它的时候。
      我有两点感触:1. 一开始不加入新的功能并不代表要忽视程序的可扩展性,如果将来真的到了需要加入新功能,但是牵一发却动全身,那么大量的时间将会被浪费在改造程序,并且很 有可能会给旧功能引入新的bug。2. 一定要保留旧功能的testing case,这样可以减少加入新功能后测试旧功能所需要的时间。

No TrackBacks

TrackBack URL: http://lua.me/cgi-bin/mt/mt-tb.cgi/8

Leave a comment

About this Entry

This page contains a single entry by Jiang published on August 1, 2008 12:07 PM.

Cuil was the previous entry in this blog.

赤壁 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.