Moving from a procedural approach to an object-oriented one, with all its assumed benefits, tends to add an additional issue: instantiation. Whereas a procedural program or script tends to load, run, and then unload, the creation of object instances can be much more involved and can continue throughout the runtime life cycle of the software. Given this, developers often feel that solving “the instantiation” problem is job one. It is decidedly not. Also, typically instances will be created by the same code that uses them, often proximate to their use. This would seem to make the code more readable and easier to work with, but it often ...
- Chapter 2. Separate Use from Construction
- from Essential Skills for the Agile Developer: A Guide to Better Programming and Design
- Publisher: Addison-Wesley Professional
- Released: August 2011
When transitioning from a traditional procedural approach to an object-oriented one, adds the issue of instantiation. This lesson discusses the issues that arise when you do not separate the use of an instance from its construction.
Share this highlighthttp://www.safaribooksonline.com/a/essential-skills-for/27265/