-
Notifications
You must be signed in to change notification settings - Fork 0
Style Guidelines
Naren Dasan edited this page Apr 19, 2017
·
4 revisions
Go (just use a linter basically):
//Function Signatures:
func foo(arg1: int, arg2: bool) {
//if/else
if x == y {
return x
}
return y
//No non bracketed blocks
//wrong:
if x == 1
return true
//correct:
if x == 1 {
return true
}
JS (Use something like ESLint)
//Function Signatures:
function foo(arg1, arg2) {
//if/else
if x == y {
return x;
}
return y;
//No non bracketed blocks
//wrong:
if x == 1
return true;
//correct:
if x == 1 {
return true;
}
Ruby: good indenting basically
Python: Follow pep8