PDA

View Full Version : C++ vs Java



face_master
04-13-2002, 07:33 AM
Which is better? I love them both :)

Shiro
04-13-2002, 07:56 AM
I also love them both and I don't think the term "better" is correct here. As discussed many times, the best language to use depends on what you want to do.

face_master
04-13-2002, 08:21 AM
By saying "better", I mean which do you find has the most features and ease of use. This should be different for different people.

Shiro
04-13-2002, 08:27 AM
If that's the definition of "better" in this thread: In my opinion Java has more features and is easier to use.

Sorensen
04-13-2002, 05:22 PM
>In my opinion Java has more features

It has a more extensive library, but this is not true of the core language.

face_master
04-13-2002, 05:49 PM
I have found that GUI (using Java 2) among other things is very simple compared to the W32 api, which is exellent becuase this means that you can write windows progs much quicker than in C, and you are less bug/error prone as a result. But are there any disadvantages of Java (in applets/progs)?

face_master
04-13-2002, 05:49 PM
And BTW, the person who voted for Visual Basic should be ashamed of themselves :p

Sorensen
04-13-2002, 06:00 PM
>>And BTW, the person who voted for Visual Basic should be ashamed of themselves

I am. But as you want to write Windows apps with as little pain as possible, it would be true in this case (and your users wouldn't have to put up with swing).

face_master
04-13-2002, 06:03 PM
I never learned Visual Basic...should I have? I went straight to C++ becuase I knew I could handle it.

Sorensen
04-13-2002, 06:09 PM
>I went straight to C++ becuase I knew I could handle it.

It's not a question of being able to handle it; but more -


this means that you can write windows progs much quicker than in C, and you are less bug/error prone as a result

If you're after something to do straightforward Windows apps quickly, you may be better off looking at VB/C#/Delphi before C/C++/Java.

Xterria
04-13-2002, 06:19 PM
hellooooo!!
we're on a c++ board here, what do you think the results are going to be?!?

anyway...
C++ for me.:p

Dalren
04-13-2002, 08:00 PM
Along the lines of not allowing profanity on these boards, cant we post something saying, "NEVER ASK WHICH IS BETTER X or Y,"

We get the same answers everytime, it depends on what your doing, You want to know both, you want to have many tools at your disposal, etc...

It seems like every week someone asks which is better C or C++, or C++ vs. C#, or Java.

Oh yeah execept we can all agree that Visual Basic is the king of programing languages (joke)

shtarker
04-14-2002, 03:48 AM
>>Oh yeah execept we can all agree that Visual Basic is the king of programing languages

No way.
We all know that html is clearly the superior language.

ErionD
04-14-2002, 04:33 AM
I totally agree with Shtarker :D

DarkStar
04-14-2002, 08:56 PM
Java is too verbose for my taste, too much connecting the dots and very long winded. Java is OOP gone mad. Another gripe I have is that byte code is interpreted.

face_master
04-14-2002, 09:00 PM
Originally posted by DarkStar
Java is too verbose for my taste, too much connecting the dots and very long winded. Java is OOP gone mad. Another gripe I have is that byte code is interpreted.
Yes, but that actually makes it easier believe it or not; every pre-defined object has its own set of methods (or 'member functions') to manipulate stuff, which decreses confusion.

eg.
Integer.parseInt(/* whatever */);

SilentStrike
04-15-2002, 11:10 AM
The byte code doesn't have to be interpretted, all the good JVMs now are JIT, just in time compilers, they compile the byte code to machine code.

shtarker
04-15-2002, 05:57 PM
Ther are still interpraters.
The JIT just means that the compile a peice of the program just before its run. That's what interpration is.

jdinger
04-15-2002, 06:08 PM
You should all be ashamed! Nobody gave props to QBASIC?!?!?!


:D

Aran
04-15-2002, 08:11 PM
I love both C++ and Java. I think java is a crazy language in its longwinded and winding class passages, but its nature of hardcore OOP makes big projects easier for sure.

Since C++ is my native language, i'd have to say that i still love it like a brother...

face_master
04-16-2002, 04:42 AM
>>You should all be ashamed! Nobody gave props to >>QBASIC?!?!?!

yeah, I forgot about that when I posted the poll, but only mods can change it...