khjian
V2EX  ›  编程

忍不住的想优化代码怎么办?

  •  1
     
  •   khjian · Apr 20, 2017 · 5102 views
    This topic created in 3487 days ago, the information mentioned may be changed or developed.

    项目周期还挺紧的,然后实在对之前写的凌乱愚蠢的代码无法忍受,咋办?

    9 replies  •  2017-11-21 15:42:56 +08:00
    MegasLiu
    MegasLiu
    Apr 20, 2017 via iPhone
    1
    我一般会用业余时间优化
    Blazings
    Blazings
    Apr 20, 2017
    2
    能运行就别管, 项目做完再优化
    cxh116
    cxh116
    Apr 20, 2017 via Android
    3
    写了单元测试 想优化就优化
    hackerwgf
    hackerwgf
    Apr 20, 2017
    4
    先跑起来再说
    feng1234
    feng1234
    Apr 20, 2017
    5
    能跑就行,优化一边去。老板花钱雇你的最终目的是项目上线
    sonyxperia
    sonyxperia
    Apr 20, 2017
    6
    等你接受要修改那部分代码的时候再优化
    blacklee
    blacklee
    Apr 20, 2017
    7
    Done is better than perfect.
    khjian
    khjian
    OP
    Apr 21, 2017
    8
    好吧,那就先这样吧
    yoyohaha
    yoyohaha
    Nov 21, 2017
    9
    编程界有句古训:提前优化是万恶之源!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1395 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 17:04 · PVG 01:04 · LAX 09:04 · JFK 12:04
    ♥ Do have faith in what you're doing.