Agile2019 has ended
Thursday, August 8 • 14:00 - 15:15
Patterns of Object Instantiation (David Bernstein)

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

One important difference between writing object-oriented software and writing procedural software is the notion of object construction. Objects must be instantiated before they can be used. This is much more than a technical detail, it is at the very core of OO's usefulness.
A key distinction—and therefore opportunity—of object-oriented programming over procedural programming is that objects have two phases in their lifecycle: creation and use. By separating these two phases so that certain kinds of tasks are done when an object is created, and other kinds of tasks are done later during usage, we can build software that’s more modular, independently verifiable, and extensible.
In this session, we’ll explore how you can leverage object instantiation to build more testable, decoupled, and maintainable systems. We’ll cover several common antipatterns in instantiation along with replacement patterns that drop the cost of ownership for software built in object-oriented languages such as Java, C Sharp, C++, etc.

Learning Outcomes:
  • Leverage object instantiation to write more decoupled and maintainable code
  • Use the object-oriented programming model to build maintainable software
  • Recognize and avoid instantiation anti-patterns that make code harder to extend
  • Apply instantiation patterns that improve software’s testability and extensibility
  • Know when to use factories to efficiently construct groups of objects that go together
  • Encapsulate object construction to gain the benefits of a factory without extra work


avatar for David Bernstein

David Bernstein

Consultant, To Be Agile
David Scott Bernstein is the author of the new book _Beyond Legacy Code: Nine Practices to Extend the Life (and Value) of Your Software._ It’s an insider’s view of the software industry drawn from his decades of hands-on experience as a software developer, trainer, and consultant... Read More →

Thursday August 8, 2019 14:00 - 15:15 EDT
Chesapeake A/B/C