| [reply] |
Have a look at Devel::Coverage as well, may help to give you
an idea about whats going on | [reply] |
SnIff++ also purports to present code of any complexity with a friendly, well-labeled interface, and their demo may suffice for purposes of demonstration.
It also draws block diagrams where you would not, I think. Visio will too, but it also sucks lymph out of users, and is about the least-free software anywhere.
In a pinch, you can simply run lharc5 on the old code and see whether it what its compression ratio is compared to Management Sample Code's. Hence, for 40k blocks of code, 200:1 : 500:1 or 2:5, your code is e^((5/2)-1) times as complex. If you compile using ActiveState's tools, you can just compare binary file sizes! :)
Actual complexity needs to be defined in your favorite flavor of formal method! No prototype, no metrics! | [reply] |
If you haven't already, get the Refactoring book by (I think)
Martin Fowler. It's an extremely valuable book about upgrading
code in-place, and also contains a segment on discussing code improvement
with management. Frankly, if your boss doesn't understand that
quality coding takes time, deception might be necessary to
communicate effectively with him. | [reply] |
I think there is a way you could execute a program and report the CPU time it requires, which could translate into instructions. The number of instructions would be something I would tell my boss about. Seems to me that there is a command line *nix tool for this. | [reply] |
what does wc -l do?
what is KLOC?
what is TIA? | [reply] |
> what does wc -l do?
wc is a Unix/Linux word count program. By default,
it prints the number of bytes, words, and lines in
a file. The "-l" option tells it to print only the
number of lines. It is a quick way to measure lines
of code.
> what is KLOC?
KLOC is a measurement of lines of code. 1 KLOC =
1000 lines of code (one kilo-LOC). 2 KLOC = 2000
lines of code, etc.
> what is TIA?
TIA = Thanks In Advance.
| [reply] |