Language Selection

English French German Italian Portuguese Spanish

How Open Source Comments (by Programming Language)

Filed under

We recently looked at the commenting practice of active working open source projects. It is quite impressive: The average comment density of open source is around 19%. (Comment density = comment lines / (comment lines + source code lines)). That is much more documentation than most people thought!

However, such a rough number needs discussion. Here, I look at the comment density on a programming language basis. As it turns out, the comment density of active open source projects varies by programming language. Java is leading the bunch, but that needs further discussion.

Below, for six major programming languages, you can see the average comment density as well as its distribution (cast as a histogram).

More Here

More in Tux Machines

Security Leftovers

Android Leftovers

Using open source principles to build better engineering teams

We become better software developers by observing how some of the best software in the world is being written. Open source has changed and will continue to change the way the world builds software, not only by creating high-quality reusable components, but by giving us a model for how to produce better software. Open source gives us complete transparency into that process. Read more

LinuxCon Europe and Embedded Linux Conference Europe