4 ms·
Yes, in fact many static code analyzers and metrics will flag a piece of code as too complex if it has too many nested ifs. But it does sound a lot less glamor
by the_af 6y ago
Yes, in fact many static code analyzers and metrics will flag a piece of code as too complex if it has too many nested ifs.
But it does sound a lot less glamorous, doesn't it?
- tester34 6y agofor marketers? maybe for me? if it works, then it's great - especially here, where it saved people's life & expensive af aircraft
- mikestew 6y agoWell, “it works” in your desktop testing. That doesn’t mean it works. How do you test the permutations of 50 nested if statements such that you know “it works”? Whoops, there’s a bug reported from the field. Have fun debugging that corner case. Or IOW, why do you think the static analyser flagged it in the first place?
- akiselev 6y agoIt doesn't matter if it's 50 nested ifs or not if we're talking about a recent generation jet fighter - it's going to be hell to test no matter what. Even with provable control systems you're still at the mercy of cutting edge technology and the whole point of the jet is superiority over a yet unknown adversary with high tech capabilities so the system has be overengineered with that in mind.