patterns¶
A list of (sometimes experimental) useful Patterns learnt¶
Code/experiments written in python
Configuration Purposes:
| Pattern | Description | Usage |
|---|---|---|
| hoco | handle/manage/merge multiple json configuration files | When there is a need to merge/refer/link multiple configurations |
Creational Purposes:
| Pattern | Description | Usage |
|---|---|---|
| abstract factory | Abstracts what object is created. Creates a particular instance of object based on business logic | https://sourcemaking.com/design_patterns/abstract_factory |
| builder | Abstracts how an object is created. Decouples the creation of a complex object and its representation. | https://sourcemaking.com/design_patterns/builder |
| lazy evaluation | Evaluate only when needed and only once | https://github.com/django/django/blob/ffd18732f3ee9e6f0374aff9ccf350d85187fac2/django/utils/functional.py#L19 |