News for hackers. Stuff that matters.
Re:Learn C programming and the rest will come by moron4hire on Wednesday November 29, 2017 @10:58AM (#15807765)
I never claimed it was the fault of the language. It's the fault of advocates pushing it as a viable first language. My point on premature optimization was precisely because of that: optimization should not be a concern for raw beginners, and C programmers as a culture value optimization in all things, even to the point of error (fast code is not necessarily secure code).
Re:Learn C programming and the rest will come by jackhack on Wednesday November 29, 2017 @11:09AM (#15807875)
Agree with you there & appreciate the clarification.

I would only add that many of those who obsess with optimization and "clever" programming, have never had to go back and maintain that code. I've looked at far too many modules and said "what was this idiot thinking?" before realizing it was my own work from years' prior.

With a bit of that perspective I now write code favoring clarity over cleverness/performance. And if it is unavoidable to write something dense, I document the hell out of it.

But you're right, there is a definitely a culture of writing impenetrable code full of clever & cute little tricks of the sort that come back and bite the author later. Prevalent in the C world, and I see it also in equal measure in Perl.