Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

The Design Example

This book describes the development of a system that incorporates many features of some of the systems that have been created in the past. The experience of creating those systems forms some of the guidelines for developing new systems. Developers are not perfect. We cannot read our client's mind, and his mind might change. The development story outlined in this book shows where decisions were made that had unanticipated ramifications.

This book presents one of many possible designs that can solve your clients' requirements. There is no absolute measurement method for evaluating the "goodness" of a design. There are obviously good designs and bad designs, but there are many gray areas as well. Counting the number of methods, lines of code, or number of classes seems like a very objective way of measuring, but often the resulting number is not necessarily meaningful, except for the extremes. I measure designs with a gut feeling. This parallels the "code smells" of refactoring. A system's overall design gives me a gut feeling ranging from "warm tummy" to "upset stomach."

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

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata