OAC:HowToImproveTheCompatibilityAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:


==Repository access==
==Repository access==
==Coding standards==
* Get a proper text editor like [http://notepad-plus.sourceforge.net/uk/site.htm notepad++] or [http://www.editpadpro.com editpadpro].
* Do not mess up the code:
** Preceding tabs - NO spaces! - before the code.
** Correct number of preceding tabs.
** NO tabs or spaces at the end of the line.
** Spaces around an equal sign are standard.
** One space after a colon, not before it.
** Do not forget a semicolon to end definitions.
** Use quotes for strings.
** Correct placement of brackets.
* Use comments where they are meaningful.
* Use empty lines to separate code.
* Order lists alphabetically - use editor functions!
* Create a file header for addons according to the standard.
* Name addons according to the standard.


=Back to OAC Home=
=Back to OAC Home=


[[OAC:Project#Subpage_link_overview|The seven roads to OAC - subpage link overview]]
[[OAC:Project#Subpage_link_overview|The seven roads to OAC - subpage link overview]]

Revision as of 19:02, 5 April 2009

Banner biki.jpg

# VII. How to improve the compatibility addon

Project OAC uses Git as source control (SC) system for the development.

You can:

  • download the complete source with Git
  • improve the existing code
  • add new class mappings

and upload your changes again for everyone to use and improve.

Repository access

Coding standards

  • Get a proper text editor like notepad++ or editpadpro.
  • Do not mess up the code:
    • Preceding tabs - NO spaces! - before the code.
    • Correct number of preceding tabs.
    • NO tabs or spaces at the end of the line.
    • Spaces around an equal sign are standard.
    • One space after a colon, not before it.
    • Do not forget a semicolon to end definitions.
    • Use quotes for strings.
    • Correct placement of brackets.
  • Use comments where they are meaningful.
  • Use empty lines to separate code.
  • Order lists alphabetically - use editor functions!
  • Create a file header for addons according to the standard.
  • Name addons according to the standard.


Back to OAC Home

The seven roads to OAC - subpage link overview