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
Show parent comment
6
u/frankist Apr 09 '26
In my opinion, the problem of cycles described by the OP only becomes unmanageable when they follow this paradigm of creating tiny objects all over the place that have complicated interfaces and relationships with other objects through raw or smart pointers. It's the type of code you often see in projects that enthusiastically follow clean code and other OOP principles and practices.