Top all-time · #487
Happycake Development Notes
Personal blog · number-none.comgamesprogramming
Happycake Development Notes is a personal blog at number-none.com about games and programming. Since 2008, 119 different Hacker News readers have linked it 148 times, most often “John Carmack on Inlined Code”. No feed was found, so read it on the site itself.
Sometimes recommended · 7 of 40 sampled comments recommend it?
Why HN links it
HN readers link this blog mainly for John Carmack's essay on inlined code, cited to argue for inlining and longer functions over small-function dogma.
- Recommended for · 7 comments
- Good essay/article on inlining; worth a read; pretty good explanation; nice format; suggested reading
Summarised by Claude from a sample of 40 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- John Carmack on Inlined Code64 people · 80 mentions · first linked 2014-09-26
- John Carmack on inlined code (2014)29 people · 31 mentions · first linked 2016-07-19
- Braid Particle System Revision (part 1)6 people · 6 mentions · first linked 2016-07-08
- /product/Understanding%20Slerp,%20Then%20Not%20Using%20It/3 people · 3 mentions · first linked 2021-06-01
- An Introduction to the Rush Language (1994) [pdf]2 people · 2 mentions · first linked 2020-03-31
- Braid Cleanup (part 4)2 people · 2 mentions · first linked 2016-07-20
- Fast-Forwarding LCGs2 people · 2 mentions · first linked 2016-07-10
- Braid Code Cleanup (part 1)2 people · 2 mentions · first linked 2016-07-16
- /product/Mipmapping,%20Part%202/index.html2 people · 2 mentions · first linked 2013-10-27
What Hacker News says?
Agree, people underestimate the cost of interfaces that don't sit exactly where they need to sit (which is almost always the case) http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “Software development topics I've changed my mind on”Submitted John Carmack on inlined code (2014) as a story · 556 points
HN discussionFrom John Carmack: http://number-none.com/blow/blog/programming/2014/09/26/carm...
Comment linking /blow/blog/programming/2014/09/26/carmack-on-inlined-code.html
on “Write code. Not too much. Mostly functions.”Submitted John Carmack on Inlined Code as a story · 456 points
HN discussion> But as we get closer to 100 lines I doubt that it's more understandable and readable to have it all in one big blob of code. Well, but that's exactly what I'm pushing back against. I think the rule of 30 is often a mistake. I think if you're going out of your way to avoid long functions, then you are probably over-abstracting your code. I don't necessarily know that I would inline a quicksort function, because tha…
Comment linking /blow/john_carmack_on_inlined_code.html
on “It's probably time to stop recommending Clean Code (2020)”Submitted John Carmack on Inlined Code (2014) as a story · 395 points
HN discussion> I think the best compromise is small summary comments at various points of functions that "hold the entire thought". I think this is the best, honestly, it reaps most benefits of small single-use functions, without compromising readability or requiring jumping. This is also how John Carmarck recommends in this popular essay: http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “It's probably time to stop recommending Clean Code (2020)”Submitted Braid Code Cleanup (part 1) as a story · 173 points
HN discussionYou’re very close to his actual quote, he was referring to the horrors of mutating shared state: http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “It's probably time to stop recommending Clean Code (2020)”Submitted John Carmack on Inlined Code (2014) as a story · 161 points
HN discussionCarmack's writing on the proper length of functions (although he expresses it in terms of when to inline a function): http://number-none.com/blow/john_carmack_on_inlined_code.htm... . 2014 HN discussion: https://news.ycombinator.com/item?id=8374345 A choice quote from Carmack: > The function that is least likely to cause a problem is one that doesn't exist, which is the benefit of inlining it. If a function is only…
Comment linking /blow/john_carmack_on_inlined_code.html
on “It's probably time to stop recommending Clean Code (2020)”Submitted John Carmack on Inlined Code (2014) as a story · 138 points
HN discussionSee: http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “Practical Go: Real-world advice for writing maintainable Go programs”Submitted John Carmack on Inlined Code as a story · 79 points
HN discussion> I cringe when I see methods/functions over 20 lines long You may find this post interesting http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “Books that changed my career as a software engineer”Submitted John Carmack on Inlined Code (2014) as a story · 23 points
HN discussionTo have a compositor not introduce a frame of latency more or less requires it to race the beam, which has definitely been suggested[1], but you can see how it’d be difficult, and so far no operating systems have tried as far as I know. And as for good frame pacing support in UI toolkits (and not just game engines), well, one can dream. Until both of these are in place, 2.5±0.5 seems to be the hard limit, the questi…
Comment linking /blow/john_carmack_on_inlined_code.html
on “Hard numbers in the Wayland vs. X11 input latency discussion”Submitted Braid Cleanup (part 4) as a story · 14 points
HN discussionWhen arguing against small classes and methods by default, he's in good company: http://number-none.com/blow/john_carmack_on_inlined_code.htm... Prior HN discussion: https://news.ycombinator.com/item?id=12120752
Comment linking /blow/john_carmack_on_inlined_code.html
on “Ask HN: Best books under 200 pages for developers?”Submitted John Carmack on Inlined Code (2007) as a story · 5 points
HN discussionInteresting quote. Seems it was actually a quote of Henry Spencer by Carmack. http://number-none.com/blow/john_carmack_on_inlined_code.htm... Note however that there were several software-related crashes in the early days of Gripen. Might not be related to exactly this code, but to the problem of regulating the feedback loops to manage the plane's purposeful instability
Comment linking /blow/john_carmack_on_inlined_code.html
on “How the Boeing 737 Max disaster looks to a software Developer”Submitted Mipmapping, Part 1 (2001) as a story · 4 points
HN discussionI don't think this is the first time Carmack been talking about functional programming and against mutability, here is some of his thoughts from 2014: http://number-none.com/blow/john_carmack_on_inlined_code.htm... Just because someone is expressing a thought after you or others have already thought about it, doesn't mean they're trying to push it as something new and exciting, it's just another perspective.
Comment linking /blow/john_carmack_on_inlined_code.html
on “John Carmack on mutable variables”Submitted John Carmack on Inlined Code (2014) as a story · 3 points
HN discussion> Sometimes a big, fat block of code is just easier to understand. John Carmack made once the same comment: http://number-none.com/blow/blog/programming/2014/09/26/carm...
Comment linking /blow/blog/programming/2014/09/26/carmack-on-inlined-code.html
on “A Theory of Software Architecture”Submitted John Carmack on Inlined Code as a story · 3 points
HN discussionCarmack has some interesting comments on this sort of coding: http://number-none.com/blow/john_carmack_on_inlined_code.htm...
Comment linking /blow/john_carmack_on_inlined_code.html
on “CryEngine out on GitHub”Submitted John Carmack on Inlined Code as a story · 3 points
HN discussionIf you think these things are considered harmful, I'd encourage you to read "John Carmack on Inlined Code" http://number-none.com/blow/john_carmack_on_inlined_code.htm... "The flight control code for the Armadillo rockets is only a few thousand lines of code, so I took the main tic function and started inlining all the subroutines. While I can't say that I found a hidden bug that could have caused a crash (literally…
Comment linking /blow/john_carmack_on_inlined_code.html
on “Please do not attempt to simplify this code”Submitted John Carmack on Inlined Code (2014) as a story · 3 points
HN discussion