??? 05/11/12 10:47 Read: times |
#187319 - exceptions are normally too little too late Responding to: ???'s previous message |
But exceptions are still just a glorified "oops, I failed".
So there are still a released software that suffered from an error detected in runtime instead of caught before shipping. Some systems have huge control flow graphs that makes it almost impossible to create the stimuli to run all paths when testing. And with an interpreted language, there can be huge errors that are waiting to be found just because you can't manage 100% code coverage when testing before delivery. In the end, exceptions (the computer language version with throw/catch) are good to return to a known state after more-or-less expected runtime problems. And the hw version of exceptions (like invalid instructions, writes to read-only memory etc) are good to recover when something goes wrong with the actual hardware - maybe after a memory bit upset. But for the quality of shipped code, we do want tools that can load and analyze the complete bulk of code and spot variables without volatile, critical sections implemented in ways where they may not unlock, use of uninitialized variables, ... Something that tries to find out if we have missed a dot on an i. |
Topic | Author | Date |
Interreted Languages - revisited | 01/01/70 00:00 | |
No Tools? | 01/01/70 00:00 | |
Interpreted is always problematic for complex problems | 01/01/70 00:00 | |
It's more than just syntax | 01/01/70 00:00 | |
lint isn't really a syntax checker | 01/01/70 00:00 | |
Yea That | 01/01/70 00:00 | |
Static code analyser | 01/01/70 00:00 | |
Exception handling | 01/01/70 00:00 | |
exceptions are normally too little too late | 01/01/70 00:00 | |
the issue with interpreted languages is ... | 01/01/70 00:00 | |
interpreted languages are more than "throw away code" | 01/01/70 00:00 | |
I hate throwing objects in the cogs, but... | 01/01/70 00:00 | |
Someone else responsible for compiling the interpreter | 01/01/70 00:00 | |
But the same applies to compiled languages! | 01/01/70 00:00 | |
Disagree | 01/01/70 00:00 |