paint-brush
Thematic Configuration with the Abstract Factory Patternby@severinperez
174 reads

Thematic Configuration with the Abstract Factory Pattern

by Severin Perez8mOctober 17th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In object-oriented design, one of the principle aims is to produce code that is flexible, maintainable, and reusable. One of the ways to do this is to use abstractions in your code rather than concretions. The more your objects know about how one another are implemented, the more dependencies there are in your system. As the number of dependencies grows, the potential for cascading breakage grows as well. But what happens when you have a system that requires certain objects to come from the same family? How do you ensure that any objects you instantiate are indeed from that family without hard-coding a complicated control structure? One solution to this problem is the <em>abstract factory pattern</em> (AFP). Let’s dive in and see how it&nbsp;works.

Company Mentioned

Mention Thumbnail
featured image - Thematic Configuration with the Abstract Factory Pattern
Severin Perez HackerNoon profile picture
Severin Perez

Severin Perez

@severinperez

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite