// Homework for today. Write 2000 words reconciling "Your code must never crash" with "Intentionally putting crashes in the code". Fucktard.
// DEBUG_CRASH(( "xferScienceVec - vector is not empty, but should be\n" ));
//
// Lets discuss how Windows is a flaming pile of poo. I'm now casting the header
// directly into the structure, because its the one I want, and this is just how
// its done. I hate Windows. - jkmcd
... because they just casted lParam into a pointer to DEV_BROADCAST_HDR a few lines above, which is the common part of the different structure it could point to. That's just doing inheritance the C way. What did they expect? A C++ class from a C api?
I spent some time browing curiosities about old games, and what strikes me is that the code sometimes was quite personal. You could see the joy, the anger, the disappointment, the satisfaction. Nowadays it would never fly to name a variable "poo", you need to stay professional at all times.
> Also teenage me would probably be horrified finding out 30 years later his source code was public.
I guess that's why moral rights are unalienable in many countries: if you are horrified what they do with it, you still retain that and this right did not go to your employer
Not that I think there is anything here the devs need to be ashamed of, to be clear, just what came to mind as I read this remark
I'd just be horrified by the quality of some code. It included some of my best code, and some of my worst code. Some of it was written after three days straight with no sleep for those times when Eidos wanted to come for a personal demo.
I recently had a PR rejected because I used the name of a fictional character from a 90's movie in my tests. Keep in mind the character itself was not controversial. The reason given was that it's not professional.
Tbf, I chalked it up to a one singular cantankerous reviewer rather than the whole company.
This is similar to "burn-in" for markov-chain montecarlo. When the chain is initialized to some bad value, it requires a number of iterations to get into a "good chain". But for a uniform RNG, any value should be good.
I don't get the complaint in the comment. Asserts for invariants/pre-/postconditions are absolutely compatible with not crashing: don't violate those properties.