D
deanhiller
I have read alot on the fact that a large program could potentially run
faster in C++ than C due to the fact that it can be organized
better/designed better. I can't seem to redig up these articles.
Anybody know of some. I tend to believe that it might be possible to
always have a faster large program in C++ than C due to this. I could
be wrong, but I don't think anyone has concrete proof either way. Yes
microbenchmarks might show C faster than C++ or C++ faster than C. I
could care less about a microbenchmark that really can't tell me if my
software will be faster in C or C++.
Our current development has a huge problem in quality. I am very
familiar with OO and test first in OO. I personally think it is much
easier to have unit tests with mockobjects in OO than procedural....I
could be wrong and be showing ignorance here as I don't have much
experience there. The reason I say this is test first is done with the
Dependency Injection Pattern(formerly known as Inversion of Control
Pattern) which I am not sure can be done in C programming....Can it?
I probably have a challenge coming up that from my teams that C is
faster than C++, and personally I don't care if it is always 10% slower
if it gives our products better quality with test first.
thanks for any thoughts,
dean
faster in C++ than C due to the fact that it can be organized
better/designed better. I can't seem to redig up these articles.
Anybody know of some. I tend to believe that it might be possible to
always have a faster large program in C++ than C due to this. I could
be wrong, but I don't think anyone has concrete proof either way. Yes
microbenchmarks might show C faster than C++ or C++ faster than C. I
could care less about a microbenchmark that really can't tell me if my
software will be faster in C or C++.
Our current development has a huge problem in quality. I am very
familiar with OO and test first in OO. I personally think it is much
easier to have unit tests with mockobjects in OO than procedural....I
could be wrong and be showing ignorance here as I don't have much
experience there. The reason I say this is test first is done with the
Dependency Injection Pattern(formerly known as Inversion of Control
Pattern) which I am not sure can be done in C programming....Can it?
I probably have a challenge coming up that from my teams that C is
faster than C++, and personally I don't care if it is always 10% slower
if it gives our products better quality with test first.
thanks for any thoughts,
dean