3 ms·
I think the approach the author is talking about is creating an internal class (either private or public). It's common approach for large libraries. Each STL c
by joe_the_user 17y ago
I think the approach the author is talking about is creating an internal class (either private or public).
It's common approach for large libraries. Each STL container has a public iterator class contained in it and rails is filled with internal, private classes that implement the public functionality.
That said, I don't think such constructs necessarily make code more understandable. Unless your project is really large scale, they're more like an exercise in showing the language and design constructs you've learned.