Re: Future tools should do less building and more analyzing
"Paul Nichols [TeamB]" <
XXXX@XXXXX.COM>wrote
Quote
>>>... computer programmers would be could do more
>>>good fact-based analysis and less "wondering". ...
>>Generally, this is what profilers are for.
>Not entirely. I suspect (knowing John) that John refers
>not just to speed or coverage or leak checking and the
>like, but to /correctness/ of code. Profilers don't
>really do that. Unit testing and the like can help, but
>for more thorough testing of this sort you want a
>prover or something like QuickCheck, if your code will
>support it.
Features like madExcept and ExceptionMagic, should be
built-ins, not add-ins. Stack overflow, like can be
caused by recursion errors, should not cause the program
to just disappear. The compiler should check for and
issue recursion warnings and maybe even calculate the
max stack size required.
We need tools (or rules that can be followed) to make a
program that will guaranteed not to have memory
fragmentation problems.
But more than that, we need the features in the language
to include analogs of the variables of the world that we
are trying to program for. Here are some examples:
We need time variables that allow us to exactly represent
common civil times (including time-zone) and allow
increments of time which are exact.
We need variable types that can represent decimal fraction
numbers integrated into our programming tools, which would
allow us to match our business data rules, especially for
roundings.
We need compiler warnings when precision can be lost
during assignment statements.
Quote
Well that is true, if that is what he is referring to.
Personally, I believe, this is where coding standards
come into play, but like the planning stage is usually
skipped these days. Remember coding standards and code
walk-throughs?
They were casualties of RAD.
Regards, JohnH