I've been reading a lot of C++ code in the Swift and LLVM codebases recently. Some of the class declarations span thousands of lines of source code, with many nested class declarations. There are also multiple sections marked protected:
-- in other words, not all protected methods can be found in a single place. Example: swift::Decl
, which is ~700 LoC.
Experienced C++ coders:
- Is this a good way to organize C++ code? Or would it be more ideal if these declarations were broken down more? Why?
- Is there an easy way to determine, for example, whether
swift::Decl
is an abstract class? With 600 LoC and several layers of nesting, it's easy for me to get lost when scrolling through the code in Vim. Is this why people use IDEs?
Awesome, thank you! I'll definitely read that book.
I had been using YouCompleteMe for Vim, but I didn't find it that useful. Sounds like I should give it another try. Thanks! 🙇♂️