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の考え方とテクニック

8章そのエラーを無視するな!

必要なことは無知と自信であり、その二つがあれば成功は確実である。

――マーク・トウェイン

おとぎ話でくつろいでください。いうなれば、プログラマの物語です。

ある夜、バーで友人達と会うため通りを歩いていました。しばらく一緒にビールを飲んでいなかったので、再び彼らと会うのを楽しみにしていました。私は急いでいて、足下をよく見ておらず、縁石でつまずいて、うつ伏せに倒れてしまいました。まあ、注意を払っていなかったので仕方ないでしょう。

足を怪我しましたが、友人達に会うために急いでいたので、立ち上がって歩き続けました。歩けば歩くほどに痛みは強くなっていきました。最初は頭から痛みを払いのけていましたが、何かが思わしくないことにすぐに気づきました。

しかし、バーへと急ぎました。到着した頃には激しい痛みを感じていました。痛みで気が散ったので、素晴らしい夜を過ごすことができませんでした。朝、医者に行き、すねの骨が折れていることが分かったのです。痛みを感じたときにバーへ行くのを止めていたら、骨折したまま歩いて余計に悪くすることを防ぐことができたはずです。おそらく、人生にとって最悪の二日酔いでした。

多くのプログラマが私の悲惨な夜のようなコードを書いています。

エラー? どんなエラー? 重大ではないよ。それは無視できるよ。これは、頑強なコードを作り出すための勝利の戦略ではありません。実際、それは明らかな怠惰です(悪い種類の怠惰です)。自分のコードにエラーが起きないと思っても、常にエラーを検査して、エラーを処理すべきです。毎回です。そうしたことを行わなければ、時間を節約しているつもりになるかもしれませんが、潜在的な問題を将来へ先送りしています。

要点▶可能性のあるエラーをコード内で無視しないでください。 ...

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