A collection of "how we work" resources, including our code style manuals.
More here: https://github.com/NUKnightLab/how-we-work/tree/master/standards
A quick summary of our code style for the impatient
More here: https://github.com/NUKnightLab/how-we-work/tree/master/standards
e.g. In general, try to keep lines around 80 characters or less. We will probably not be as vigilant in Javascript as in Python regarding line length, but a long line should have a pretty good reason. E.g.:JavaScript
Indent style conventions
brace placement
if (someCondition) {
doSomething();
}
Line length
Naming conventions
Commenting
function declarations
var myFunction = function() {
// do something here
};
Keep your commit messages simple and succinct
If you must have a longer message:
However, note that if you are needing to write long commit messages, you probably need to commit more often.