Coding standards - abantoo/Boi-Koi GitHub Wiki
We'll be using camelCasing(lowerCamelCase) and PascalCasing(also known as UpperCamelCasing) as writing style. Please maintain the standards while writing the code:
- Class names should be nouns in PascalCase
class Customer {..}
. -
Methods should be verbs in camelCase.Example:
checkPayment();
-
Local variables, instance variables, and class variables should also be written in camelCase. Example:
boolean isPremium;
-
Constants should be written in uppercase characters separated by underscores. Adding digits in the name should be okay, but should not be in the position of the first character. Example:
static final int MAX_PARTICIPANTS = 10;
Please use K&R and variants: Stroustrup for Brace placement.
class Customer{
void search(something) {
if (something) {
display("something");
}
else {
display("not found");
}
}
}