Re: "RESET"

Liste des GroupesRevenir à e design 
Sujet : Re: "RESET"
De : '''newspam''' (at) *nospam* nonad.co.uk (Martin Brown)
Groupes : sci.electronics.design
Date : 05. Jun 2025, 09:36:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <101rktq$1e770$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
On 04/06/2025 19:54, Joe Gwinn wrote:
On Wed, 4 Jun 2025 17:53:19 +0200, David Brown
<david.brown@hesbynett.no> wrote:
 
On 04/06/2025 16:55, Joe Gwinn wrote:

Peer review of the code works better, because no pattern scanning tool
can tell spaghetti from inherent complexity.
>
>
That's certainly true in some cases.  It surprises me a little that your
experience was so much like that, but of course experiences differ.  My
experience (and I freely admit I haven't used complexity analysis tools
much) is that most functions can be relatively low complexity - the
inherently high complexity stuff is only a small proportion of the code.
  In one situation where this was not the case, I asked the programmer
to re-structure the whole thing - the code was badly designed from the
start and had become an incomprehensible mess.  Peer review did not
help, because the peer (me) couldn't figure out what was going on in the
code.
 All true, but at the end of the day, complexity metrics and coverage
tools didn't come even close to paying for itself, and so they
gradually faded.
Complexity metrics and dataflow analysis tools worked OK for me when working as a consultant digging companies out of deep holes they had got themselves into. They invariably looked hurt at the long list of defects that I would find almost immediately and I was almost always right about code with an insane value for McCabe's CCI being full of latent bugs.
Some code is irreversibly complex and necessarily so, but a lot of it is just the software equivalent of a rats nest prototype in electronics but treated as if it was production quality code. Management's ship it and be damned policy since they always wanted their sales target bonus.

However, it is entirely true that some code will be marked as very high
complexity by tools and yet easily and simply understood by human
reviewers.  If that is happening a lot in a code base, automatic tools
(at least the ones you are trying) are not going to be much use.
That goes with the territory but you only have to look at it once.
I would expect AI to be more useful in the context of static error
checkers, simulators, and fuzz testers rather than code coverage at
run-time.
 Forgotten from earlier: "Just to be clear - are you using
non-intrusive statistical code coverage tools (i.e., a background
thread, timer, etc., that samples the program counter of running code?
Or are you using a tool that does instrumentation when compiling?  I'm
trying to get an understanding of the kinds of "false hits" you are
seeing."
 The focus here is non-intrusive code evaluation tools.
 We also use intrusive tools and instrumentation in the integration
lab.
I find instrumentation often disturbs the problem that I am looking at. YMMV
I'm a fan of Intel's vTune for finding hotspots in serious code.
--
Martin Brown

Date Sujet#  Auteur
24 May 25 * "RESET"42Don Y
24 May 25 +- Re: "RESET"1Don Y
25 May 25 +- Re: "RESET"1john larkin
25 May 25 +* Re: "RESET"26Carlos E. R.
25 May 25 i+* Re: "RESET"3Don Y
25 May 25 ii`* Re: "RESET"2Carlos E. R.
25 May 25 ii `- Re: "RESET"1Don Y
27 May 25 i+* Re: "RESET"20Don Y
28 May 25 ii`* Re: "RESET"19Joe Gwinn
28 May 25 ii +- Re: "RESET"1Don Y
28 May 25 ii `* Re: "RESET"17David Brown
28 May 25 ii  `* Re: "RESET"16Joe Gwinn
30 May 25 ii   `* Re: "RESET"15David Brown
30 May 25 ii    `* Re: "RESET"14Joe Gwinn
4 Jun 25 ii     `* Re: "RESET"13David Brown
4 Jun 25 ii      +* Re: "RESET"8Joe Gwinn
4 Jun 25 ii      i`* Re: "RESET"7David Brown
4 Jun 25 ii      i `* Re: "RESET"6Joe Gwinn
5 Jun 25 ii      i  +* Re: "RESET"2David Brown
5 Jun 25 ii      i  i`- Re: "RESET"1Carlos E.R.
5 Jun 25 ii      i  `* Re: "RESET"3Martin Brown
5 Jun 25 ii      i   +- Re: "RESET"1Joe Gwinn
5 Jun 25 ii      i   `- Re: "RESET"1Don Y
6 Jun 25 ii      +* Re: "RESET"3David Brown
6 Jun 25 ii      i`* Re: "RESET"2Carlos E.R.
10 Jun 25 ii      i `- Re: "RESET"1David Brown
6 Jun 25 ii      `- Re: "RESET"1john larkin
28 May 25 i`* Re: "RESET"2Martin Brown
28 May 25 i `- Re: "RESET"1Don Y
25 May 25 +* Re: "RESET"6Ralph Mowery
25 May 25 i+* Re: "RESET"3Don Y
25 May 25 ii`* Re: "RESET"2Carlos E. R.
25 May 25 ii `- Re: "RESET"1Don Y
25 May 25 i`* Re: "RESET"2Carlos E. R.
25 May 25 i `- Re: "RESET"1Don Y
25 May 25 +* Re: "RESET"2Ian
25 May 25 i`- Re: "RESET"1Don Y
25 May 25 +* Re: "RESET"2Theo
25 May 25 i`- Re: "RESET"1Don Y
25 May 25 `* Re: "RESET"3Martin Brown
25 May 25  +- Re: "RESET"1Don Y
25 May 25  `- Re: "RESET"1Carlos E. R.

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal