TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What I wished I knew when learning C

3 点作者 smartis28126 个月前

1 comment

taylodl6 个月前
One of the things people nowadays overlook is back in the 70s and 80s when people were first learning C and C ascended to being a dominant language we know today, the people learning C were coming from a background of assembler programming. The original promise of C was being able to be <i>almost as fast</i> of an execution as assembler. I still remember the day I was able to write an OS driver in C instead of assembly and it executed just fine on a 25 MHz 486. I don&#x27;t think I ever wrote any more assembly after that.<p>A few years after that, C++ became the new hotness. The shop I was working at adopted C++ immediately - even though we weren&#x27;t doing any object-oriented programming and had no intention of doing so anytime in the near future. It was simply a better C. I wrote very little pure C after that.<p>As far as learning C&#x2F;C++ today? Only for systems programming, embedded systems, and maybe games. I wouldn&#x27;t write an application in either language. The goal is, and has always been, to use the highest-level language you can that still has the performance you need.