[Rod Johnson] 框架的设计没必要太XP

他说:

The XP advice of "Writing the simplest thing that could possibly work" isn ‘t always appropriate

It’s impossible to refactor the interfaces exposed by a framework without breaking code that uses it and severely reducing its usefulness. Even within an organization, the cost of incompatible changes to a framework can be very large (on the other hand, it is possible to refactor the internals of a framework)
. So the framework must be designed upfront to meet reasonably anticipated needs. However, adding unneeded flexibility increases complexity. This balance calls for fine judgment.

他在另一处还提到,做设计要尽量简单化,但是框架不能太简单。框架应该复杂一点,以使得框架之上的应用能够简单

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.