Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

[802.3_ISAAC] Cyclomatic Complexity



Hello Ragnar,

 

there is a misunderstanding on the recommendations of the HIS (Herstellerinitiative Software initiative).

The HIS initiative does not limit the complexity score to 10 or any other value.

The referenced paper is a recommendation for handling complexity properly, not for limiting complexity.

The same is true for the tool "Cyclomatic Complexity method" that you used and for ISO26262 ==> no limitations but recommendations to handle software complexity properly!

 

The recommendation of HIS is to use tools like Cyclomatic Complexity to monitor the complexity of code and re-structure the code once you have reached a certain complexity level (e.g. 10).

Looking at the analysed proposals, you can see in your presentation that the restructuring has perfectly been done in the specified proposals.

 

Following the link in your presentation you can also see the recommendation of McCabe and also the controversial discussions about the score:

[… One of McCabe's original applications was to limit the complexity of routines during program development. He recommended that programmers should count the complexity of the modules they are developing, and split them into smaller modules whenever the cyclomatic complexity of the module exceeded 10.[2] …]

[… However, it also noted that in some circumstances it may be appropriate to relax the restriction and permit modules with a complexity as high as 15. …]

 

 

Best Regards,

Tony

 

 

--

BMW Group

Dr. Anton Schedl

E/E-Gesamtsystem, -Infrastruktur, Software

Systemfunktionen, Fahrzeugupdate

Gruppenleiter Basis-Systemfunktionen

 

Max-Diamand-Str. 9

80937 München

 

Festnetz:

+49-89-382-49948

 

Mobil:

+49-151-601-49948

 

Mail:

Anton.Schedl@xxxxxx

 

Web:

https://www.bmwgroup.com/

 

 

logos

 

--------------------------------------------------------------

Bayerische Motoren Werke Aktiengesellschaft

Vorstand/Board of Management: Oliver Zipse (Vorsitzender/Chairman),

Jochen Goller, Ilka Horstmeier, Walter Mertl,

Milan Nedeljković, Joachim Post, Frank Weber

Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Norbert Reithofer

Sitz und Registergericht/Domicile and Court of Registry: München HRB-42243

--------------------------------------------------------------

         

 


CONFIDENTIAL


To unsubscribe from the STDS-802-3-ISAAC list, click the following link: https://listserv.ieee.org/cgi-bin/wa?SUBED1=STDS-802-3-ISAAC&A=1