出版社: O'Reilly Media
副标题: C Tips from the New School
出版年: 2012-12
页数: 298
定价: USD 29.99
装帧: Paperback
ISBN: 9781449327149
内容简介 · · · · · ·
Throw out your old ideas of C, and relearn a programming language that’s substantially outgrown its origins. With 21st Century C, you’ll discover up-to-date techniques that are absent from every other C text available. C isn’t just the foundation of modern programming languages, it is a modern language, ideal for writing efficient, state-of-the-art applications. Learn to dump o...
Throw out your old ideas of C, and relearn a programming language that’s substantially outgrown its origins. With 21st Century C, you’ll discover up-to-date techniques that are absent from every other C text available. C isn’t just the foundation of modern programming languages, it is a modern language, ideal for writing efficient, state-of-the-art applications. Learn to dump old habits that made sense on mainframes, and pick up the tools you need to use this evolved and aggressively simple language. No matter what programming language you currently champion, you’ll agree that C rocks.
Set up a C programming environment with shell facilities, makefiles, text editors, debuggers, and memory checkers
Use Autotools, C’s de facto cross-platform package manager
Learn which older C concepts should be downplayed or deprecated
Explore problematic C concepts that are too useful to throw out
Solve C’s string-building problems with C-standard and POSIX-standard functions
Use modern syntactic features for functions that take structured inputs
Build high-level object-based libraries and programs
Apply existing C libraries for doing advanced math, talking to Internet servers, and running databases
作者简介 · · · · · ·
Ben Klemens has been doing statistical analysis and computationally-intensive modeling of populations ever since getting his PhD in Social Sciences from Caltech. He is of the opinion that writing code should be fun, and has had a grand time writing analyses and models (mostly in C) for the Brookings Institution, the World Bank, National Institute of Mental Health, et al. As a N...
Ben Klemens has been doing statistical analysis and computationally-intensive modeling of populations ever since getting his PhD in Social Sciences from Caltech. He is of the opinion that writing code should be fun, and has had a grand time writing analyses and models (mostly in C) for the Brookings Institution, the World Bank, National Institute of Mental Health, et al. As a Nonresident Fellow at Brookings and with the Free Software Foundation, he has done work on ensuring that creative authors retain the right to use the software they write. He currently works for the United States FederalGovernment.
目录 · · · · · ·
Chapter 1 Set Yourself Up for Easy Compilation
Use a Package Manager
Compiling C with Windows
Which Way to the Library?
Using Makefiles
· · · · · · (更多)
Chapter 1 Set Yourself Up for Easy Compilation
Use a Package Manager
Compiling C with Windows
Which Way to the Library?
Using Makefiles
Using Libraries from Source
Using Libraries from Source (Even if Your Sysadmin Doesn’t Want You To)
Compiling C Programs via Here Document
Chapter 2 Debug, Test, Document
Using a Debugger
Using Valgrind to Check for Errors
Unit Testing
Interweaving Documentation
Error Checking
Chapter 3 Packaging Your Project
The Shell
Makefiles vs. Shell Scripts
Packaging Your Code with Autotools
Chapter 4 Version Control
Changes via diff
Git’s Objects
Trees and Their Branches
Remote Repositories
Chapter 5 Playing Nice with Others
The Process
Python Host
The Language
Chapter 6 Your Pal the Pointer
Automatic, Static, and Manual Memory
Persistent State Variables
Pointers Without malloc
Chapter 7 C Syntax You Can Ignore
Don’t Bother Explicitly Returning from main
Let Declarations Flow
Cast Less
Enums and Strings
Labels, gotos, switches, and breaks
Deprecate Float
Chapter 8 Obstacles and Opportunity
Cultivate Robust and Flourishing Macros
Linkage with static and extern
The const Keyword
Chapter 9 Text
Making String Handling Less Painful with asprintf
A Pæan to strtok
Unicode
Chapter 10 Better Structures
Compound Literals
Variadic Macros
Safely Terminated Lists
Foreach
Vectorize a Function
Designated Initializers
Initialize Arrays and Structs with Zeros
Typedefs Save the Day
Return Multiple Items from a Function
Flexible Function Inputs
The Void Pointer and the Structures It Points To
Chapter 11 Object-Oriented Programming in C
What You Don’t Get (and Why You Won’t Miss It)
Extending Structures and Dictionaries
Functions in Your Structs
Count References
Chapter 12 Libraries
GLib
POSIX
The GNU Scientific Library
SQLite
libxml and cURL
Epilogue
Glossary
Bibliography
Colophon
· · · · · · (收起)
喜欢读"21st Century C"的人也喜欢的电子书 · · · · · ·
喜欢读"21st Century C"的人也喜欢 · · · · · ·
21st Century C的书评 · · · · · · ( 全部 4 条 )
> 更多书评 4篇
论坛 · · · · · ·
废话过多,应该精炼一点 | 来自无 | 2013-10-01 17:18:20 |
这本书的其他版本 · · · · · · ( 全部6 )
-
人民邮电出版社 (2015)6.6分 28人读过
-
人民邮电出版社 (2018)暂无评分 3人读过
-
O'Reilly Media (2014)暂无评分 4人读过
-
歐萊禮 (2014)暂无评分 2人读过
以下书单推荐 · · · · · · ( 全部 )
谁读这本书? · · · · · ·
二手市场
· · · · · ·
- 在豆瓣转让 有203人想读,手里有一本闲着?
订阅关于21st Century C的评论:
feed: rss 2.0
0 有用 greatabel 2013-10-23 00:53:53
可能在ubuntu一般work,不过作者一定没有在osx上的gcc上试过,makefile很多需要修改
0 有用 lili 2012-12-27 14:05:08
内容广泛,不是给新手写的。 主要讲解了C的新标准中提供的语言技巧
0 有用 Tony Bai 2012-11-22 10:34:36
肯定不是适合c初学者。但对c成手来说,也没有太多新东西。 现在这个年代涉及C的书很难写阿。再难见经典了。
0 有用 nwind 2012-12-14 12:56:13
没啥新东东,不过这样就对了
1 有用 Vimmer 2016-08-18 09:34:00
泛泛而谈,浅尝辄止,偶有妙思,
0 有用 无锋之刃 2023-05-29 05:47:35 上海
新意有限。
0 有用 流浪的龙 2022-05-04 09:18:45
朋友,有时间学点c吧
0 有用 cannon 2019-11-24 07:28:48
Things that I find useful: Autotools (Ch3), interact with Python (Ch5), Ch6-10.
0 有用 d14m0ndcr4ck 2019-05-29 22:36:13
查缺补漏,跟进新特性,再去看代码感觉顺畅了不少。
0 有用 robi 2016-08-27 20:50:16
- - 对于我来说熟悉了各种构建工具