News for hackers. Stuff that matters.
Re:Strong typing, a hill I'm willing to die on by taeric on Wednesday October 04, 2023 @11:02AM (#37766195)
Right, but you should also take pains to keep the original. All too often the deserialization/validation can also alter the data. In many places, this is fine, I think. In many others, it leads to a ton of confusion.

Edit: I wrote "but you should", I really should have worded that as "and you should". I am wanting to add to your point, not contradict it.

Re:Strong typing, a hill I'm willing to die on by tasn on Wednesday October 04, 2023 @11:34AM (#37766669)
Oh yeah, I agree, and I learned it the hard way. In many cases you want to keep the customer format rather than the canonical format. This is why I stopped using Postgres's JSONB for customer data, and exclusively use String/JSON nowadays.