问HN:为什么这么多开发者不喜欢C语言,而我却觉得它很有启发性?
我编写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.