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

Rob Pike on Object Oriented programming

  •  
  •   siw · 2012-11-15 12:43:54 +08:00 · 3728 次点击
    这是一个创建于 4180 天前的主题,其中的信息可能已经有所发展或是发生改变。
    5 条回复    1970-01-01 08:00:00 +08:00
    Kymair
        1
    Kymair  
       2012-11-15 21:47:45 +08:00
    OO的确有很严重的缺陷,现在学了Clojure等FP之后回过头去看的确这么感觉。Disclaimer: 当然FP也不是什么都好。

    Erlang作者Joe Armstrong: Why OO Sucks http://news.ycombinator.com/item?id=4245737
    Clojure作者Rich Hickey: Are We There Yet http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey
    是我很喜欢的两篇相关讨论
    soulhacker
        2
    soulhacker  
       2012-11-16 15:43:34 +08:00
    想起 Joe Armstrong 某次访谈说过他认为 OO 的核心概念是 messaging、isolation 和 polymorphism,而 object 和 class 并不是关键。
    lldong
        3
    lldong  
       2012-11-17 01:31:24 +08:00
    @soulhacker Alan Kay在这封邮件中也强调 The big idea is messaging http://c2.com/cgi/wiki?AlanKayOnMessaging
    reus
        4
    reus  
       2012-11-17 01:37:25 +08:00
    所以golang就没有继承,只有embedded struct
    humiaozuzu
        5
    humiaozuzu  
       2012-11-17 15:38:16 +08:00   ❤️ 1
    OOP Isn't a Fundamental Particle of Computing http://prog21.dadgum.com/156.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   994 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:46 · PVG 06:46 · LAX 15:46 · JFK 18:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.