Skip to content

rockvillerobotics/guides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

✒️ Style

A guide for programming in style.

Use Travis to automatically review your GitHub pull requests for style guide violations.

In addition to the general guidelines below, we also have the following more detailed, language/framework-specific style guides:

📋 Formatting

  • Delete trailing whitespace.
  • Spell correctly.
  • Use spaces around operators, except for unary operators, such as !.
  • Use Unix-style line endings. Github adds these automatically. (\n).

🏷️ Naming

  • Avoid abbreviations.
  • Avoid object types in names (user_array, email_method CalculatorClass, ReportModule).
  • Name variables, methods, and classes to reveal intent.

🍱 Organization

  • Avoid function definitons in the main file. The main file should be high level and read like English, calling smaller functions which do the heavy lifting.
  • Order methods so that caller methods are earlier in the file than the methods they call.
  • Order methods so that methods are as close as possible to other methods they call.

About

Style guides for Rockville Robotics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published