Thanks for reporting. Actually the comment is wrong in that case using BigDecimal.valueOf() is better since it could reuse the immutable object, so that is better for memory. I'll rework the samples to make it more…
I agree the drawbacks equally apply to GCC. I agree a simple compiler does not need an IR. Some compiler optimisations cannot exist without an IR. However I was wondering where a refactoring tool would need an IR. I…
Thanks, I am reading many things about good code and I have never seen such advice. "Good style", "best practice", all of this comes from an observation made by somebody who can justify it is good practice by some real…
That's a good question. I can explain for me: why do I fix the code like this? I spend a lot of time reading code to understand it, fix bugs, add features. Sometimes I read code and realize it is unnecessarily…
I am trying to understand your point but I fail. Why should there always be a else to an if-elseif? Secondly, in the original if-else, the if in the else clause does not have a else. Why is it not a problem for you? It…
Thanks for the reference. I'll have a look.
Which ones?
Thanks! I will take a look.
Thanks for reporting. Actually the comment is wrong in that case using BigDecimal.valueOf() is better since it could reuse the immutable object, so that is better for memory. I'll rework the samples to make it more…
I agree the drawbacks equally apply to GCC. I agree a simple compiler does not need an IR. Some compiler optimisations cannot exist without an IR. However I was wondering where a refactoring tool would need an IR. I…
Thanks, I am reading many things about good code and I have never seen such advice. "Good style", "best practice", all of this comes from an observation made by somebody who can justify it is good practice by some real…
That's a good question. I can explain for me: why do I fix the code like this? I spend a lot of time reading code to understand it, fix bugs, add features. Sometimes I read code and realize it is unnecessarily…
I am trying to understand your point but I fail. Why should there always be a else to an if-elseif? Secondly, in the original if-else, the if in the else clause does not have a else. Why is it not a problem for you? It…
Thanks for the reference. I'll have a look.
Which ones?
Thanks! I will take a look.