For methods such as :
public boolean isWalkable() {
return false;
}
Do we want blank lines to space our code, such as :
public boolean isWalkable() {
return false;
}
or even :
public boolean isWalkable() {
return false;
}
or maybe no blank line ?
I woulnd't mind putting no blank line.
Some methods are implemented with the first method, some with the second, and some with the no blank line method. It should be harmonized in normalizeSpaces.
For methods such as :
public boolean isWalkable() {
return false;
}
Do we want blank lines to space our code, such as :
public boolean isWalkable() {
return false;
}
or even :
public boolean isWalkable() {
return false;
}
or maybe no blank line ?
I woulnd't mind putting no blank line.
Some methods are implemented with the first method, some with the second, and some with the no blank line method. It should be harmonized in normalizeSpaces.
For methods with only one instruction, I'd choose this :
public boolean isWalkable() {
return false;
}
It's the most elegant as it is very small.
For longer methods, I'd choose this :
public boolean isWalkable() {
Instruction 1;
Instruction 2;
return false;
}
For methods with only one instruction, I'd choose this :
public boolean isWalkable() {
return false;
}
It's the most elegant as it is very small.
For longer methods, I'd choose this :
public boolean isWalkable() {
Instruction 1;
Instruction 2;
return false;
}
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For methods such as :
public boolean isWalkable() {
return false;
}
Do we want blank lines to space our code, such as :
public boolean isWalkable() {
or even :
public boolean isWalkable() {
or maybe no blank line ?
I woulnd't mind putting no blank line.
Some methods are implemented with the first method, some with the second, and some with the no blank line method. It should be harmonized in normalizeSpaces.
For methods with only one instruction, I'd choose this :
public boolean isWalkable() {
return false;
}
It's the most elegant as it is very small.
For longer methods, I'd choose this :
public boolean isWalkable() {