we need to understand what the original code is trying to achieve
This is what the code should describe (not just to you - but to your average programmer)
I don't think that's a reasonable expectation.
The code will describe the what and the how, but I have yet to see a programming language which encapsulates the why of it.
If your argument is that it should contain comments which explain why this is being done, then I agree.
In which case, I guess your point is that the snippet provided is defective because it lacks this. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is what the code should describe (not just to you - but to your average programmer)
I don't think that's a reasonable expectation.
The code will describe the what and the how, but I have yet to see a programming language which encapsulates the why of it.
If your argument is that it should contain comments which explain why this is being done, then I agree.
In which case, I guess your point is that the snippet provided is defective because it lacks this. :)