Java operator overloading
- by nimcap
Not using operators makes my code obscure.
(aNumber / aNother) * count
is better than
aNumber.divideBy(aNother).times(count)
After 6 months of not writing a single comment I had to write a comment to the simple operation above. Usually I refactor until I don't need comment. And this made me realize that it is easier to read and perceive math…