Skip to Content
ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール
book

ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

by Chris Zimmerman, 久富木 隆一
August 2023
Intermediate to advanced
452 pages
5h 11m
Japanese
O'Reilly Japan, Inc.
Content preview from ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

ルール112倍良くなるか?

 どんなプロジェクトでもいずれは、利用しているアーキテクチャーに元から存在する限界で行き詰まる。それまでうまくいっていたやり方にはとにかく合わないような、何かの問題にぶつかるってわけだ。今までのパラダイムでは表現できない機能を追加する必要があったりするかもしれない。例えば、フィルター処理の仕組みが、全て満たすべき一組の条件を指定できる場合に、ある条件をAND(論理積)じゃなくOR(論理和)で指定しなきゃいけない事例に出くわしたとか。

 あるいは、データの形態が変化したとか。ある規模の問題を解決するために構築したシステムが、時間の経過とともに、元々の想定とは異なる規模や形態の問題に使われ始めると、存亡に関わるパフォーマンスの問題に直面することになる。

 いろんな物事がこんがらかってきてるだけってこともありえる。現行のパラダイムは、特殊な場合に、システムの根本的挙動を微調整して変える方法を提供している。そういう方法があることが、そのパラダイムがこれまで長く続いた一因だ。でも今や、そういう拡張の仕組みは、特殊な場合だけじゃなく、ありとあらゆる場合に使われるようになっている。システムを使う際は毎回、様々な例外的な場合の間を「けんけんぱ」の遊びみたいに注意深く飛び跳ねなきゃいけない。そして、新しいものが動作するかどうか、ましてやそれがどのように動作するかを探り当てるのは、至難の業だ。

 コードの一部が古くなりすぎて、ことによるとコードベースの他の部分と合わないかもしれない。かなり先進的なC++言語のプロジェクト内に存在するC言語のコードが、構造体へのポインターをいろいろ手作りしてるのを見て、気後れするとか。そういうコードは、古く異質な考え方を代表しており、誰もがもっとモダンなパラダイムで書き直したいと思っている。 ...

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
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9784814400416Other