4 ms·
There is a good debugging advice related to this story: "if your code is the same but suddenly starts behaving differently, check for hidden state."
by userbinator 8y ago
There is a good debugging advice related to this story: "if your code is the same but suddenly starts behaving differently, check for hidden state."
- alanbernstein 8y agoIt's more like code than state, isn't it? The thing that changed is the implementation of a circuit for computing the result of some calculation, i.e. a function.
- sgillen 8y agoI very often think of the current definitions of functions as part of the program state.
- DDR0 8y agoYou're right – but I don't think "hardware" usually counts as state!
- kibwen 8y agoWe don't generally count hardware as state because we expect it to be a reliable abstraction, but this same attitude applies to other things we do too: note that any program you've ever compiled can also count the compiler itself as state; this is the whole foundation for trusting-trust attacks!
- deleted 8y ago[deleted]
- krz 8y agoI usually say “check environment”, which is usually the reason — cron jobs run in non-interactive mode, new version of system library, wrong PATH variable, new math co-processor and so on.