4 ms·
It has been said that Go4 software design patterns are signs of language defects. Most all of them can be implemented as single lines of code in Python.
by jnwatson 6y ago
It has been said that Go4 software design patterns are signs of language defects.
Most all of them can be implemented as single lines of code in Python.
- koenigdavidmj 6y agoMost languages codify common idioms from earlier ones; I don’t see how most of the patterns are any different. I’m sure there were a lot of assembly programs that used the “call stack pattern”. I’m sure there are a lot of C programs that abuse struct packing to do inheritance (the “class pattern”, sometimes with crappy vtables) or the preprocessor to do “templates”. And even in Python, you’ve got to use the visitor pattern due to single dispatch.