search

Home  >  Q&A  >  body text

android - 构建App的时候,提早优化代码结构有必要么?

当我们构建一个App的时候,经常会对设计模式,架构进行选型。
也有可能因为需求的变化导致最初的选型不是一个最优解。
那么,在极端情况下,我们就会选择过早优化。

但是架构并没有完美的,所以,我们在开发的过程中,是一边开发业务需求,一边重构比较好,还是一开始想清楚,再下手比较好?

怪我咯怪我咯2771 days ago545

reply all(4)I'll reply

  • 大家讲道理

    大家讲道理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

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:44:42

    It’s never too early to optimize your code structure

    reply
    0
  • 伊谢尔伦

    伊谢尔伦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.

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:44:42

    Work -> Right -> Fast

    is not a reason to write bad code

    reply
    0
  • Cancelreply