当我们构建一个App的时候,经常会对设计模式,架构进行选型。
也有可能因为需求的变化导致最初的选型不是一个最优解。
那么,在极端情况下,我们就会选择过早优化。
但是架构并没有完美的,所以,我们在开发的过程中,是一边开发业务需求,一边重构比较好,还是一开始想清楚,再下手比较好?
大家讲道理2017-04-18 09:44:42
Is it true to say "premature optimization is the root of all evil" and why?
Maybe you can refer to this question
伊谢尔伦2017-04-18 09:44:42
I don’t know what your development method is like.
It is an ideal situation to think clearly about this from the beginning, and there are not many times like this.
It is best to spend part of each sprint (or development cycle) optimizing the structure. Don't wait! Once you wait a little longer, basically the architecture will have to be replaced or used as a makeshift.
Also, it is unlikely to spend a lot of events on optimizing the code architecture. After all, the business line will not give that much time.