4 ms·
> Obviously, anyone who says "the current year is 2020" is talking about the Gregorian calendar that everyone is familiar with Context always matters. Which i
by berkes 5y ago
> Obviously, anyone who says "the current year is 2020" is talking about the Gregorian calendar that everyone is familiar with
Context always matters.
Which is why we have (or should have) Domain Boundaries. Within which we have (or should have) ubiquitous language. And within wich our deliberate assumptions always hold true.
More practical, this is one reason why you want to isolate dependencies behind an anti-corruption layer, or some adapters or whatever architecture to isolate.
It isolates your internal context, where it is fine to assume 2020 is western calendar and not the Thai calendar (where the current year is 2565, and used by some hundred million potential customers). Eventhough the library you use may deal with all those intricacies, within your domain, you deliberately don't.
These problems are solved. Eric Evans wrote a fantastic book (DDD) explaining how it has been solved, 18 years ago. We must keep bringing such problems up. But we should try to avoid inventing solutions again and again.
And we should certainly avoid giving up, and saying this silly, unsolvable or Just Too Hard™.