Skip to Content
Software Design X-Rays
book

Software Design X-Rays

by Adam Tornhill
March 2018
Intermediate to advanced content levelIntermediate to advanced
276 pages
7h 11m
English
Pragmatic Bookshelf
Content preview from Software Design X-Rays

Solutions: The Principles of Code Age

Here are the solutions to the exercises in Chapter 5, The Principles of Code Age.

Cores All the Way Down

TensorFlow’s core/lib/core has low package cohesion and could be separated into smaller and more cohesive packages. The threadpool module would go into a concurrency package, while the arena and refcount modules are related to managing heap memory and could be contained together in a new allocation package.

Deep Mining: The Median Age of Code

To calculate a median value, we need to get the age of each individual line of code. This sounds like a job for git blame. We could even add the --porcelain option to make it easier to consume the output.

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

Righting Software

Righting Software

Juval Lowy
Design It!

Design It!

Michael Keeling
Flow Architectures

Flow Architectures

James Urquhart

Publisher Resources

ISBN: 9781680505795Errata Page