74 karma · joined Jun 28, 2015 (11y ago) · 8 submissions
comment 1y ago · link · parent
try (File_handle fh {s, "r"}) {
// use fh
} unless (const File_error& e) {
// handle error
}
Where the "use fh" part is not covered by the exception handler. This is covered (in ML context) in https://www.microsoft.com/en-us/research/publication/excepti...comment 6y ago · link · parent
In these sorts of situations, negotiation is much harder on a personal level, since the company is not a faceless entity. The company does have a face, that's the face you have to look into when you state your salary request.
On the other hand, it's also harder to accept being underpaid, because if you don't get paid what you're worth, you know the extra profits will go (almost) directly into the pocket of a person you will see daily at work.
comment 8y ago · link · parent
This was my only tangible contribution to the Gimp, some twenty years ago. IIRC it was modelled after a similar feature in Paint Shop Pro, and it was easy enough an exercise for an aspiring programmer. Or so I thought: others have now spent much more time maintaining it than I spent writing it.
In hindsight it seems like a bizarre idea to have a feature whose GUI requires filling in 25 numbers. But perhaps it has use as an educational tool.
In development version of the Gimp, the entire plugin has effectively been rewritten. Good riddance!
comment 10y ago · link · parent
Fun thing about QTest1: even though you could only explore a static level and there were no creatures in it, the (then) Doom editing community had a ball delving into the details of the WAD format containing all its data. Finally they were rewarded: id had just dumped their graphics assets into the wad, and there were models inside, including the dragon, seen in the screenshots but, alas, not in the final game.
comment 11y ago · link · parent
comment 11y ago · link · parent
With manual daemonization, the process can delay forking until it has ensured that its configuration is sound and it has the resources it needs. This way the parent process can indicate with its exit status whether the service was successfully launched.