werner34
Joined 15 years ago
Joined 15 years ago
Can someone explain to me why I am allowed to add a padding zero at the start without taking it out at the end?
By adding it, I am giving the sum an offset, and I can kind of understand why adding zero is not a big deal, but they reasoned:
Then S1 + S1 = (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)
= (1 - 1 + 1 - 1 ...) + (0 + 1 - 1 + 1 - 1 ...)
= (1 + 0) + (1 - 1) + (1 - 1) ....
= 1 + 0 + 0 ... = 1
But I might as well leave the leading Zero out and argue that:
Then S1 + S1 = (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)
= (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)
= (1 + 1) + ( -1 - 1) + (1 + 1) ....
= (2 - 2) + (2 - 2) + (2 - 2)... = 0
The same is probably true for this one here:
public bool ShowOptional() { bool bolReturn = false;
return bolReturn;
}There should be descriptions why the code snippets are supposed to be interesting, your and my example just look like legacy code to me.
I am more with the VIM/Emacs crowd though I guess.
I didn't know though that you could create an "evaluation window" in Eclipse. I really liked the refactoring features in Eclipse though and miss them sometimes.
This was missing for me when I started doing stuff in scala, so I hacked something to be able to do the same in Scala and jump straight to the REPL(unfortunately variables need to be passed explicitly here, but most of the REPL functionality works:
I knew what you were trying to get at, but wanted to point out that the sentence that you initially wrote wasn't entirely accurate.
Of course I agree that attitude matters, but skills are certainly important, hence my comment.