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 The elements of programming style

    The elements of programming style

    Brian W. Kernighan, P. J. Plauger · 1974

    Expression. Control structure. Program structure. Input and output. Common blunders. Efficiency and instrumentation. Documentation.

    Programming
    Open LibraryAmazon
    Stats for nerds
    30recommend
    96mentions
    69people
    2008–2026years
    40% recommend58% neutral2% critical

    Mentions per year

    2008201020122014201620182020202220242026

    What Hacker News says

    1. gwynforthewynOct 2026
      Literally 50 years of engineering history and culture cares about whether code is good. There are libraries worth of books about it, not as a means to an app but for its own beauty. Just read “The Elements of Programming Style”, for example.

      Do what you want, write apps with AI and don’t review code, it doesn’t impact me. The claim that no one cares about good code is demonstrably false, and that’s all I’m objecting to.

      thread
    2. sema4hackerDec 2025
      Before you read this, read "The Elements of Programming Style" by Brian Kernighan and P. J. Plauger.
      thread
    3. MikeTaylorNov 2024
      Just dropping in to say that The Elements of Programming Style is worth reading three times — and I have read it many more times than that, and benefitted from it. Here's my review (from 2010) if you're interested: https://reprog.wordpress.com/2010/03/06/programming-books-pa...
      thread
    4. 256_Jul 2024
      I read the Elements of Programming Style and the Practice of Programming around the same time and they became completely mixed up in my mind. I'll often remember something from one of those books but be completely unable to remember which one it was from.

      Both good books, and both were co-authored by Kernighan. I think they complement each other well.

      thread
    5. 256_Jul 2024
      Well if you're interested, the Elements of Programming Style, to me, was interesting for two reasons. It presents plenty of timeless insights about programming, but it's also very interesting as a historical document; it argues against old-fashioned GOTO-based programming in favour of structured programming, and for-loops executing 0 times, for example.

      It has a list of rules of thumb at the end, which contains my favourite part of the book. Pretty much all of them are timeless, but right in the middle is "Avoid the FORTRAN arithmetic if."

      The one big thing I disagree with it on is the weird idea that you should never have 2 IFs in a row.

      thread
    6. sema4hackerMay 2023
      The Elements of Programming Style by Kernighan and Plauger

      Software Tools by Kernighan and Plauger

      The Psychology of Computer Programming by Weinberg

      A cartoon-illustrated DIY Honda Civic repair book from the 80's I no longer remember the name of.

      thread

    Related

    Cover of Software tools
    2008–2026

    Software tools

    Brian W. Kernighan
    21 recommend · 44
    Cover of The Practice of Programming
    2007–2026

    The Practice of Programming

    Brian W. Kernighan
    90 recommend · 184
    Cover of Software tools in Pascal
    2010–2026

    Software tools in Pascal

    Brian W. Kernighan
    9 recommend · 36
    The psychology of computer programmingGerald M. Weinberg
    2009–2026

    The psychology of computer programming

    Gerald M. Weinberg
    44 recommend · 122
    Cover of The UNIX programming environment
    2007–2026

    The UNIX programming environment

    Brian W. Kernighan
    86 recommend · 215
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of Programming Languages
    2013–2023

    Programming Languages

    Jean E. Sammet
    1 recommend · 6
    Cover of The Pragmatic Programmer
    2007–2026

    The Pragmatic Programmer

    Andy Hunt
    353 recommend · 700