■ トピック 長い関数はテストしにくい? テストがない長い関数は理解が難しい 長くなってからではテストを書くのも難しい その関数でやっていることを後からどれだけ読み解けるか 短くしようとする姿勢がいいコードにつながりやすい 短くすることで逆に読みにくくなるケース より短いコードで解決したいという欲求 コードの長さは読む側だけの問題 意図からコードへの投影、コードから意図への復元 長い関数からは意図を読み落としやすい カバレッジを測りながらコードを読む 一行一行コードを読む だいたいパターンでしか読んでいない 長くなる前にテストを書いておこう(テストファースト) ■ 参考リンク リファクタリング(第2版) 既存のコードを安全に改善する | Ohmsha プログラマー脳 ~優れたプログラマーになるための認知科学に基づくアプローチ - 秀和システム ■ おたよりフォーム https://forms.gle/RYUG7T4ctmF7Srf36 ■ X(Twitter) https://twitter.com/refactoradio ハッシュタグは #リファラジ です。
No persons identified in this episode.
This episode hasn't been transcribed yet
Help us prioritize this episode for transcription by upvoting it.
Popular episodes get transcribed faster
Other recent transcribed episodes
Transcribed and ready to explore now
SpaceX Said to Pursue 2026 IPO
10 Dec 2025
Bloomberg Tech
Don’t Call It a Comeback
10 Dec 2025
Motley Fool Money
Japan Claims AGI, Pentagon Adopts Gemini, and MIT Designs New Medicines
10 Dec 2025
The Daily AI Show
Eric Larsen on the emergence and potential of AI in healthcare
10 Dec 2025
McKinsey on Healthcare
What it will take for AI to scale (energy, compute, talent)
10 Dec 2025
Azeem Azhar's Exponential View
Reducing Burnout and Boosting Revenue in ASCs
10 Dec 2025
Becker’s Healthcare -- Spine and Orthopedic Podcast