Generic key based factory
I often find myself adding some sort factory in almost every project I’ve ever worked on. Let’s say we have a pizza price checker factory that returns a validator to check if the price is valid based on a particular type of pizza. It would look something like below However, if you have other similar … [Read more…]