| | Software is too expensive to build cheaply...: Creational vs access patterns, and other diversions (Site not responding. Last check: 2007-10-12) |
 | | The primary point of creational patterns, BTW, is to decouple the type of an object from the class of an object. |
 | | By using a creational pattern, you can separate the concern of what exactly an object is (which class is it) from the question of how you use it (the type you care about). |
 | | In this example, we've gone from a pure creational pattern (create a datasource) to a mixed access/creational pattern (access a datasource to create a connection) to a pure access pattern (access a connection, via dependency injection). |
| twasink.net /blog/archives/2004/09/creational_vs_a.html (1528 words) |