Skip to content

Commit 094a494

Browse files
authored
doc: emojis 🥳
1 parent c0b7775 commit 094a494

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapter04_factory/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Chapter 4: Factory patterns
22

3-
## Simple Factory
3+
## Simple Factory 🚧
44

55
> A class which chooses which product class to instantiate and return, based upon method parameters.
66
@@ -12,7 +12,7 @@ and [dataclasses](https://docs.python.org/3/library/dataclasses.html#module-data
1212
are factories for creating classes.
1313
The Factory Boy package provides easy object creation for Django and for other ORMs.
1414

15-
## Factory Method
15+
## Factory Method 📋
1616

1717
> Defines an interface for creating an object, but lets subclasses decide which class to
1818
> instantiate. The Factory method lets a class defer instantiation to subclasses.
@@ -28,14 +28,14 @@ generation and to allow extension through the creation of new factory methods wi
2828
I took advantage of this to add a new class for the creation of 3D QR codes with my favourite NURBS modelling software
2929
Rhino - it was super simple once I understood the pattern.
3030

31-
## Abstract Factory
31+
## Abstract Factory 🏭
3232

3333
> Provides an interface for creating families of related or dependent objects without specifying
3434
> their concrete classes.
3535
3636
For instance the `PizzaIngredientFactory` abstract class defines an interface for a family of products.
3737

38-
## Builder 👷🏻‍♀️
38+
## Builder 👷🏻‍♀️🏗️
3939

4040
When the object creation gets more complex with a number of distinct steps then the Builder pattern comes in,
4141
esseantially using a Template method to put all of the creation steps together.

0 commit comments

Comments
 (0)