August 2022
Intermediate to advanced
469 pages
8h 13m
English
In a “managed” language such as C#, the process of creating a new object is simple: just new it up and forget about it. Now, with the proliferation of dependency injection, another question is whether creating objects manually is still acceptable, or should we instead defer the creation of all key aspects of our infrastructure to specialized constructs such as factories (more on them in just a moment!) or Inversion of Control containers?
Whichever option you choose, creation of objects can still be a chore, especially if the construction process is complicated or needs to abide by special rules. So that's where creational patterns come in: they are common approaches related to the creation of objects ...
Read now
Unlock full access