Re:Github.com Down Again?
by sjrd on Tuesday September 06, 2022 @06:23PM
(#32743999)
To me, if the code is not "as simple as possible, but not simpler", it is not beautiful.
[ Parent
| on HN ]
Re:Github.com Down Again?
by withinboredom on Tuesday September 06, 2022 @06:52PM
(#32744218)
And there’s nothing wrong with that, but, I’ve seen some devs these days spend waaay too much time on “making it simpler” or whatever their ideal is, at the cost of error handling or you know, solving an actual problem. Personally, I don’t care what the code looks like as long as it’s resilient in the face of unexpected errors (ex: a user input of 0 to a division function is not “exceptional,” you should have anticipated that, while a service input of the same may be a breach of contract between the services and IS exceptional) and actually solves a problem.
Re:Github.com Down Again?
by zoover2020 on Tuesday September 06, 2022 @07:19PM
(#32744425)
You're contradicting yourself here already.
Resilient code is easy to read/grasp code. It should pass a 3 am test too.
Re:Github.com Down Again?
by Dylan16807 on Tuesday September 06, 2022 @07:38PM
(#32744572)
I really think you're wrong to say there's no tradeoff here. Error handling makes code bigger and harder to read.