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 · 2288 次点击
    这是一个创建于 4454 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   实用小工具   ·   2773 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:05 · PVG 12:05 · LAX 20:05 · JFK 23:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.