Better HN
topnewbestaskshowjobs
Log inSign up

fjdiccf

7 karma · joined Nov 11, 2022 (4y ago) · 3 submissions

Submissions

comment 4y ago · link · parent

Pretty much every single person using Linux or writing open source is doing it specifically because the choices they had were not adequate.

Don't like choice? Go back to Mac, spare us your hot takes.

comment 4y ago · link · parent

A guy I once worked with had a really good approach to exceptions: don't.

Basically if your code should throw, instead of throwing. Do something about it. Rollback the filesystem or transaction so things can retry or the process can exit.

Ideally, do not rely on someone reading a log message.

Instead, do what that person reading the log would need to do.

If that's an escalation to support staff or the CEO. Send the email. If the developer reading the log would just press a retry button, press the button for them.

Basically, giving up was just not an option, it worked pretty well tbh, sure we had logs and they were crucial for debugging failures but weekend callouts were not a thing. We never had to babysit processes. Never had to worry about filesystem corruption if you want to kill -9 a process mid run.

comment 4y ago · link · parent

https://www.thejuicemedia.com/derp/

Yes.