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

23章構造と振る舞い

 

ソフトウェアが価値を生み出す方法は2つある。

  • 今日ソフトウェアが行うこと。
  • 明日ソフトウェアに行わせることができそうな新しいこと。

「今日ソフトウェアが行うこと」はまさにシステムの振る舞いだ。給与計算をしたり、ドロップシッピングのオーダーを送ったり、友人に通知を送ったりする(そしてもちろん、すべてのソフトウェアシステムは社会技術システムで、私たちは社会的な部分をまだ設計していない)。

振る舞いの特性は2つあるだろう。

入出力ペア
たとえば、とある地域でこの賃金相場でこれだけたくさん働けば、給与はこのくらいで納税申告はあのくらいになるはずである。
不変条件
給付額の合計は控除額の合計と等しくなるはずである。

振る舞いが価値を生み出す。膨大な計算を手動で行う代わりに、コンピューターは毎秒大量の計算ができる。手動で計算しなくてよくなる代わりに、お金を払う。もしソフトウェアの実行コストが電気代1ドルで、代わりに実行することで10ドルがもらえるなら、これはビジネスになる。

理論上は、このビジネスは永遠に実行でき、1ドル入れれば10ドルを生み出す。単純化しすぎなのはわかっている。ビット腐敗は現実のものだ。物事は常に変化する。流れのなかに止まりたいなら、船を漕ぎ続ける必要がある。しかし私が描こうとしている特徴を目的とするなら、今のところはこれで十分だ。

1ドルを入れて10ドルを吐き出す機械よりも良いものはわかるだろう。10ドル入れたら100ドルを吐き出す機械だ。もしくは、1ドル入れたら20ドルでもよい。どうすればもっと良い機械を手に入れることができるだろうか?

一言で言えば、オプショナリティだ。あるシステムが特定の振る舞いをするという事実そのものが、そのシステムの振る舞いに対する要求に変化を及ぼす(ハイゼンベルクの不確定性原理)。あなたが1ドルあたり10ドル生む機械にどれだけ支払うとしても、10ドルあたり100ドルの機械や1ドルあたり20ドルの機械にもっとたくさん支払うだろう。 ...

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