144 karma · joined September 10, 2009
Also release builds were excluded from caching, to prevent any form of poisoning there.
Another side effect was that you always knew when the bathroom was in use (aside from someone forgetting to turn the light off, which you now had radio playing to remind you off).
Also agree on your point - I'm not saying I like exceptions, I like explicitly passing type-encapsulated results/errors more for clarity. Exceptions happen in a "second invisible lane" right next to the code you are writing, and for example aren't immediately visible when reviewing code.
Side note: Ruby has more syntax to grok, which makes it harder to read (for me). On the other hand Python does have its own idiosyncrasies and subtle behaviors. However, Ruby also has some features (like multiline inline functions) that one may easily miss in Python, but they haven't been worth switching over for me.
While I agree with the presented observation, just letting the exception bubble up to the top would have done the same thing. The memory leak presented here is just the result of not using RAII to clean up the resource.
Throwing an exception through a `noexcept` function terminates (or rather calls std::terminate) because you are doing something you explicitly said you wouldn't do, pass an exception through this function.
> For key functions we hardly know how to handle its exceptions, it might be a good idea to add the noexcept specifier.
On the contrary, `noexcept`s usecase is in places where we want to be sure a function doesn't just throw an exception, as this may thwart some guarantees we want to make to the caller. Sprinkling your functions with `noexcept` just to abort (which is already happening if the exception is unhandled) is bad code. Plus "we hardly know how to handle its exceptions" is the worst cop-out I've heard for dealing with exceptions - C++ exceptions are an essential part of the language and many libraries, so dealing with them should be a prime concern of the programmer.
Sure, this could be augmented with per-folder environments, fancy runner syntax, but less is more for me in this regard.
Ninja update: Anyway, I like what OP is doing here, seems like a lot of things are done right in this. :)
To this day, candidates that don't take care of getting enough sleep just to get things done, raise a red flag for me.
There's probably also an interesting conversation about effective cost: what does average Joe pay after taking deductions into account?