はるぐち ゆうま
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 【2月と3月】オブジェクト指向実践ガイド輪読会🚴‍♂️ ###### tag: オブジェクト指向設計実践ガイド輪読会 ## 2023-02-03(土) ### 読んだところ p.245 いつテストをするかを知る ~ p.258 ロールとして依存オブジェクトを注入する ### 次回 p.259 テストダブルをつくる ### 議題(あれば) ### 疑問点・気づき・学んだこと - zamami - テストをする際に隠れた依存はテストでは気づきにくいことがわかった(例:ライブラリの破壊的変更) - 隠れた依存はオブジェクトを注入することによって把握できるようになる - クラスをのオブジェクトを注入すると変更があると受信する側が気づきにくくなるので注意(no method 〜) - オブジェクトの注入をロールで行うといい - kitarou - RSpecとMinitestのちがいが参考になった - DIはすっかり忘れていたけど思い出せた ←SOLIDの"D"(依存逆転、Dependency Inversion) - 使われていないメソッドや引数は消すこと - テストダブルは上位概念の言葉で、その下にモックやスタブがいる(ダブル=代役、影武者の意味) - BDDもう少ししらべてみる - fuwa - やはりテストは大事。技術的に未熟でも書くことが大事。 - TDDもBDDもテストファーストである - いらないメソッドや引数は消すべし - と言いながらも業務だと本当に使われていないのか確証がないから残しとこみたいな感じになりがち - haruguchi - テストファーストとTDDとBDDはどっかでちゃんと理解したい - テストがないと辛い話に花が咲いた - model specは書きやすいからみんな描くんだけどE2Eも書こう - mockオブジェクトの使い方は実務でやっと実感が出てきた ### 最近どう? - kitarou - 走った後に鼻がむずむずするようになりました🤧 - Vue3移行、なんとかVite移行まで(ほぼ)終わったので来週から別のアプリケーションのVue3移行をやります - haruguchi - 運動の近況: ステッパーを導入してリハビリ生活してます。 - 最近は専ら、集合論、数理論理を勉強しててプログラミングと近いところの数学も面白いと感じています。 - RubyKaigiのスポンサーで何やるか考えてるけど、沖縄っぽいことをしたい - zamami - kitarouさんのプレゼン見てブルーベリー本書いました(まだ読んでない) - 今週の沖縄は半袖で過ごしても暑いくらいでした - fuwa - お金がないのでいつ買ったか覚えていない白米を食べようか悩んでいます - キックボクシングを始めて早3週間。なぜか太りました。 ## 2023-02-025(土) ### 読んだところ p.259 テストダブルをつくる ~ p.276 ダッグタイプをテストする ロールをテストするまで ### 次回 p.276 ロールテストを使ったダブルのバリエーション ### 議題(あれば) ### 疑問点・気づき・学んだこと - kitarou - スタブは状態を、モックは振る舞いをテストするのに使う - Mockクラスの使い方・・・newして、expectして、verifyする - プライベートはパブリックに進化することもありうるとのこと。「テストしない勇気」というワードが印象的だった(ただし使わないに越したことはない、らしい) - tomo - DIを明示的に使う機会はあまりないけれど、使いこなせるともっとよいコードが書けるのだろうか(DIはフロントでより使うイメージ) - zamami - 受信メッセージをテストする際、テストダブルを使うと夢の世界が発生するので文書化する(9.2) - プライベートメソッドは基本テストしない、パブリックメソッドのテストが教えてくれる。(9.3) - プライベートメソッドが整ってきたらクラス化してそこでテストすればいい? - 送信側はちゃんと送信しているか、受信側はちゃんと受信しているかに絞ってテストする(9.5) - 送信側はモジュール化したテストを都度読み込んで夢の世界の確認をする?(9.5) - memo 「プライベートメソッドは書かない」!?!?!? - haruguchi - あるクラスのオブジェクトがあるメソッドを実装していることを保証するためのテストとしてmoduleでテストを切り出して実装先のテストでincludeするという手法がある。 - MiniTestには標準でMockが備わっている ### 最近どう? - kitarou - 自炊できるよさげなスキャナがあったので買いました。これで裁断済みの本にも手を出せるw - https://www.amazon.co.jp/dp/B0BCJZFHZN - tomo - 実は自分もさいきん首が痛いので姿勢を見直す&前傾チルトも使ってみようかな - zamami - シンプルなボードゲームにハマっています。 - ガイスター  - https://mobiusgames.shop-pro.jp/?pid=144929015 - ブロックス - https://www.amazon.co.jp/%E3%83%9E%E3%83%86%E3%83%AB-MATTEL-BJV44-%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%82%B9/dp/B00FBWBM3G/ref=sr_1_5?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&crid=J90YR8X8LW11&dib=eyJ2IjoiMSJ9.XAJcanFTHM071n9dyFYLf4fx-Ier_dirf3z4ZO5TWINvBiAeW0RG9zvo1ODtr-ujV1L5X472iPeMmwnna-UmG1lSNQAlfXhY9-R_kKXokoaxHnOscOLJ286JH4ezquBxYkfH2V-Y22KNmH33flQ-yNH23w-i4qz_l54WgJJ8sNo12oguyV_HRgmO-C8qx-J1dHJmjqjxCnwIo5zedAk4PsZcXT6lMzVsBq9g7gwSCynrXuTjMwrIGeNJvhAig2nFVn6QHpxkSru8bqXDt6vo7vmhpC307ZEQhUzmCrEZdO4.lFQ2IvrfocXQACB9rq0gB1qpDmHilBb3N-NcJv1pQaI&dib_tag=se&keywords=%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%99&qid=1708827696&sprefix=%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%99%2Caps%2C208&sr=8-5 コロンブスの卵 https://gamemarket.jp/game/109394 - haruguchi - 最近縄跳びやってるんですが、公園にいるおばあちゃんが強すぎて弟子入りしました - 仕事ではひたすらcase式をダッグタイプしてます。 ## 2023-03-2(土) ### 読んだところ ### 次回 ### 議題(あれば) ### 疑問点・気づき・学んだこと - haruguchi - 終わった! - テストもうまく抽象クラスと子クラスで分けていい感じにやる必要がある - ちょっと前まではテスト設計に悩むことが多かったけど、オブジェクト指向理解して少し、悩まずテスト設計できるようになった実感がある。かもしれない。気がする。 - zamami - テストダブルを使って継承のテストを書いた! - 抽象クラスとサブクラスのテストをモジュールに書いて全て読み込んでテストする。 - 抽象クラスは自身はリスコフの置換原則を使ってスタブしたインスタンスを作る。 - みなさんのおかげで最後まで輪読会に参加できました。プラクティスに取り組んでいる時に1人で読んでも途中から理解できなかったので輪読会とharuguchiさんのライブコーディングに助けられました。感謝! - yeah! - sadanora - 初参加にして最終回。完走おめでとうございます:tada: - kitarou - こんな難しい本を完走できたことにしみじみ - 9.2の「夢の世界に生きる」の解決策はrespond_to - 「自分のサブクラスは自分である」 ←抽象クラスのテストをするアプローチ - adapterパターンについて学んでみたい ←テンプレートメソッドパターンとの比較 - fuwa - 完走めでたい!! - テストを抽象クラス、サブクラスに分けると良さげになる - リスコフの置換原則はやっぱり大事 - 久しぶりすぎてリスコフってなんだっけ状態になったので復習しないと。。。 ### 最近どう? - haruguchi - 福井寒い。 - そういえばボクシングやることになった - 一緒にがんばりましょう〜 :muscle: - 目標はおばあちゃんより縄跳び多く飛び続けること - 3/16日からアルゴリズムの勉強をやります。 - fuwa - キックボクシングの楽しさが最近わかってきたかもしれない - 仕事で全然コードが書けなくてかなしい - 昨日の夜から右手の薬指の根本?が痛くてちょっと大変です - kitarou - 読みたい本が多すぎてプラクティスに身が入らない問題 - sadanora - 近所で新築アパートの工事がはじまるらしい。しばらくうるさそう。 - 最近鉄則本をかいました - mee to :sunglasses: - zamami - この1ヶ月Laravelでシンプルな顧客管理アプリ作ってました。 - 沖縄は断水問題が深刻になりました。(10年ぶり) - 沖縄、めっちゃ寒くなりました(15℃) - いやいやいや、、、笑 - 一昨日までみんな半袖で過ごしてました笑

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully