The Art of Readable Code: Simple and Practical Techniques for Writing Better Code

前表紙
"O'Reilly Media, Inc.", 2011/11/03 - 206 ページ

As programmers, we’ve all seen source code that’s so ugly and buggy it makes our brain ache. Over the past five years, authors Dustin Boswell and Trevor Foucher have analyzed hundreds of examples of "bad code" (much of it their own) to determine why they’re bad and how they could be improved. Their conclusion? You need to write code that minimizes the time it would take someone else to understand it—even if that someone else is you.

This book focuses on basic principles and practical techniques you can apply every time you write code. Using easy-to-digest code examples from different languages, each chapter dives into a different aspect of coding, and demonstrates how you can make your code easy to understand.

  • Simplify naming, commenting, and formatting with tips that apply to every line of code
  • Refine your program’s loops, logic, and variables to reduce complexity and confusion
  • Attack problems at the function level, such as reorganizing blocks of code to do one task at a time
  • Write effective test code that is thorough and concise—as well as readable

"Being aware of how the code you create affects those who look at it later is an important part of developing software. The authors did a great job in taking you through the different aspects of this challenge, explaining the details with instructive examples."

—Michael Hunger, passionate Software Developer

 

レビュー - レビューを書く

The Art of Readable Code

ユーザー レビュー  - ayakix - Booklog

非常にあるある。文章も"plain English"で非常にわかりやすかった。 レビュー全文を読む

The Art of Readable Code

ユーザー レビュー  - mono0926 - Booklog

この手の本は何冊か読んだことあるけど、とりあえずこれ読んでおけばよいんじゃないかなというくらい安心できる内容に感じた。 中立的でバランスが良いのも好印象。 例えば、名前の付け方は大事といって、意味や意図が分かる名前にするべきと色々例を ... レビュー全文を読む

目次

Part I SurfaceLevel Improvements
5
Part II Simplifying Loops and Logic
67
Part III Reorganizing Your Code
107
Part IV Selected Topics
147
Further Reading
181
Index
185
著作権

他の版 - すべて表示

多く使われている語句

書誌情報