I prefer to move logic constructions in separated lines:
if (a) {
// ...
}
else if (a != b) {
// ...
}
else {
// ...
}
This makes code more git friendly (like trailing commas). And also it makes it simple to comment else if and else sections. Each block is prepended with it's own condition.
I prefer to move logic constructions in separated lines:
This makes code more git friendly (like trailing commas). And also it makes it simple to comment
else ifandelsesections. Each block is prepended with it's own condition.