In my weekend assignments, tcost of BP is higher for c++ than other languages.
In any language, function names must match across the files. Ditto for type names and variable names.
Java additionally requires consistency between supertype^subtype, across files. I often rely on Eclipse for that.
C++ adds one more major headache — header files.My C++ coding uses vi or notepad++.
- more #includes are needed when I extract a header file
- in header files, I can’ t “use namespace ..”, so I must manually add the namespace prefixes on many names
- function declaration^definition much match across header file vs implementation files
In a weekend coding assignment, I need to avoid multiple-file coding.
Just keep everything in one file. Tidy up in the end and adhere to Best Practices.