C vs. C++ vs. ...
Posted Jul 1, 2012 18:52 UTC (Sun) by
khim (subscriber, #9252)
In reply to:
C vs. C++ vs. ... by HelloWorld
Parent article:
Why learn C? (O'Reilly Radar)
Your comment is self-contradictory. Did you switch from C to C++ or vice versa?
From C++ to C, of course.
If you switched from C++ to C, then the only explanation for that phenomenon is poor developers.
Not really. The difference is subtler. C++ code uses nice, buzzword-compliant "flexible" architecture (similar to the style showed here). C code uses (as I've said) large functions and macroses. Instead of 10 layers of indirect functions is has dozen of flags (which are processed by said macroses).
This means that it's impossible to do many things with C module which were possible with C++ module - and this is good thing. Because it means that instead of abusing callbacks to do something strange and exciting people need to change the core - which then means that code will be reviewed by people who know how said core works. Which in turn means that fewer stupid things will be introduced in the system.
(
Log in to post comments)