[HN Gopher] Applying the ABC Metric to C, C++, and Java [pdf]
       ___________________________________________________________________
        
       Applying the ABC Metric to C, C++, and Java [pdf]
        
       Author : alokrai
       Score  : 22 points
       Date   : 2021-06-05 10:11 UTC (1 days ago)
        
 (HTM) web link (www.softwarerenovation.com)
 (TXT) w3m dump (www.softwarerenovation.com)
        
       | rualca wrote:
       | For the lazy like me who are interested in the topic but googling
       | for it is too exhausting:
       | 
       | https://en.wikipedia.org/wiki/ABC_Software_Metric
       | 
       | Long story short: instead of counting lines of code, the ABC
       | software metric accounts for
       | 
       | A) assignments ,
       | 
       | B) branches,
       | 
       | C) conditionals.
       | 
       | I would argue that the ABC metric nowadays fails to do a good job
       | as a software metric, mainly due to the inception and prevalence
       | of declarative frameworks and tools.
        
         | andrekandre wrote:
         | any pointers to other tools/useful metrics?
        
       | thesz wrote:
       | Author includes comments (irrelevant to code to some extent) and
       | braces (enforced by compiler) and particulars of code style into
       | LOC and calls it unreliable.
       | 
       | I think it is not quite honest.
       | 
       | The rules themselves vary between languages and, frankly,
       | contemporary C++ is a different language than C++ circa 1997.
       | Often, use of C++ is different between parts of projects and it
       | is the case for contemporary Java too.
       | 
       | Should we develop different ABC rules for different flavors of
       | C++ and/or Java?
        
       ___________________________________________________________________
       (page generated 2021-06-06 23:03 UTC)