Tiny Types

I was recently introduced to a ‘mini-pattern’ called ‘Tiny Types’ by a co-worker. It boils down to creating types where you would normally use primitives. For example lets say you have the following code in your application: The problem comes into play when you go to construct a CoffeeShop object. It can be awkward and require you to recall the correct order of parameters: You get the point. Yes, we do have modern IDEs such as Eclipse or IntelliJ that can help you remember the order of parameters. »