My observation is good quality code written in C++ is more scalable and easy to extend than written in C. where it involves large amount of configuration/parameter data, I would rather use C++. I have seen many examples where there is no intention to improve or re factor badly structured C programs, so that only the original developer knows the code and he /she can only fix any bug in the code, and that provides job security. Engineering or non Engineering managers alike are only interested in the functionality, and are interested in the performance only when it becomes a commercial issue. A well structured good performing code is not rewarded in fact is seen as taking too long to complete for a minor functionality, or if it can be extended, updated by other developers, that implies it was not very complex in first place . As the common saying goes "Bad programmers become Managers",
If performance to the microsecond is not an issue, I Would be tempted to develop in C++, but again I can mix C(for performance) and C++(for extendability).
Posted Jul 4, 2012 21:17 UTC (Wed) by dgm (subscriber, #49227)
[Link]
> good quality code written in C++ is more scalable and easy to extend than written in C.
If you reword it like "C++ offers you more tools to write more scalable and easy to extend code", then I agree with you. How do you use those tools is up to you, and mastering them takes time, it's not easy to learn when to chose one option over others.
C vs. C++ vs. ...
Posted Jul 9, 2012 5:44 UTC (Mon) by daniel (subscriber, #3181)
[Link]
"If performance to the microsecond is not an issue, I Would be tempted to develop in C++"
Having spent a couple of years in the high frequency trading business profiling and optimizing everything to the nanosecond I can state with confidence that the C and C++ code I wrote executed at precisely the same speed, but the C++ was shorter, easier to read, more maintainable and far easier to extend to new functionality.