3 ms·
I had some bad experience debugging a legacy code base in C. People who wrote that code didn't organize their code as they would do in C++. They implement class
by billconan 2y ago
I had some bad experience debugging a legacy code base in C. People who wrote that code didn't organize their code as they would do in C++. They implement classes using structs and put the member functions everywhere in the code base, (not in pairs of h/c files). The struct fields can be accessed from everywhere too, no enclosure .