Skip to Content
Tidy First? ―個人で実践する経験主義的ソフトウェア設計
book

Tidy First? ―個人で実践する経験主義的ソフトウェア設計

by Kent Beck, 吉羽 龍太郎, 永瀬 美穂, 細澤 あゆみ
December 2024
Beginner to intermediate
164 pages
1h 15m
Japanese
O'Reilly Japan, Inc.
Content preview from Tidy First? ―個人で実践する経験主義的ソフトウェア設計

19章リズム

最初に立ち戻ろう。整頓するのは、将来システムの振る舞いを変更するときに、それを簡単にするためだ。将来の変更を簡単にするのは、それに価値があると思っているからだ(異論があると思うので、経済性の話はあとでするつもりだ)。さて、ここでは何を議論すべきだろうか? そう、つかの間の休息を取ってからつらい仕事に戻るべきか、それとも何時間もずっと整頓するべきかだ。

整頓管理術の1つは、リズムの管理だ。以前の章で出たこの図(図19-1)では、整頓を小さなバッチにするよう勧めた。

構造の変更をまとめるか分けるか

図19-1 構造の変更をまとめるか分けるか

振る舞いの変更の前に続いている構造の変更は、1つがどれくらいの時間を表しているだろうか?

さて、ソフトウェア設計はフラクタルだ。なので、どんな時間軸にもなりうる。だが、本書の目的を踏まえ、1つのソフトウェア設計の時間軸を取り上げる。それは個人の範囲にとどまるソフトウェア設計だ。つまり、数分から1時間くらいまでだ。振る舞いを変更する前に1時間以上整頓するようだと、実現したい振る舞いの変更に必要な最小の構造変更を見失っている可能性が高いことを意味する。

もしくは、振る舞いを変更する前に何時間も整頓できるほど、コードがひどい可能性もある。そうだとしても、その状況は長くは続かない。ソフトウェア設計は「道を舗装する」傾向が強いのだ。

こんな話を聞いたことはないだろうか。ある大学がたくさんの建物を造った。計画者は、それを結ぶ歩道をどこに造るか考えていた。だが、そこで経験にもとづいて注意深く推測するのではなく、建物のあいだのエリアに芝生を植えたのだ。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Tidy First?

Tidy First?

Kent Beck
Fluent React

Fluent React

Tejas Kumar
Command-Line Rust

Command-Line Rust

Ken Youens-Clark

Publisher Resources

ISBN: 9784814400911Publisher Website