|
|
|
|
|
by dragonwriter
4601 days ago
|
|
No, what it means is that instead of documenting pattern templates that you have to fill in with the bits that pertain to your use case, you can provide library functions (or, in some languages, library macros) that take well defined arguments and do what the pattern is intended for, rather than providing boilerplate fill-in-the-blanks code Mad Libs. Instead of books of design patterns, you have code libraries with APIs, and you don't have to rewrite the code following the pattern for each new project. The less expressive the language is, the more need there is for template-style design patterns. The more expressive the language is, the more patterns can be implemented in reusable code. |
|