《笨办法学 C》封面

笨办法学 C

Learn C the hard way

Zed Shaw · 初版 2015 年

86人推荐
169位读者提及
197次提及

为什么值得读

  • 涵盖指针和内存管理等关键核心内容
  • 教授真实环境编码并引入Valgrind等工具
  • 帮助克服恐惧走向实际代码库开发

Hacker News 上怎么说

  • ……用 C 语言做任何有用的事情都离不开 a) 指针和 b) 内存管理,而这份指南似乎都没讲到。从我的经验来看,学 C 最好的方式是 [0] Build Your Own Lisp 以及 Zed Shaw 的 [1] Learn C The Hard Way。当然,还有花无数个小时去调试 segfaults 和 memory leaks。[0] - http://www.buildyourownlisp.com/ [1] - https://learncodethehardway.org/c/

    …anything useful in C is with a) pointers and b) memory management which this guide doesn't seem to cover. From my experience, the best way for learning C has been [0] Build Your Own Lisp and Zed Shaw's [1] Learn C The Hard Way. That and of course spending countless hours debugging segfaults and memory leaks. [0] - http://www.buildyourownlisp.com/ [1] - https://learncodethehardway.org/c/

  • ……不好、所有语言都应该有高阶函数,诸如此类的碎碎念(yadda yadda)。我终于下定决心去深入学习 C 语言了,这事儿我嘴上嚷嚷着“该去做了”都说了好几年。我目前正在通过 Zed Shaw 的 Learn C The Hard Way 学习,这门语言真的惊艳到我了。它把自己分内的事做到了极致。我虽然不会用它来写复杂的 Web 应用,但对于体量小但对质量(包括……

    …bad, every language should have higher-order functions, yadda yadda. I finally decided to get a deeper knowledge of C, something I've been saying I "should do" for years. I'm learning it via Zed Shaw's Learn C The Hard Way and I'm very impressed by the language. It does what it does very well. I wouldn't use it for a complex web app, but it's a fine language for things that are small but in which quality (which includes…

  • 如果是想动手做点实用的东西入门,我会推荐 Zed Shaw 的《Learn C the Hard Way》,因为它讲的是现实世界中 C 是怎么写出来的。当然,具体情况因人而异。K&R 那本经典的 C 语言原著固然非常优秀……

    I would recommend "Learn C the Hard Way" by Zed Shaw to get you started for something practical, because it goes over how C is written in the real world. Of course, situations will vary. The original book about C by K&R is an excellent book…

  • Zed Shaw 的《Learn C the hard way》。在此之前我做了好几年科学计算编程(R、Matlab)。但我以前一直很害怕接触“真实”的代码库。这本书(虽然感觉仍有些未完工)帮我搞明白了如何……

    Zed Shaw's "Learn C the hard way". Had years of scientific programming before that (R, Matlab). But I used to be afraid of working with "real" code bases. This book (which still has an unfinished feel to it) helped me understand how…

  • 我想只要作用域是局部的就行,就像手写的一个 `finally` 语句。这就像函数式编程语言里的 mutation 一样,只要不泄露出去就是被允许的。我没记错的话,Zed Shaw 的 Learn C the Hard Way 里有一些很棒的 `goto` 示例代码……

    As long as they're local I guess, like a handmade `finally` clause. It's like mutation in functional programming languages, they're allowed as long as they don't leak. IIRC Zed Shaw's Learn C the Hard Way has some nice `goto` examples..

  • Zed Shaw 的《Learn C The Hard Way》是相当不错的系统编程 C 语言入门。

    Zed Shaw's "Learn C the Hard Way" is a rather good intro to C for systems programming.

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助