logoalt Hacker News

xliiyesterday at 12:07 PM1 replyview on HN

Exactly, model is in integers and representation can be 1⃣3⃣ or whatever, that's why model-view separation exist.


Replies

lxgryesterday at 12:21 PM

Sure, you can do that if you can absolutely guarantee that everyone will always respect that separation and there will never be ambiguity between your internal and some partner's representation – even during incidents, even during low-level CSV-to-DB ETLs during incidents ("just one time, I promise, we don't have time to build the proper adapter, but look how similar their and our formats are").