News for hackers. Stuff that matters.
Re:Cognitive Load is what matters by ajuc on Sunday August 31, 2025 @03:48PM (#45086436)
> Making invalid data unrepresentable simplifies so much code

That's the dream. Error handling is what crushes it :)

Re:Cognitive Load is what matters by cma on Tuesday September 02, 2025 @02:25PM (#45107064)
Often invalid data it is still representable where you ingest it, but you can then do all the error handling there and convert to a representation where it isn't, instead of having all the code constantly sanity checking it. Not always possible but it can make a big improvement a lot of times.