Coding conventions: 9 areas where developers actually agree

When it comes to writing code, programmers can often differ over what conventions should rule. Based on GitHub data, here are a number of conventions where there seems to be some consensus
  • 1 of 10

Image courtesy flickr/Michael Himbeault

Programmers usually adhere to certain conventions when writing code, such as using spaces instead of tabs (or vice versa) when indenting code. These conventions can differ across programming languages and organizations and even from developer to developer. But which conventions are most commonly followed? A new tool that grew out of a recent GitHub data challenge now helps to identify the most popular coding conventions. By looking at millions of recent GitHub commits, Popular Convention by JeongHoon Byun identifies the rates at which programmers are following common conventions for a number of popular programming languages. Using this tool, here are 9 coding conventions that developers seem to (almost) agree on.

Return to slideshow
Join the discussion
Be the first to comment on this article. Our Commenting Policies