r/cpp • u/According_Leopard_80 • Apr 09 '26
Writing only decoupled code
https://middleraster.github.io/DAG/HeaderOnlyNoForwardDeclarations.html
12
Upvotes
r/cpp • u/According_Leopard_80 • Apr 09 '26
View all comments
41
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting Apr 09 '26 edited Apr 09 '26
I've never really had any major pain due to cycles, in fact I cannot really recall the last time either me or any of my coworkers had issues because of architectural cycles.
But I can tell you how much pain I've had due to exruciating compilation times. Header-only libraries and bloated headers are a primary cause of that.
I also feel your article is very anecdotal, such controversial claims should come with strong evidence.
It's a "no" for me.
Source?