TLDR Web Dev · ARTICLES & TUTORIALS

JOHN CARMACK ON INLINED CODE

number-none.com14 min read

Summary from the TLDR Web Dev newsletter

Doom co-creator John Carmack advocates for inlining code as a way to improve code clarity and reduce bugs. Inlining helps programmers become aware of all the code being executed, eliminates the possibility of functions being called from unintended places, and reduces the risk of bugs stemming from state changes. As an example, aerospace software uses inlining for reliability.