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 Obfuscated C and other mysteries

    Obfuscated C and other mysteries

    Don Libes · 1993

    Programming
    Open LibraryAmazon
    Stats for nerds
    4recommend
    7mentions
    6people
    2011–2024years
    57% recommend43% neutral

    Mentions per year

    20112013201520172019202120232024

    What Hacker News says

    1. squeaky-cleanDec 2016
      I didn't reach my goal for books read this year, but I still read a lot and found several good ones. The ones I would recommend to others:

      How to Read a Book - Mortimer Adler. Really helped me feel more comfortable reading technical books and large books. I've probably worked through more tech/textbooks this year than all other years combined. (It's not a particularly high number this year, it was just low all the other years, haha).

      Meditations - Marcus Aurelius, Gregory Hays translation. I highly recommend this translation if Meditations is a book that's interested you. It's written very informally and casually. Like Aurelius writing in a notebook before bed. While other translations are very length and flowery with descriptions and overly formal.

      Superintelligence - Nick Bostrom. This one gets talked about a lot on here. I bought it because it's a topic I'm very interested in, but I was expecting more hype than real content. I must say, I was very pleasantly wrong about that. Bostrom makes some really solid arguments about what superintelligence might mean and many ways it could potentially arise.

      The Life-Changing Magic of Tidying Up - Marie Kondo. I didn't like most of this book. But the tips for tidying up, as well as the surge of motivation you magically get just after reading it made the book worth it.

      Test-Driven Development with Python - Harry Percival. Obey the testing goat! Thanks to this book, all my current professional projects are using TDD. I had been making an effort to test code before, but generally after writing the code. The biggest benefits, for me, of writing tests before the rest of the code is that 1) My projects are organized so much better than before. 2) My tests feel much more comprehensive than they ever did previously.

      Surprise books. These I wouldn't recommend for everyone here, but they're the most interesting ones I personally found this year:

      Obfuscated C and Other Mysteries - Don Libes. Someone on HN recommended it, and I managed to find a used copy for $6. Just incredible if you love C, low level code, and hardcore tricks and optimizations. Some of the chapters explain winning entries to the IOCCC, and some explain strange tricks with C that probably aren't too useful in current day applications and may not even work on modern hardware. Not just insightful, but also very funny.

      Computational Fairy Tales - Jeremy Kubica. Recommended to me by someone in IRC. Aimed mostly at kids, it's a fairy tale that involves computing. Princess Ann has to save the kingdom from a prophecy of doom. Along her journey every encounter indirectly describes a comp sci concept, such as showing an ogre how to repeatedly hit metal to make a sword mimics a FOR loop. A magical town where all the people only speak in completely boolean terms ("Is the castle that way?" Ann points. "No, it's that way" the villager points the same direction as Ann, but a fraction of a degree to the side). I think I picked up some good examples for explaining computers to kids without getting into jargon. Very cute, though I didn't finish it because I got tired of the simplicity, would recommend for a child.

      thread
    2. mtoddhApr 2013
      Neither are recent, but the following are both good:

      "Obfuscated C and Other Mysteries" by Don Libes

      "C Companion" by Allen Holub

      Don Libes' book actually uses Obfuscated C code entries as interesting instructional examples and Holub's book is a nice intermediate book between K&R and "Expert C Programming".

      I never see Holub mentioned much by other C programmers but I think his books are awesome. He actually also has a really good compiler book called "Compiler Design in C" that showed how to build a C compiler from the ground up - with a lot of practical details I never really see in other books in that area. He even had a cool curses implementation to go along with it where you could watch the parsing occur visually, and wrote a curses-like library in assembly so you could run it all on DOS too. He used to write the C Chest columns for Dr Dobbs back in the day and the book "C Chest and Other C Treasures" contains a collection of those articles and other code that C programmers would find interesting. But that book is harder to find these days.

      thread
    3. WildUtahNov 2011
      The Don Libes book, Obfuscated C and Other Mysteries [0], is a fantastic programming book, among my top ten. I think it's out of print, but Amazon has used copies.

      [0] http://www.amazon.com/Obfuscated-Other-Mysteries-Don-Libes/d...

      thread
    4. kqr2Jul 2011
      If you like deconstructing obfuscated c, then you may also enjoy Obfuscated C And Other Mysteries by Don Libes. In addition to coding advice, it looks at some of the top entries from the Obfuscated C Contest, 1984-1991.

      http://www.amazon.com/gp/product/0471578053/

      Also appears to be available as a reprint:

      http://www.cafepress.com/libes.43758522

      Obfuscated C Contest website:

      http://www.ioccc.org/

      thread
    5. trompAug 2024
      With my 1988 IOCCC entry

          char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
          --            E;             J[              E]             =T
          [E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
          )    ,   A    =              39              ,C             --
          )    ;   Z    ||    printf   (M   ))M[Z]=Z[A-(E   =A[J-Z])&&!C
          &    A   ==             T[                                  A]
          |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
      
      discussed in more detail in Don Libes' "Obfuscated C and Other Mysteries" [1], I turned out to have rediscovered Eller's algorithm, which only keeps one line of the maze in memory.

      [1] https://tromp.github.io/maze.html

      thread
    6. breadboxJul 2016
      This is an excerpt from a book "Obfuscated C and Other Mysteries", one of the stranger programming books I've ever owned. About half the chapters are discussions like this one -- taking a (relatively) small, practical programming task and going into detail how to address it. There's a grab-bag of subjects, and it doesn't even adhere strictly to C, as a couple of chapters discuss the use of Tcl in C programs. The majority of the book, however, discusses the winners of the first few years of the International Obfuscated C Code Contents. He not only presents the source code and explains what they do, but he also goes into some detail (sometimes great detail) as to how they work. There's nothing else like it that I know of, and it is one of my favorite programming books of all time.
      thread

    Related

    Cover of C Traps and Pitfalls
    2009–2025

    C Traps and Pitfalls

    Andrew Koenig
    19 recommend · 37
    Cover of Compiler design in C
    2011–2026

    Compiler design in C

    Allen I. Holub
    11 recommend · 28
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of Clean Code
    2008–2026

    Clean Code

    Robert C. Martin
    298 recommend · 951
    Cover of Secure coding in C and C++
    2015–2023

    Secure coding in C and C++

    Robert C. Seacord
    7 recommend · 11
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of Expert C programming!
    2008–2026

    Expert C programming!

    Peter Van der Linden
    recommend · 150
    88
    Cover of Code
    2008–2026

    Code

    Charles Petzold
    243 recommend · 385