Prince:Coding Guidelines

From OpenWetWare
Revision as of 08:44, 24 May 2011 by John T. Prince (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Home        Lab Members         Research         Publications         Internal         Mass Spec         Contact        


The most important consideration is to correctly solve the problem at hand. However, your code will become useful beyond the original task as you follow these guidelines:

  • Keep it DRY (Don't Repeat Yourself)
  • Write specs for your code (spec-more, bacon, and rspec are good for this)
  • Code should be self documenting
  • Code should also be documented, to be clear
    • YARDoc is the preferred tool, then TomDoc
  • Follow semantic versioning practices
  • Follow Ruby Best Practices