Paul said:
I agree with you folks, we can't compare every thing with every thing
else. But in my profession as a programmer, I many times encounter a
word "Portability" and a phrase "C is Portable across platforms". Some
of the projects in which I was involved where C++ is a best fit, my
boss chose C defeating us with that one word. This is just because not
all platforms have a C++ compiler. Then it makes me wonder is it a
right decision and why are we forced to use C just for the sake of
PORTABILITY (modular) where C++ (OOAD) would have been better.
Its like using a screw driver and fist to nail, instead of hammer.
-Paul
Ok, so I'm feeding the troll.
I really don't understand. Perhaps you have a narrow field of
vision.
Both C and C++ and FORTRAN and LISP and a whole plethora of languages
are "portable" to other platforms. All projects have their line
between platform dependent and platform indepent code. These
sections really have nothing to do with Object Oriented Architecture
or Design (OOA / OOD). Object Oriented and procedural are just
different methods of how to get a task done. One could write the
platform dependent code using OO and the platform independent using
procedural. Hey, the wto pieces can be written in different language
too.
If one has a choice to select a language for a project, there are
many criteria for doing so; least of which is "X language is cool."
I choose the language that helps get the project done the fastest
with the best quality and readability. If the choice is LOGO, then
so mote it be.
I agree with you that not all platforms have compilers for all
the languages. If you language choice is COBOL, but there are
not compilers for the platform, you will have to choose another
language or develop the compiler yourself.
In my profession as a software developer, one does not care
about whether a language is better or not. Most of the time,
the language used cannot be changed. One has to make the
best of the situation and know how to accomplish the task
in the best manner. Often times, that does not involve wasting
time debating the advocacy of a a language.
Perhaps you should take this issue to a newsgroup with
"advocacy" in its name.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book