Hacker Newsnew | past | comments | ask | show | jobs | submit | leni536's commentslogin


Hah, that's exactly how it feels!

Any fallible cleanup function is awkward, regardless of error handling mechanism.


Java solved it by having exceptions be able to attach secondary exceptions, in particular those occurring during stack unwinding (via try-with-resources).

The result is an exception tree that reflects the failures that occurred in the call tree following the first exception.


I often miss this feature in other languages. It has saved me more times than I can count.


I make error logs fail happy path functional/integration tests for the backend applications I'm currently writing.


Requires google play to run :/


And what other platform should I add? The application is available in RuStore https://www.rustore.ru/catalog/app/com.khlebobul.pegma


Fdroid


I will think about it


Crazy you didn't even thought of it


ok


At the meantime (not mobile friendly): https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/pegs...

It is part of Simon Tatham's puzzle collection, it also has an app on F-Droid:

https://f-droid.org/en/packages/name.boyle.chris.sgtpuzzles/

And the sgt-puzzles package on Debian/Ubuntu, possibly other distros package it too.


There is an xkcd for that:

https://xkcd.com/1252/


Lockpicking youtubers? But I guess that market got exhausted early on.


It never was, we just don't remember the garbage ones.


> I “own” a car, but am not allowed to drive it in some situations (if I’m drunk, on the wrong side of the freeway, …). Does that mean the state actually owns it?

No, it means that the state owns the freeway.


It means the state owns you.


> Using Enums, etc. to represent those values in the embedded world would be a monumental waste of memory, where a single bit would normally suffice.

In C++ you can use enums in bit-fields, not sure what the case is in C.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: