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: An Extra Team Member

Here are the solutions to the exercises in Chapter 10, An Extra Team Member: Predictive and Proactive Analyses.

Early Warnings in Legacy Code

The top hotspots at the function level, unlockAccept and addSslHostConfig, are both rather complex. One way to counter the complexity accumulation would be to introduce chunks as discussed in Turn Hotspot Methods into Brain-Friendly Chunks.

The recent changes in AbstractEndpoint.java seems to have been an extension of addSslHostConfig that gives the method the additional responsibility of replacing an existing host configuration. This also introduces some control coupling, as shown in the next code snippet:

 public​ ​void​ ​addSslHostConfig​(
  SSLHostConfig sslHostConfig, ...
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