Try   HackMD

ちょうぜつ本_読書py[2] みんなのメモ

tags: ちょうぜつ本
  • このメモはWebに公開されています(HackMDチーム)
  • リンクを知っている人は見られます
  • HackMDにログインして編集できます

ちょうぜつ本

お願い事項

(1) 今を楽しもう(録画はしないでね)

(2) 本メモはインターネット上に公開されています。
そのため、文章の丸写し(!=引用)や、書籍を読まずに内容が詳細に分かる表現は行わないようにしましょう。

参考記事:

このメモについて

このメモは ちょうぜつ本_読書py[2] のメモです
https://connpass.com/event/289803/

読む範囲:3章

読書会の流れ

  • 20:00〜20:30 自由参加のもくもく会(個人作業)
  • 事前に読む時間がとれなかった方はここで読んじゃいましょう(ざっとで大丈夫です)
  • 合わせて、このHackMDに話したいことを各自書いてください
    • ログインすれば書ける設定にしています
    • ここがわからん、ここはわかった お気軽に書き込んでみてください
    • HackMDの書き込みに投票し、みんなが気になるところをわいわい読み解いていきます
  • 20:30〜22:00 読書会本編(みんなでわいわい)
    • Discordでスライド共有して別途案内します
    • 20:30開始の本編では、「わたしこれ気になる!」
      という話題に :+1: と書いて投票します。
      • Image Not Showing Possible Reasons
        • The image file may be corrupted
        • The server hosting the image is unavailable
        • The image path is incorrect
        • The image format is not supported
        Learn More →
        する上限はありません。
        気になる話題に全部
        Image Not Showing Possible Reasons
        • The image file may be corrupted
        • The server hosting the image is unavailable
        • The image path is incorrect
        • The image format is not supported
        Learn More →
        しちゃいましょう。
        ただし1つの話題には1個だけ
        Image Not Showing Possible Reasons
        • The image file may be corrupted
        • The server hosting the image is unavailable
        • The image path is incorrect
        • The image format is not supported
        Learn More →
        でお願いします
    • 票数が多い話題から話していきます。

以下、もくもく会ワークゾーン

以下は各節で「これってどういうことなんだろう」「ここからこういう気付きがあった」などを書き出すゾーンです。

第3章 オブジェクト指向

章よりも細かい目次は公開されていないようですが、読書会運営都合により見出し番号だけ記載しています

章全体への書き出しはこちらに

3-1

  • オブジェクト指向って結構「こういうものです」という説明が難しかったり、理解しにくかったりで最初に挫折する人が多いと思っている(かくいう自分がそうだった)ので、ひさてるさんのこの主張は「オブジェクト指向とは?」となった人に読んでもらいたい
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 最近、CS(コンピュータサイエンス)を学ぼうとして構文木とかパースとかの概念を再度学習しているけど、Pythonとかの我々のコーディングも人間が分かるように抽象化されたものだよなぁと気づきがありました(低水準な機械語とかを書かなくて良いという意味で)
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 関数型プログラミングまわりは私も斬られました(誤解してた)
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 良い(?)オブジェクト指向で書かれたものはクラスの内部まで見なくても理解しやすいと言えるのだろうか・・・?
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • そもそも、オブジェクト指向って、それまでの構造化プログラミングの考え方の発展だったんだよね
    • プログラミング技術ではなく、設計技術なのは勘違いされている部分
    • 構造化プログラミングについては、3-5で出てくるゾ!(そこで話そう)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →
  • 「オブジェクト指向」は人の数だけあるのかもしれない

3-2

  • 車の例、ほじくり出しが必要だったら、事故しか起こさない自信あります
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • ここで2章の原則が繋がってくるんですね
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • ミノ駆動本読書pyで紹介してもらったこの記事を思い出しました
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • カプセル化を説明する為によく「レジスター」をオブジェクトの事例として出している
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • 「境界線」をわかりやすく示すモデルとして満足している

3-3

  • プラグイン、めっちゃしっくり来たー!
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • PythonだとABCでもいいけどProtocolもしっくり来る
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • ここ数年、多態性の説明にはIterableを事例に使ってます。
  • 最初ポリモーフィズムって聞いた時に良く分からなかったけど、if文を使わずにコードを書けると知った時に「すごい!」って思いました
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • クラスの中に「処理モード」みたいなプロパティ作って、処理を分岐させていた10年前の自分に教えてあげたいテクニック

3-4

  • なんで抽象を使うのかもしっくり。私はずっとHogehogeInterfaceをなんかよさそうだから使いたいくらいの理解度でしたが、具象をあることにできるのか!
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 具象をあることにする抽象の実装はPythonだとABCかなあ。Protocolでもいけるのかなあ?
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • ここの最後の挿絵、言い得て妙な気がしたw
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • 裸の王様の話ってオブジェクトだったんだ!
  • 継承って、類似する処理をまとめるためのものではなくて、違う処理を分ける為のものなんだと考えてる
    • まだ上手く整理できてないから、うまく言葉になってないなぁ
  • インターフェースと継承の違いは、初学者がつまづきやすいポイントですね(体験談)
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • 使い方の違いにこだわる様子も見られる
  • 逆になぜ継承というものが一括りになって誤認?されているのかの話もあって興味深かったなぁ

3-5

  • 構造化プログラミングとの違いが整理された〜
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 構造化プログラミングはあまり知らなかった・・・
    • 構造化プログラミングは「順次」「分岐」「繰り返し」のことでもあるから、そうと知らずに使ってる部分がある ← シーケンシャルの話でした
    • 「モジュール化」的な部分(サブルーチンとか、関数への分割とか)は、今は余り意識する必要がない技術だとは思う(by老人会の方から来た男)
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →
      • パッケージ化 ≒ モジュール化