3 ms·
Often used to make unit testing easier. For that specific purpose, interpreted languages may have ways to monkey patch in mock objects and methods making it unn
by shubb 7y ago
Often used to make unit testing easier. For that specific purpose, interpreted languages may have ways to monkey patch in mock objects and methods making it unnecessary.
Patterns are mostly useful as a well thought out way of solving some problem, and as a language to describe conceptually difficult things so that other programmers don't need to figure out what you are doing. If there is a way to solve the problem that you prefer, or no one around you understands the pattern, better choose another option.
- mips_avatar 7y agoThanks for your perspective. I hadn't thought about the testing aspect.