V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Hualin
V2EX  ›  程序员

Do no evil in your code, finish it and make your life happy

  •  
  •   Hualin · 2012-09-12 19:51:23 +08:00 · 2215 次点击
    这是一个创建于 4249 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Now let's face it. I do not like object-oriented programming nor do I with UML, simply do not believe in them, pretty evil things. The good code I learned so far is, if you writing a computer programe, you are building a machine or a toy, not a fancy world in the RAM. Design no more than it needs to be done and make it simple.

    https://twitter.com/kouhualin/status/245851720956141569/photo/1
    1 条回复    1970-01-01 08:00:00 +08:00
    Hualin
        1
    Hualin  
    OP
       2012-09-12 20:02:24 +08:00
    and if you happen to write a GodClass, it is not your fault. if you want to refactor those attrbutes into more subclasses you are more in trouble. It is no your fault, it is the nature of OOP, be happy and no guilty. leave it.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2276 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:35 · PVG 16:35 · LAX 01:35 · JFK 04:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.