Book description
Prefactoring approaches software development of new systems using lessons learned from many developers over the years. It is a compendium of ideas gained from retrospectives on what went right and what went wrong in development. Some of these ideas came from experience in refactoring. Refactoring is improving the design of existing code to make it simpler and easier to maintain.
This practical, thought-provoking guide details prefactoring guidelines in design, code, and testing. These guidelines can help you create more readable and maintainable code in your next project.
To help communicate the many facets of this approach, Prefactoring follows the development of a software system for a fictitious client, named Sam, from vision through implementation. Some of the guidelines you'll encounter along the way include:
- When You're Abstract, Be Abstract All the Way
- Splitters Can Be Lumped Easier Than Lumpers Can Be Split
- Do a Little Job Well and You May Be Called Upon Often
- Plan Globally, Develop Locally
- Communicate with Your Code
- The Easiest Code to Debug Is That Which is Not Written
- Use the Client's Language
- Don't Let the Cold Air In
- Never Be Silent
- Don't Speed Until You Know Where You Are Going
Table of contents
- Copyright
- Dedication
- Preface
- Introduction to Prefactoring
- The System in So Many Words
- General Development Issues
- Getting the Big Picture
- Got Class?
- A Few Words on Classes
- Getting There
- The First Release
- Associations and States
- Interfaces and Adaptation
- Zip Codes and Interfaces
- More Reports
- Invoices, Credit Cards, and Discounts
- Sam Is Expanding
- A Printserver Example
- Antispam Example
- Epilogue
- Guidelines and Principles
-
Source Code
- com.samscdrental.configuration Package
- com.samscdrental.controller Package
- com.samscdrental.dataaccess Package
- com.samscdrental.display.adt Package
- com.samscdrental.display Package
- com.samscdrental.failures Package
- com.samscdrental.helper Package
- com.samscdrental.importexport Package
- com.samscdrental.migration Package
- com.samscdrental.model.adt Package
- com.samscdrental.model.dto Package
- com.samscdrental.model Package
- com.samscdrental.reports Package
- com.samscdrental.tests Package
- Colophon
- Index
Product information
- Title: Prefactoring
- Author(s):
- Release date: September 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596514495
You might also like
book
リーダブルコード ―より良いコードを書くためのシンプルで実践的なテクニック
美しいコードを見ると感動する。優れたコードは見た瞬間に何をしているかが伝わってくる。そういうコードは使うのが楽しいし、自分のコードもそうあるべきだと思わせてくれる。本書の目的は、君のコードを良くすることだ。(本書「はじめに」より) コードは理解しやすくなければならない。本書はこの原則を日々のコーディングの様々な場面に当てはめる方法を紹介します。名前の付け方、コメントの書き方など表面上の改善について。コードを動かすための制御フロー、論理式、変数などループとロジックについて。またコードを再構成するための方法。さらにテストの書き方などについて、楽しいイラストと共に説明しています。日本語版ではRubyやgroongaのコミッタとしても著名な須藤功平氏による解説を収録。
book
Java™ Performance
“The definitive master class in performance tuning Java applications…if you love all the gory details, this …
book
WordPress Top Plugins
Find and install the best plugins for generating and sharing content, building communities and generating revenue …
book
PhoneGap Essentials: Building Cross-Platform Mobile Apps
PhoneGap is Adobe’s distribution of the free and open source framework (originally developed by Nitobi) that …