Skip to Content
Good Code, Bad Code
book

Good Code, Bad Code

by Tom Long
August 2021
Intermediate to advanced
376 pages
11h 2m
English
Manning Publications
Content preview from Good Code, Bad Code

5 Make code readable

This chapter covers

  • Techniques for making code self-explanatory
  • Ensuring that details within the code are clear to others
  • Using language features for the right reasons

Readability is inherently a subjective thing, and it’s therefore hard to put a solid definition on exactly what it means. The essence of readability is ensuring that engineers can quickly and accurately understand what some code does. Actually achieving this often requires being empathetic and trying to imagine how things might be confusing or open to misinterpretation when seen from someone else’s point of view.

This chapter should provide a solid grounding in some of the most common and effective techniques for making code more readable. It’s worth remembering, ...

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.
Start your free trial

You might also like

The Art of Clean Code

The Art of Clean Code

Christian Mayer
Clean Code Cookbook

Clean Code Cookbook

Maximiliano Contieri
Five Lines of Code

Five Lines of Code

Christian Clausen

Publisher Resources

ISBN: 9781617298936Publisher SupportOtherPublisher WebsitePurchase Link