| ▲ | Kwpolska 2 days ago | ||||||||||||||||
I've read that book, and it felt very childish and condescending. Design patterns cannot be applied in every language. While some patterns are applicable everywhere, many of them provide replacements for missing language features. For example, the Builder pattern is not very useful in languages with default parameters and named arguments. | |||||||||||||||||
| ▲ | microtherion 2 days ago | parent [-] | ||||||||||||||||
I'm not sure what Builder would have to do with default parameters and named arguments. Builder is extremely useful to pair with a parser, e.g. SAX. The parser parses the input, and the builder then decides what to do with it. | |||||||||||||||||
| |||||||||||||||||