Quote:
|
Originally Posted by aaeamdar
Yes it does. I came up with this one myself... a very interesting mix of metaphors there. I would use the ++ but it's all semantic.
|
I've seen bugs introduced when people use pre or post ++ at the wrong time.
Quote:
|
Originally Posted by aaeamdar
But there is absolutely no reason to do this. It doesn't save you any time, and it doesn't save you an space in memory. However, there is, and I kid you not, a contest to obfuscate code. This is a fairly simple example of that.
Paul Dennis
|
I agree with you on making code readable. Years ago I encountered a line of code written by a guy -- it was doing some sort of math but had around 10 different operators in one line including bit and math operators and was impossible to understand. And this was in production software that a team of people had to maintain.
Even something as simple as always using parentheses to establish precendence instead of relying on operator precendence makes code much more understandable.