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

The Ultimate Guide To Design Patterns And Generic Composite In Python

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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


Receive Stories from @asher-sterkin

react to story with heart
Asher Sterkin HackerNoon profile picture
by Asher Sterkin @asher-sterkin.Software technologist/architect. 40 years in the field. Focused on Cloud Serverless Native solutions
Read My Stories

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa