Originally posted by cynical
View Post
It's not because C is magic but these kind of things need to be programmed. Of course, an AI or toolkit could code it in the future perfectly optimally, but then it would still be C. Just because you don't code it doesn't mean it's not there and the language is still used, proving its superiority, even if not by humans (talking of hypothetical future where AI codes stuff).
Originally posted by cynical
View Post
Just because YOU or whoever else bashes it don't want to deal with X and Y doesn't mean the language has a problem. It has a problem when it can't be used for a specific task (cannot, not won't!), OR if it produces something slower/more bloated compared to another language (less efficient etc) or any other measurable objective factor.
Saying stuff like "it's not convenient for me to write in it, therefore the language has a problem" is absolutely ridiculous. Maybe it's your (or whoever) problem using it, or you need to learn to use it/code properly or whatever.
Might as well say stuff like "I don't like assignments being x = y, I'd prefer something like x <- y, therefore the language has a problem, definitely not me!!"
No point to answer the last part since you still go on the assumption that your preferences are "many of the problems in C". But, you realize I was talking about the application, right? I mean, the application's flaws can be fixed.
There is NO application vulnerability or code in existence, written in C, which cannot be solved. If it did, then yes, the language would have a problem. But as it stands, it's fully the application code's fault, which CAN get fixed, with CURRENT capabilities of C. On the other hand, some things are just straight out impossible to do in other languages which still rely on magic wrappers or libraries (that are implemented in C, usually, the irony is obvious). Especially languages without pointers are just horribly limited.
And as I said, if vulnerabilities keep getting fixed, and people would contribute to pure C code projects more, we'd get incremental security, instead of "writing from scratch" tons of alternative apps due to ease of language (but also bloat), which will replicate a lot of work that went into squashing bugs.
Can I also say that, my preference is to code with pointers (literally), a language without pointers has HUGE problems because I just can't get my head around it. Yes, it's the language's fault due to my pointer preference, and no I'm not trolling. To me, people who don't understand pointers or how easy it is to see how they work, should find a different goal in life. Coding is not for them.
I'm just using your logic here: my preferences makes other languages inherently bad right?
Comment