by cperciva · 18y ago · 0 comments
How does separating out code into DLLs help? Linking is fast.
You must write most of your objects using the interface pattern (a pure virtual interface in the header file, and your implementation exclusively in the source file).
This is something which you should always do -- not just for large C++ projects. Separating interfaces from implementations is ALWAYS good design.
Unfortunately, no. The linking step at work is the most time-consuming. Visual Studio takes four minutes (and growing) to link the client, no matter how small the change.
By the way, do you have any samples of C code from your project I could read? I'm writing my game engine in C, so I try to learn as many different C styles as I can.
If I understand correctly, a pure virtual interface avoids inline functions. And there can be a lot of one-liner inline functions in a large project.
So there's a diference between standard good-design and this yet-another-thing-that-became-a-pattern.