4 ms·
Coming from C++ originally, I actually like header files for code organization, but that is mainly on smaller projects. Once you get to anything substantial I
by dbattaglia 15y ago
Coming from C++ originally, I actually like header files for code organization, but that is mainly on smaller projects. Once you get to anything substantial I feel like they make life very difficult. Sometimes I feel like you end up literally coding around them just to allow for a circular reference between 2 classes. Its not the end of the world or anything of course but I can see why the world at large has moved away from them. I remember the first time I tried C# and saw the single .cs file per class and module/assembly level includes (via references) rather than header-level includes, it was like a revelation, and life felt so much simpler after!