|
|
|
|
|
by kburman
220 days ago
|
|
This is a perfect example of something that looks good in a demo but fails in a real product. Business logic and 'packages' are never this clean or simple. Putting this kind of type-based 'magic' in the code is a bad decision that will bite you very soon. It optimizes for being 'cute' rather than being clear and maintainable, and that's a trade-off that almost never pays off. |
|
Here's the example that runs in hundreds of integration tests:
It asserts what plans the customers see on the pricing page.