Skip to Content
Seriously Good Software
book

Seriously Good Software

by Marco Faella
March 2020
Intermediate to advanced
328 pages
10h 1m
English
Manning Publications
Content preview from Seriously Good Software

Appendix B. The ultimate water container class

After enduring 17 different versions of water containers, you may be wondering what’s the best one, what’s the ultimate water container class? The answer is not simple. In some sense, any of those versions (except Novice) can be the best one, given the right circumstances. For example, Speed1 is the best if you absolutely need constant-time addWa ter and getAmount. Similarly, Memory4 is the best if you absolutely need to squeeze as many containers as possible in a given amount of memory. In both cases, those versions are optimal only if you don’t care about any other software quality, which is admittedly a very unrealistic assumption.

In fact, treating software qualities separately, as I’ve done ...

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

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781617296291Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link