Ask HN: 为什么这么多开发者不喜欢 C 语言,而我却觉得它很棒?

7作者: silentpuck5 个月前
我用 C 语言编程,经常看到有人发帖或评论说它危险、过时或不必要地复杂。<p>但对我来说,C 就像自由。<p>我可以构建完全符合我想要的东西——小工具、安全的实用程序,没有魔法,没有垃圾回收,没有遥测。<p>是的,我必须更认真地考虑内存和安全性。但这就是重点。我想贴近机器。我想知道我的代码在做什么,一个字节一个字节地了解。<p>尽管如此,我还是忍不住想知道:<p>为什么有这么多人似乎不喜欢 C 语言? 难道仅仅因为它不能保护你免受自己的错误吗? 还是我错过了什么,以后会后悔?<p>我很欣赏诚实的想法——尤其是那些已经放弃 C 语言的人的想法。<p>谢谢。
查看原文
I write in C, and I constantly see posts or comments calling it dangerous, outdated, or unnecessarily complex.<p>But for me, C feels like freedom.<p>I can build exactly what I want — small tools, secure utilities, no magic, no garbage collection, no telemetry.<p>Yes, I have to think harder about memory and safety. But that’s the point. I want to be close to the machine. I want to know what my code does, byte by byte.<p>Still, I find myself wondering:<p>Why do so many people seem to dislike C? Is it just because it doesn’t protect you from yourself? Or am I missing something that I’ll regret later?<p>I’d really appreciate honest thoughts — especially from those who moved away from C.<p>Thanks.