|In reply to Comment 207 (Anonymous):|
That's certainly pretty horrible code; I regularly come across similar levels of incompetence, however, and all written by alleged professionals. As Don said, while deplorable to the competent programmer, if the user is happy with the function and none the wiser, who are we to complain? (Rhetorical : I probably feel as strongly as you and jwz do about this, but I'm trying to develop a more pragmatic, less stressful philosophy).
I do take umbrage at one criticism, however :
C has accumulator operators, so a competent native C programmer writes Jum += Jump; making the intention clear, rather than using the equivalent but less clear Jum = Jum + Jump.
Your "less clear" claim is manifestly untrue. If you can produce for me one person who was taught C programming before basic algebra, I'll take that back. In the meantime, I'll happily wallow in my bigotted opinion that C is a filthy perversion of a programming language that was foisted on the world as a bad joke and compounded by the innocent fools who fell for it.