However, before making up mind / doing anything, I'd like to know if:
• new examples are welcomed
• there are some guidelines to follow, such as starting if with upper-case, indentation style and so on
• is there anything else I should know
For code style, I use following:
• Naming: variable_name, methodAndFunctionName, ClassName
• Spaces: always after code-flow elements (if (something), while (something) etc.), none for calls (click(x,y), asd := new Banana())
• Parenthesis: yes
• Identation style: Allman's, alternatively { is in same line, after a space.
Code: Select all
Class A
{
static arr := [ ; wish I could put [ in new line without Join - this probably makes the second IF style more consistent
"a",
"b",
"c"
]
doSomething()
{
if (this)
{
; ...
}
else if (that)
{
; ...
}
; or
if (this) {
; ...
}
else if (that) {
; ...
}
}
}