编程与软件工程cslibrary.stanford.edu编辑精选
Essential C:C 语言精要
Essential C
2012 — 2017,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
Stanford CS Library 的《Essential C》是一份约 45 页的 C 语言简明讲义,面向快速入门或复习,并包含链表、二叉树等数据结构练习。评论多指出它长期未更新,仍以 C89 为主,未覆盖 C99/C11 的新特性。今天读它更适合建立基础语感和指针/内存概念,而不是查现代标准。
为什么经久不衰:它以极短篇幅直指指针、内存和基础数据结构,练习扎实;只要知道它停留在旧标准,仍是快速打底的好材料。
HN 评论精选
篇幅极短是优点,但内容停留在 C89,不适合作为现代 C 标准参考。
它没写明遵循哪个标准,但版权年份是 1996-2003,估计没更新到 C11。《Modern C》覆盖 C11 但有 300 页,Essential C 只有 45 页。实际读下来它连 C99 都没真正跟上,仍在用 C89 式的变量声明(必须在花括号后声明)。
CalChris查看英文原文
Essential C doesn't mention a standard but it says Copyright 1996-2003. I'm going guess it hasn't been updated for C11. Modern C [1] covers C11 and was mentioned before. However, it weighs in at 300 pages rather than Essential C's 45. [1] http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf Actually, reading through Essential C, it hasn't really been updated for C99 since it uses C89 declarations: C takes the middle road -- variables may be declared within the body of a function, but they must follow a '{'. More modern languages like Java and C++ allow you to declare variables on any line, which is handy.
链表和二叉树练习实用,适合动手巩固。
这是学习 C 编程和数据结构的小巧好资源;我很有兴致地做完了链表和二叉树部分的习题(附有代码仓库)。
imwally查看英文原文
Great little resource on C programming and data structures. I had a lot of fun going through the problems presented in the Linked List and Binary Tree sections [1]. [1] https://github.com/imwally/cmuck
批评内容过时,并指出 const 的说明有误。
文档讲的是 C89,尽管版权到 2003 年;restricted 指针、柔性数组成员等都没有。第 27 页说 const 在 C 社区用得零散、主要用于说明参数角色,这不准确——const 有助于编译器查错和优化。
etanol查看英文原文
The document talks about C89, even though the last Copyright year is 2003. Isn't it about time that we start movin on? Where are the restricted pointers, the flexible array member and so on? And, by the way, I think the comment at the bottom of page 27 is not correct: The qualifier const can be added to the left of a variable or parameter type to declare that the code using the variable will not change the variable. As a practical matter, use of const is very sporadic in the C programming community. It does have one very handy use, which is to clarify the role of a parameter in a function prototype... Actually, the use of const is encouraged as it helps the compiler to catch more errors as well as to enable some optimizations.
这份讲义源自 Stanford CS107,其价值在于强迫学习者理解内存管理。
这是回忆:我 1996 年上 CS107,这份讲义似乎就是那时写的;Nick 是我的导师,他的 CS108(当时教 C++)是我最喜欢的课之一。也许我有点老派,但如今学生若用不要求真正吃透内存管理的语言入门,会错过重要的东西。
bstrong查看英文原文
Oh, memories. I took CS107 in 1996, which was apparently the date this handout was written. Nick was my academic advisor, and his CS108 (which was C++ at the time) was one of my favorite courses of all time. Bunny World... Maybe I'm just a grumpy old programmer, but I feel like kids these days are missing out on something important by learning to program in a language that doesn't require them to truly grok memory management.
历次讨论
同类还值得读
开源应用架构
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编辑精选