Hacker News new | ask | show | jobs
by newZWhoDis 970 days ago
You don’t need “the API” in another file.

Headers are such an idiotic design, over-abstraction harms locality of reasoning.

1 comments

They made a TON of sense when memory was very limited.

Why parse out a whole C file when you can get the only bits that matter for compiling your file from a 30 line header?

Except languages with modules already existed, in systems even more constrained memory predating C's invention.