编程与软件工程cslibrary.stanford.edu
Essential C(C 语言精要)
Essential C (2003) [pdf]
2016 — 2022,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
斯坦福 CS 图书馆的《Essential C》是一份仅 45 页的 C 语言速成教程,涵盖语法、指针、内存管理等核心概念。这份 2003 年的 PDF 多次登上 Hacker News 首页,被许多人视为快速入门 C 的经典材料。
为什么经久不衰:它用极短的篇幅把 C 的核心讲清楚,这种简洁性正是 C 语言本身的魅力,也是它多年后仍被反复推荐的原因。
HN 评论精选
怀念 C 时代简单的心智模型和掌控感,反感现代开发的层层复杂。
真怀念靠写 C 谋生的日子。我当开发者最快乐的时光,技术栈就是 Linux、C、Makefile 和一些 shell 脚本。要打很多字,调试也更难,但那有一种美:心智模型简单,有掌控感。如今的工作全是层层堆叠的复杂框架和工具,永远无法真正精通任何东西,因为一切都在不停变化。
cblum查看英文原文
Man, I miss making a living as a C programmer. My happiest days as a dev were when my "stack" was Linux, C, Makefiles, and some shell scripts. Only thing I'd change is that source control was svn instead of git. Sure, there was a lot more to type. Debugging was harder. But there was a beauty to that. A simple mental model. A sense of control. These days all jobs seem to be sort of online crap. Piles and piles of layers and complexity and heterogenous frameworks and tools. Being on call. Never being able to truly master anything because everything changes all the time. /nostalgia
C 的简单性使其比 C++ 更易真正掌握。
我更喜欢 C 而不是 C++,很大程度上是因为 C 简单得多:45 页的小册子就够你上手干活,而 C++ 我学了一年也没真正掌握那些惯用法。借助 GCC 扩展和 glibc,你能得到一门易学又实用的语言。当然我不是系统程序员,现在主要写 Lisp。
tombert查看英文原文
Potential Flame War Warning I've gotten in several arguments with people about why I like C more than C++, and that's in no small part because I find C to be a lot simpler than C++. This is an example; I feel you can learn enough C to actually start doing stuff in a 45 page manual, where with C++ I did it for about a year and never really felt I had a real handle on all the idioms. I know there are probably a lot of objective reasons to why C++ is safer or something, but I've always felt that if you embrace GCC's extensions, and glibc (and use of Boehm's GC for parts that need to be a bit safer), you end up with a language that's simple to learn, and has a lot of the features I actually use in other languages. That said, this is coming from a very-much-not systems programmer, and I mostly do Lispey stuff nowadays.
警告该教程已过时,建议改用 C99/C11 的现代参考。
别用这份材料。它太老了,教的是被 C99 取代的坏习惯。这里有一份 C99/C11 的正经参考:en.cppreference.com/w/c,另外看看 reallocarray。
mynameisnoone查看英文原文
Don't use this. It's really rusty and teaches bad habits superseded by C99. Here's a proper reference on C99 and C11: http://en.cppreference.com/w/c And see also reallocarray.
配套的链表练习题非常有价值,适合进阶。
我做完这个网站上很多练习,尤其是用 C 实现链表的那部分。花在这套教程上的时间绝对值得,每解出一题都很有成就感。对已懂 C 语法想深入的人来说,这些练习能让你明白链表的重要性,以及什么时候该用链表而不是普通数组。
e19293001查看英文原文
I've gone through a lot of exercises[0][1] from this site especially on how to implement a linked list in C. The time spent from the tutorial was absolutely worth while. I feel happy and satisfied with my self after solving one problem at a time. For those who already know the syntax of C but wanted to learn more, the links I mentioned is a good exercise and opens up a lot of possibilities on what you can implement. You'll soon be able to realize the importance of linked list and why you'll want to use a linked list instead of just plain arrays. [0] - http://cslibrary.stanford.edu/103/LinkedListBasics.pdf [1] - http://cslibrary.stanford.edu/105/LinkedListProblems.pdf
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选