-
Notifications
You must be signed in to change notification settings - Fork 12
Style guide
Wiki ▸ Style guide
This document is the Better Angels style guide. It describes and standardizes various non-technical aspects of our projects in order to improve communication between Better Angels contributors and, in some cases, the general public.
Version strings are patterns that concisely describe the state of a document, such as program source code or a document, independent from the date on which it was created.
Version strings should adhere to the latest current SemVer specification, optionally prefixed with a single v
character.
Good examples:
- 1.2.3
- v1.2.3
Bad examples:
- v.1.2.3
- v 1.2.3
In the absence of more specific style guidelines for specific Better Angels projects (look for a page called Style guide
in the given project's wiki), use the following defaults.
Indent blocks by four (4) spaces.
Place opening braces in C-style languages at the end of the same line on which the block begins.
Insert one space between the end of a function or method name and the start of its parameter list, as well as one space after the parameter list.
In C-style languages, there should be no space between the function name and its parenthesized parameter list when calling a function or method.
Good example:
<?php
class HelloWorld { // Opening braces on same line.
public function __construct () { // Spaces surround parameter list parenthesis in method signature
print "Hello world!";
}
}
new HelloWorld(); // Call a method without spaces before parenthesis.
Bad example:
<?php
class HelloWorld
{
public function __construct()
{
print "Hello world!";
}
}
new HelloWorld ();
The Better Angels are a group of anarchists committed to feminist, anti-racist, anti-capitalist struggle.
🏠 BetterAngels.github.io
💬 Diaspora • Twitter • Gitter
✉️ Better Angels at RiseUp dot net (no spaces)
🔐 PGP/GPG fingerprint: 6121 4D68 E0E3 54AA DE65 3B15 6FAE 063A 2F94 2A02
All contributions to any and all parts of Better Angels projects other than software code are hereby released to the public domain, no rights reserved. All contributions of software code are licensed under the GNU General Public License, version 3, or the GNU Affero General Public License, version 3, depending on the project. See a given project's LICENSE
file for licensing details.
INTELLECTUAL PROPERTY IS CENSORSHIP