Difference between revisions of "Robowiki:Guidelines for Code Snippets"

From Robowiki
Jump to navigation Jump to search
(Creating page - good idea, KID)
 
 
Line 5: Line 5:
 
== Style guidelines ==
 
== Style guidelines ==
 
* Wherever possible, use radians instead of degrees.
 
* Wherever possible, use radians instead of degrees.
 +
* Try to keep the width to a reasonable amount, since it won't wrap lines in preformatted areas. In a text editor, 80 columns is generally a good rule of thumb.

Latest revision as of 05:03, 14 November 2007

This article is a stub. You can help RoboWiki by expanding it.

This page lists guidelines for writing code snippets. These are not hard-and-fast rules, but following them may enhance the readability and consistency of the wiki.

Style guidelines

  • Wherever possible, use radians instead of degrees.
  • Try to keep the width to a reasonable amount, since it won't wrap lines in preformatted areas. In a text editor, 80 columns is generally a good rule of thumb.