Skip to Content
ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック
book

ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

by Pete Goodliffe, 柴田 芳樹
December 2017
Intermediate to advanced
376 pages
4h 22m
Japanese
O'Reilly Japan, Inc.
Content preview from ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

38章コードへの叙情歌

ひどい詩のすべては、誠実な感情から生まれる。

――オスカー・ワイルド

ジェラルドは、小さなチームで働くコーダーだった。実は、他のコーダーはひどいコードを書いていた。そのひどさは、害があり、気を散らし、不愉快であった。つまり、邪悪な仕事中毒による非人間的な所業であった。

 

しかし、ジェラルドは、良心を持っていた。彼は放置したりしない。夜遅くまで、正すための方法を考えた。ひどい内部構造、紛らわしい変数名。そして、絶えず正気とは思えない不自然な制御の流れ。

 

最初の頃は、「ボーイスカウトルール」が彼の行動指針であった。バグと複雑なソフトウェアは、彼の足元にあった。取り組めば、すぐに視野から消えると、彼は思った。

 

しかし、かわいそうなジェラルドは、重要なことを一つ見落としていた。前進するには、すべてのプログラマが協定を結ばなければならないことを。いいかげんなコーディングを行う彼の同僚は規則を無視するだけであった。ジェラルドが片付けている一方で、同僚らはゴミを生み出し続けていた。

 

一歩前進し、二歩後退。ジェラルドは、これを繰り返していた。この状況は、彼が攻撃的な態度を取る必要性を学ぶまで続いた。アジャイルチームは優れており、クリーンなコードが最善である。これを達成するには、コードではなく、チームを何とかしなければならなかった。

 

コンウェイの法則は、ソフトウェアがどのようにチームに従うかを述べている。最適なソフトウェアは、円滑に機能している機械から生まれる。歯車が動かなくなったり砕けたりしたら、行うべきことを行えなくなる。そして、一つの選択肢が残った。取り除くことだと、ジェラルドは考えた。

 

したがって、チームのリファクタリングが「上位からのパラメータ化」パターンで始まった。 ...

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

リーンエンタープライズ ―イノベーションを実現する創発的な組織づくり

リーンエンタープライズ ―イノベーションを実現する創発的な組織づくり

Jez Humble, Joanne Molesky, Barry O'Reilly, 角 征典, 笹井 崇司, Eric Ries

Publisher Resources

ISBN: 9784873118208Other