RE: Re[4]: [Dev-C++] [q] Does C++ promote bad programming?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-12 19:04:45
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf Of Zodiaq > Sent: Saturday, April 12, 2003 8:45 PM > To: Dev...@li... > Subject: Re[4]: [Dev-C++] [q] Does C++ promote bad programming? >=20 >=20 >=20 > Avoiding pointers with C++ is hard thing, without dynamic storage and > dynamic object generation (long lasting) programs are not so > interesting... Java on the other hand uses pointers only. > and what is more important C++ is hard becouse it mades > not boundary checking ? > - it's because it aims for speed... and using > std::vector at an introductory course is neither good thing... at very > beginning you might be foced to answer what is std, namespace, vector, > template etc... this is all very confusing at the begining, and > without that people have many problems with programs in C++/C crushing > because some memory was written where it shouldn't No, you seem to miss all the safety C++ provides. If you want range = checked access to vector you can use vector::at(). With C++ very safe, = bullef-proof code can be written, simply by using the standard library facilities and avoiding the use of low level stuff, direct memory = allocation/deallocation, casts, macros, void *s. > - Java at first > such attempt stops! :) Java merely is a subset of C++ possibilites. Which is not necessarily bad. > Which, for beginners to OOP is very important! In C++ one can learn whatever he needs to learn.=20 > This forces good habbits as cerufully checking where last iterations > of loops will be writing to and many others... I'm talking here from > my point of view - my road to OOP was like this: > Basic (not even on PC class) > C > C++ and Java (at studies teachers somehow decided to combine=20 > these two) >=20 > and now I stick to C++ (with every aspect it offers - OOP, exceptions, > multithreading [this is more OS dependent, I know]) but I must say > that (for me) learning Java was a very good thing - at the time I > thought I shouldn't be doing that! I thought on high level programming > language is more than enough! But from this point of view, from > current time, I must say it was very usefull experience... All right, > stop chatting, last thing - Java is not JUST simple, it also makes > things simple... it is not only web directed, you can make web applets > in it very easly, but you can make programs that have NOTHING to do > with web... I don't use it because it is interpreted so not nearly as > fast as C++... Java is good for small programs that have to be run on > many platforms, but for big projects that need to be very fast... Myself I do not like Java (I am using the most soft words). There are = many reasons, but I do not want to begin a flame now. :) An interesting URL = to check is: http://www.stlport.org/resources/StepanovUSA.html >=20 > That's what I thing - IMO Java is very good start... On the other hand I believe it is one of the worst (knowing at the same = time that there are many that disagree with me). Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |