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

2 Layers of abstraction

This chapter covers

  • How to break a problem down into subproblems with clean layers of abstraction
  • How layers of abstraction can help us achieve a number of the pillars of code quality
  • APIs and implementation details
  • How to break code into distinct layers of abstraction using functions, classes, and interfaces

Writing code is about solving problems. These can be high-level problems, such as “We need a feature to allow users to share photos,” all the way down to low-level problems such as “We need some code to add two numbers together.” Even if we’re not conscious of the fact we’re doing it, when we solve a high-level problem, we usually do it by breaking it down into multiple, smaller subproblems. A problem statement ...

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