paint-brush
The Ultimate Guide To Design Patterns And Generic Composite In Pythonby@asher-sterkin
1,449 reads
1,449 reads

The Ultimate Guide To Design Patterns And Generic Composite In Python

by Asher Sterkin8mApril 11th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The Ultimate Guide To Design Patterns And Generic Composite In Python. In Python, the Composite Design Pattern is the first design pattern to consider. The traditional Abstract Base Class approach makes overloading ALL abstract interface methods mandatory. In this case, a variation of the Null Object Design Pattern worked better — the abstract Base Class defined a default implementation of each method just returning an empty Tuple. With such a high degree of variability, defining abstract methods turns out to be impractical — many resources will need to implement only a small subset of the overall 8 methods.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - The Ultimate Guide To Design Patterns And Generic Composite In Python
Asher Sterkin HackerNoon profile picture
Asher Sterkin

Asher Sterkin

@asher-sterkin

Software technologist/architect. 40 years in the field. Focused on Cloud Serverless Native solutions

Learn More
LEARN MORE ABOUT @ASHER-STERKIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Asher Sterkin HackerNoon profile picture
Asher Sterkin@asher-sterkin
Software technologist/architect. 40 years in the field. Focused on Cloud Serverless Native solutions

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