Code size without documentation comments and unittests

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 26 13:23:35 PST 2017


On 02/26/2017 02:31 AM, Jack Stouffer wrote:
> On Saturday, 25 February 2017 at 19:31:06 UTC, Andrei Alexandrescu wrote:
>> What would be a simple way to count the "effective" lines in a module,
>> i.e. excluding ddoc comments and unittests? Having a tool for that in
>> tools/ would be neat. -- Andrei
>
> Fun fact I found out using this thread: 57.4% of the lines in Phobos are
> non-code lines.

That's kinda where it could reasonably be, and also it's a good 
testament of the docs-in-code approach. Thanks for the insight! -- Andrei



More information about the Digitalmars-d mailing list