( continued from http://www.network54.com/Forum/648955/message/1266130635 )
>> Why go through all that pain when there are much more pleasant OO languages?
> You mean, like PHP, Java or Python ? I might agree, Java has become more
> prevalent in the past years, and you can make neat stuff on your cellphone
> with it too. :)
No, not PHP!! But yes to Java, Python, Ruby, C#; I hear good things about D and Smalltalk too.
Actually the Symbian mobile platform, though shrinking in market share, uses C++ with a weird standard library. When I was developing for it I found masses of really, really bad C++ on the 'net.
> C makes it easy to write bad C code.
Well... I'll concede that the C preprocessor makes it easy to write horrible, disgusting C code. But on the whole, C doesn't encourage bad C code. This is largely because there are far fewer "good habits" that should be learned and "bad habits" to be avoided in C than there are in C++, and because C gives you fewer choices in how to approach something.
> Another point is that flexible C/BASIC code is usually patterned from OO
> principles anyway, but to get there in C you need to wade through marshes
> of function pointers and unions; better to gain those skills in a language
> that actually has support for them.
It really depends on what sort of programs you prefer to write. C is not a good general-purpose language, though some people use it as one. Piles of unions and function pointers are often an indication that you are using the wrong tool for the job.
There are many good things to be said about C++, and I would actually prefer using C++ to Java. But I've already gone through the process of learning tonnes about C++.
|Response Title||Author and Date|
|Re: C++ isn't the only place you can learn good design.||Laanan Fisher on Feb 14|
|In my last post I considered saying...||on Feb 14|
|Re: In my last post I considered saying...||Laanan Fisher on Feb 15|
|Re: C++ isn't the only place you can learn good design.||RpgFan on Feb 14|