Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of 21st Century C

    21st Century C

    Ben Klemens · 2012

    Throw out your old ideas about C and get to know a programming language that’s substantially outgrown its origins. With this revised edition of 21st Century C, you’ll discover up-to-date techniques missing from other C tutorials, whether you’re new to the language or just getting reacquainted. C isn’t just the foundation of modern programming languages; it is a modern language, ideal for writing efficient, state-of-the-art applications. Get past idioms that made sense on mainframes and learn the tools you need to work with this evolved and aggressively simple language. No matter what programming language you currently favor, you’ll quickly see that 21st century 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 about the problematic C concepts too useful to discard Solve C’s string-building problems with C-standard functions Use modern syntactic features for functions that take structured inputs Build high-level, object-based libraries and programs Perform advanced math, talk to internet servers, and run databases with existing C libraries This edition also includes new material on concurrent threads, virtual tables, C99 numeric types, and other features.

    Programming
    Open LibraryAmazon
    Stats for nerds
    42recommend
    71mentions
    59people
    2012–2024years
    75% recommend21% neutral4% critical

    Mentions per year

    2012201420162018202020222024

    What Hacker News says

    1. xbarOct 2024
      I like Modern C. I have reviewed it favorably in several places. I agree it is intermediate.

      I think 21st Century C by Ben Klemens and C Programming a Modern Approach by King are both more approachable alternatives as a modern C companions to K&R.

      thread
    2. optymizerAug 2024
      I would split the books into two categories: those that improve the way you structure your code and deliver a software solution, and those that improve your technical understanding of the software platform and the computer you're using.

      The first are books like Pragmatic Programmer, Mythical Man Month, Code Complete, Design Patterns, talks by Alan Kay on software systems and OOP, even Game Engine Architecture etc. A lot of the content there is distilled experience which is much faster to learn from a book than gain the hard way on the job.

      The other books are practical deep dives. Here I would recommend a variety of books like Inside the Machine by Stokes, Computer Architecture by Hennessy, 21st Century C by Klemens, Crafting Interpreters by Nystrom, Compilers by Aho, Effective Java, Nature of Code by Shiffman, Ray Tracing Challenge by Buck, Hands on Hacking by Hickey, and others, depending on your interest and area of focus.

      thread
    3. rahimnathwaniAug 2023
      I was searching for recommendations on a good resource for learning C.

      The book '21st Century C' was recommended a few times on HN, and it has a good appendix on the basics, which is good for those who may not have used C except for undergrad assignments.

      These lectures notes cover not only the basics of the C language, but also some things that are essential to learn alongside (like how to use assert, and how to step through a program with gdb).

      thread
    4. randcrawJun 2023
      "21st Century C" by Klemens (2014) fills that niche: https://www.amazon.com/21st-Century-Tips-New-School/dp/14919...
      thread
    5. alforNov 2021
      If you like this reasoning absolutely read: A Hunter-Gatherer's Guide to the 21st Century

      https://www.amazon.com/Hunter-Gatherers-Guide-21st-Century-C...

      There is so much knowledge about how our modern world is causing much of our health problems.

      Wisdom teeth: food to soft Myopia: not enough exposure to UV light while growing

      Whe should know these things way before we think of medication and chirurgy. And yes, use science and technology to improve our lives when appropriate.

      thread
    6. 10x-devApr 2021
      If you want to write applications in C, do yourself a favor and read 21st Century C by Klemens.
      thread

    Related

    Cover of C programming
    2009–2025

    C programming

    K. N. King
    26 recommend · 33
    Cover of Modern C
    2015–2025

    Modern C

    Jens Gustedt
    37 recommend · 55
    Cover of Head first C
    2015–2022

    Head first C

    David Griffiths
    5 recommend · 8
    Cover of Expert C programming!
    2008–2026

    Expert C programming!

    Peter Van der Linden
    88 recommend · 150
    Cover of Understanding and Using C Pointers
    2013–2025

    Understanding and Using C Pointers

    Richard M Reese
    12 recommend · 22
    Cover of Programming in C
    2010–2016

    Programming in C

    Stephen G. Kochan
    7 recommend · 9
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of Hands-On Network Programming with C
    2022–2024

    Hands-On Network Programming with C

    Lewis Van Winkle
    2 recommend · 2