ヨムナビ
The Art of Readable Code: Simple and Practical Techniques for Writing Better Code (English Edition)

The Art of Readable Code: Simple and Practical Techniques for Writing Better Code (English Edition)

Dustin Boswell and Trevor Foucher

"O'Reilly Media, Inc." / 2011-11-10

累計読者数3
平均ハイライト数 22件/人
推定読了時間 約4時間6分
star総合評価 58/100
start序盤集中型
check_circle推定完走率 38%

この本について

コードを書いていると、「自分では読めるけど、他人から見ると何を意図してるか分からない」という場面がよくあります。変数名を眺めながら、これで伝わるのか…と手が止まったり、複雑な条件式を前にため息が出たり。最適化を意識すればするほど、読みやすさとどちらを優先すべきか迷うこともあります。 『The Art of Readable Code』は、そのモヤモヤを無理に解決しようとせず、「どうすれば誤解されにくいか」「どこが読み手を困らせているのか」という視点に引き戻してくれます。たとえば名前の付け方ひとつでも、他の意味に取られないか積極的に疑う姿勢や、max_ / min_ のように限界が一目で分かる書き方の話は、地味ですが翌日からすぐコードに反映できます。複雑なロジックに向き合うときも、あえて弱点や迷いをコメントとして残すことで、結果的に全体がすっきりするという指摘が印象的でした。読みやすさが最適化と矛盾しないという考え方も、肩の力が抜けます。 個人的には、「読み手を怖がらせない」「曖昧な代名詞を避ける」「単語にもっと情報を詰める」といった具体的な工夫が、経験年数に関係なく効くところがありがたいです。自分の書くコードがどこで“怖さ”や“解読の負荷”を生んでいるか知りたい人には特に刺さると思います。

この本に似ている本

すべて見る arrow_right_alt
書籍情報(出版社紹介・目次)expand_more

出版社による紹介

As programmers, we've all seen source code that's so ugly and buggy it makes our brain ache. And let's be honest, we've all written code like that. With this book, you'll learn to write code that's easy to read and understand. You'll have more fun and your coworkers will love you. The Art of Readable Code focuses on the nuts and bolts of programming, with simple and practical techniques you can use every time you sit down to write code. You'll find tips throughout the book, with easy-to-digest code examples, helpful illustrations, and cartoons for fun. Learn to pick variable names that are "dense with information" Organize your loops and conditionals so they're easy to understand Make your comments short and sweet Recognize when your code is doing too many things at once Write tests that are concise, but thorough Master the art of breaking hard problems into many smaller ones
library_books似た本をもっと見るmap書籍マップで探すroute読書パスガイドauto_awesomeAI診断で次の1冊を探す

読んだ内容を、もう忘れない。

BookNotion Zなら、Kindleのハイライトを自動で保存・整理。Notionにエクスポートして、いつでも振り返れます。

無料ではじめる

クレジットカード不要