SeaMonkey:MailNews:CodingStyle: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<div style="color:red">This is still a draft and may change slightly!<br>Comments welcome!</div>
Basically, the [https://developer.mozilla.org/En/Developer_Guide/Coding_Style Mozilla C++ coding style guide rules] apply. But our MailNews code has <strike>grown</strike> evolved over the years and can be rather <strike>twisted</strike> complex, thus we favour '''readability''' over brevity.
Basically, the [https://developer.mozilla.org/En/Developer_Guide/Coding_Style Mozilla C++ coding style guide rules] apply. But our MailNews code has <strike>grown</strike> evolved over the years and can be rather <strike>twisted</strike> complex, thus we favour '''readability''' over brevity.
([http://en.wikipedia.org/wiki/Indent_style Wikipedia] has an interesting comparison of the most common quoting style religions.)
([http://en.wikipedia.org/wiki/Indent_style Wikipedia] has an interesting comparison of the most common quoting style religions.)
Line 12: Line 9:


=== JavaScript ===
=== JavaScript ===
In general, follow the C++ rules, but take care of these exceptions:
In general, follow the [https://developer.mozilla.org/en/JavaScript_style_guide Mozilla JavaScript rules], but take care of these exceptions:


==== Capitalize function names ====
==== Capitalize function names ====
235

edits

Navigation menu