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? ―個人で実践する経験主義的ソフトウェア設計

22章要素を役立つように関係づける

 

ソフトウェア設計とは何だろうか? 定義から始めるのは好きではないし、もう定義から始めなくても大丈夫だ。なぜなら、私が言う設計とはどんなものなのか、あなたはその例を見てきたはずだ。大きなゴールを達成するために、個々の判断がどう連鎖するかを見てきたはずだ。「ソフトウェア設計は人間関係のエクササイズだ」という言葉の意味を垣間見たはずだ。今や、私は「ソフトウェア設計」が何を意味するかを言えるようになった。それは「要素を役立つように関係づけること」だ。

これは大きな概念を表す割に、使っている単語の数は多くない。それぞれの単語にはしっかりとした重みがあるはずだ。それぞれを別々にして、それから元に戻すことにしよう。

22.1 要素

しっかりとした構造は部分からできている。

細胞小器官 → 臓器 → 生物。

原子 → 分子 → 結晶。

私たちの世界だと、トークン → 式 → ステートメント → 関数 → オブジェクト/モジュール → システムだ。

要素には境界がある。どこで始まり、どこで終わるかがわかる。

要素は子要素を含む。私たちの世界では、均質な階層構造(コンポジットパターンだ)を好む。前の例のような自然界の階層構造は均質ではない。含まれる子要素は、コンテナにはならない(この点が極めて重要かどうかは定かでないが、いつかソフトウェア設計を自然界のプロセスとして扱う本当に哲学的な本を書くまで忘れないようにするつもりだ)。

22.2 関係づける

 

さて、要素の階層がある。要素同士には関係性がある。ある関数が別の関数を呼び出す。関数は要素だ。「呼び出す/呼び出される」は関係性だ。自然界には、「食べる」、「日差しから守る」、「肥料を与える」といった関係性がある。 ...

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