I have a simple question about one aspect about so called programming conventions in java.
Simply - if I pass a local variable in one method to a another (helper) method - should I keep the name of it to 100 percent or try to rename it slightly?
Look at the example - should I rename the variable totalAmount in the helpermethods signature to something similar (for instance total_amount or theTotalAmount)?
private void myMethod() {
int totalAmount = 0;
// calculations where totalAmount is involved.
myHelperMethod(totalAmount); // send totalAmount to a another method.
}
private void myHelperMethod(int totalAmount) {
// use totalAmount here .....
}