How would I use contravariants to improve the architecture of some code?
I geek out on articles like this, but I frequently struggle to see where I would actually apply it.
I geek out on articles like this, but I frequently struggle to see where I would actually apply it.
Like, if your code isn't already written in terms of classes, you probably can't just jump in and use OOP design patterns to do anything.
Similarly, you may need to start from a reasonably functional codebase to apply most functional programming concepts.