CS401 | sw engineering
  • outline
  • projects
  • syllabus
  • links

Code Styling

 

 

 

A best practice sometimes missed in course CS courses is Code Styling. In Industry, each company may have its own set of style guides. Styles including issues like: how to name classes, how to name variables and methods/functions, how to indent, where to place {}, etc. Here are a few examples from Google of their style guides:

Google Java Style Guide

Google C++ Style Guide

General Google SW Style Guide


 

Also, here are some tools for Github and Bitbucket that can help with style checks.


Tools Github

  • http://checkstyle.sourceforge.net/


Tools Bitbucket

  • https://marketplace.atlassian.com/apps/1214095/checkstyles-for-bitbucket-server?hosting=server&tab=overview

 

 

 

 

Antoine Pickard, Staff Google Software Engineer

"Code styling is important when you have multiple developers sharing the same code. The Google style guides (publicly available) are a good starting point. You don't have to take Google's recommendations but you should establish a standard to cover the things that it covers. "​

 

 

 

 

 

cs401:sw engieering

  • home
  • outline
  • projects
  • syllabus
  • links