Comments by stefano-zanotti-88

All comments ranked by humor rating

Real Metalheads® code in assembly. The mnemonics are way more intelligible than their vocals.

@TL044CN That's great, but you need to get rid of std::cout.flush() The original crashes mid-sentence, after singing 'Hello W—' Since C++ is (or should be) faster, it might be acceptable if it crashes earlier, with 'He—' or something similar.

Also, the following is some wishful thinking – which is not all that out of place, now that I think of it.

/* * If I may introduce a bug, the compiler and runtime checks will catch it for me * ensuring both security and reliability * then I'll write my code once, and compile it everywhere! * With static and strong typing, my programs will be type safe! */

More likely:

/*
 * If I may introduce a bug, the compiler will happily let the program crash and burn.
 * Fail fast, fail hard!
 * Then I'll write my code once, and wrestle a dozen different toolchains!
 * Of static and strong typing, type-punning will make a joke!
 */

You might also want to add volatile to

int s = joeyDeCaio->size();

or the compiler might completely remove it, which would prevent the crash.