Prince:Coding Guidelines

From OpenWetWare
Revision as of 07:44, 24 May 2011 by John T. Prince (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prince lab logo.png

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