Topic: Virtual functions -- really: to C++ or not to C++


Author: tmb@arolla.idiap.ch (Thomas M. Breuel)
Date: 13 Sep 1993 23:05:16 GMT
Raw View
Bjarne Stroustrup (bs@alice.att.com) writes:
> I want to do OOP, should I learn Smalltalk before C++?
>
>No. If you plan to use C++, learn C++.

You should, however, carefully think through whether you actually plan
on using C++; C++ may not be the best choice for your problems and
work environment (but, then, it may be).

Consider a rough analogy.  C++ is like a military style jeep.  It will
get you through some pretty rough territory, and jeeps look cool and
are popular.  However, when it comes down to it, a compact car is
easier to drive and more economical around town, a luxury sedan is
safer and much more comfortable, and a sports car will get you to your
destination faster (at least on the autobahn).

Do you need a military style jeep?  You decide for yourself.  Should
you learn first driving compact cars or jeeps?  That depends on what
you need right away, but learning one will help you with the other.

As for me, I drive most vehicles with wheels and some without.
I certainly don't drive a jeep to go shopping, and I have ridden
bicycles and driven compact cars, luxury sedans, and sports cars since
before jeeps were even invented.  But I'm glad I have a jeep in the
garage for when the occasion calls for it.

     Thomas.