Earlier this morning I tried to check up on my comment from yesterday, on this particular question.
However, my comment (and one or two similar comments) disappeared without a trace; the comments were something like:
This is an excellent example of how not to write comments. Your comments do not add anything that is not already obvious from the code. You should read up on how to write comments in order to both save time not writing unnecessary comments as well as improve your code quality. For example http://blog.codinghorror.com/code-tells-you-how-comments-tell-you-why/
And from another user:
Please choose meaningful parameter names instead of "number1" and "number2", which tell us nothing.
Both receiving some upvotes within a few minutes, confirming that other users think alike.
But why then were both comments deleted? While I agree that both (especially mine) could have been formulated more nicely (similar discussion), they offer good advice (and even a starting point!) for an obviously inexperienced programmer. Furthermore, I thought about adding specific examples, but I don't think comments necessarily allow for this kind of detail.
Is code criticism and tips on how to improve your code not allowed in comments? If not in comments, where else? Although it might be offtopic, shouldn't SO help users get better at programming?