タグ

oopに関するmiya-janのブックマーク (2)

  • 俺が悪かった。素直に間違いを認めるから、もうサービスクラスとか作るのは止めてくれ - Qiita


    Sandi Metz Rails 使  class HogehogeService # Hogehoge def process(hogehoge, option_a: nil, option_b: nil, option_c: false) history = hogehoge.histories.last unless hogehoge.activ
    俺が悪かった。素直に間違いを認めるから、もうサービスクラスとか作るのは止めてくれ - Qiita
    miya-jan
    miya-jan 2016/12/16
    “Sandi Metzの「オブジェクト思考設計実践ガイド」を読め”
  • Goodbye, Object Oriented Programming

    I’ve been programming in Object Oriented languages for decades. The first OO language I used was C++ and then Smalltalk and finally .NET and Java. I was gung-ho to leverage the benefits of Inheritance, Encapsulation, and Polymorphism. The Three Pillars of the Paradigm. I was eager to gain the promise of Reuse and leverage the wisdom gained by those who came before me in this new and exciting lands

    Goodbye, Object Oriented Programming
    miya-jan
    miya-jan 2016/07/25
    継承はクソって結論には同意なんだけど、関数型プログラミング使うよって結論にはまったく同意できない感ある。OOPのメリットって人間の理解しやすさとか責任の分離とかだと思うんだけど。
  • 1