Archived

This topic is now archived and is closed to further replies.

[java] I am sick and tired of prejudism!

This topic is 6415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

quote:
Original quote from the article

If a game is written in Java you could probably cut of half a year which would cut production costs and bring the game onto an earlier market, which means that it will sell better.



That sounds like quite a stretch.

Why does everyone assume that developing in Java is so much quicker than developing in C++? I''m perfectly productive in C++. Being experienced in it, I know the pitfalls and I know how to avoid them. Java is a fine langauge, but it''s irritating how arrogant people get about how much more productive it is.

Use whatever you like, but don''t complain about how bad C++ users attitudes are when you seem to have just as bad an attitude.

--TheGoop

Share this post


Link to post
Share on other sites
You seem to be confusing your personal productivity in creating code with the productivity of the entire development process (including debugging and testing with the involvement of more than one developer). The reason so many of us take the position that Java is many times more productive as a development platform than C++ is because it has been proven in independent studies...

One such article is here…

http://java.sun.com/features/1998/07/efficiency.html

If you research I am sure you will find many more.

Share this post


Link to post
Share on other sites
Well, I can write a program in Visual Basic faster than Java or C++, but that doesn''t necessarly mean the programming language is better. It COULD be said (not by me tho ) that C++ is generally intended more for experts, and it takes much longer for novices/intermediates to write/debug C++ software, while Java is written for novices/intermediates so it is easier for them produce software. Now, I am NOT saying this is the case, just playing devil''s advicate. Personally, I use C++ for my applications/games, but I couldn''t say which programming language is better (and I''m sure they both have their pluses/minuses) because I haven''t used very much Java. I must say that I''m somewhat turned off by the lack of pointers in Java. Pointers have SO many uses I couldn''t even begin to imagine writing a program without them. I will give Java users one point tho, the lack of a C++ string class is a pain.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
that''s just because you already know pointers. I''ve never used them and quite simply I can''t imagine the need for them. Some C++ stuff though I would like, that template thing sounds good and multiple inheritance would be nice if implemented correctly. Though living without gabage collection and some of the messy systax seems impossible. Oh well I guess I''m going to have to learn C++... too bad. Maybe this C# thing will liberate us from the weaknesses of java and C++. Too bad someone else didn''t come out with the same thing last year. I still think C* would be cooler as a name. Maybe someday I''ll make my own language with java syntax and the power of C++ and I''ll just call it D. We''ve been on C long enough.

Share this post


Link to post
Share on other sites
Seems to me that the present C++ programmers are whining about the same thing C programmers whined about when C++ came to be. The tables have turned and now Java is in style. So if you are arguing speed, etc. you may be just reiterating arguements which went against C++ and now using it for it. Seems like that to me.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

Edited by - ImmaGNUman on June 23, 2000 5:22:54 PM

Share this post


Link to post
Share on other sites
Dear My Anonymous:

C# will probably be just a bad attempt of microsoft (using musical names for some strange reason) to make a Java competitor. I for one will not support it, because MS will find a way, they always do. By the way, don't call it D, call it P, in honor of BCPL, which is what they though C++ would be called.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

Edited by - ImmaGNUman on June 23, 2000 5:25:58 PM

Share this post


Link to post
Share on other sites
To Houdini and others who heard that Java doesn''t have pointers, Java has pointers. If you refrence any Object(class) you use a pointer naturally. It''s just it''s invisible to you. If you create a double,float,int,char,byte of other primitive types it declares the memory right there. Also when you pass a object into a function it is automatically passed by refrence(as in a pointer is passed not a copy of the whole thing), if you pass a primitive type it is passed by value.

Another handy thing you can do with pointers in Java is make a pointer to Object by writing Object o; Now o can point to anything it wants to except primitive types. Or have a method that accepts an Object and that Object can be anything. Just wanted to point out that Java can do it all. If you are having difficulty porting a program with pointers over to Java, just ask as there''s definately a way.

I remember doing programs demonstrating polymorphism and inheiritance in C++ class, and having so many pointers and
pointer related things going on that the program would litterally be unreadable to a novice and a pain even for a expert(there were * all over the pages). In Java this kind of stuff is perfectly readable, easy to write, less buggy,no cleanup, but of course the downfall is that when someone looks at your code it
will be so apparent what you are doing they won''t think your a genius.

Share this post


Link to post
Share on other sites
Thank you all for your comments. Please post more if you can.

The comment by an anonymous poster on page 1 decerves immediate feedback.

The poster argues that Java development not really is faster than C++ development and that some of my "advantages" not are weel-founded. I have therefore extected the article with a link to anotehr page were readers can get a more in-depth discussion of what I mean. If you are the anonymous poster I would be very pleased to see your comments on this.

It can be found here:
http://www.marner.dk/articles/WhyJavaCanBeUsedForGames/advantages.htm

There has also been some discussion in this topic on whether Java increases developer productivity. And have therefore added a list of references accessible from the article that explains this in detail.

It can be found here:
http://www.marner.dk/articles/WhyJavaCanBeUsedForGames/CppJava.htm

I have also modified the article a few places to take into account some of the comments in this topic.

Jacob Marner

Share this post


Link to post
Share on other sites