In Java, let's say I had two method declarations in a class:
class MyClass {
public void myMethod() {
// Some code
}
public void myOtherMethod() {
// Some more code
}
}
In between my methods, I can choose to either have a completely blank line, or have a space characters "properly" tabbing the line. I've noticed that prior to committing, my git diffs that sometimes otherwise unchanged files contain changes that are purely whitespace (either adding or erasing the above mentioned whitespace). This just got me thinking:
Are there any style guidelines as to whether either is correct?
There are no official style guidelines for what makes up your whitespace
That being said... I do tend to remove unnecessary tabs/spaces - just because that's my preference. Though, I wouldn't ever take the time to tell someone else to do the same.. (Well, okay - except this one time)