Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don’t need “the API” in another file.

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: