Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2006, 12:41 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally Posted by jake13jake
Java's syntax has a much nicer structure and promotes readability more than C++. In my opinion, Java's library overstates readability in the sense that it makes things less readable sometimes, but any programmer can do that. Also, Java is platform independent.
I dislike using the term platform independent because it implies that you have the Java VM installed, but by the same token you can use GTK+ or SDL/OpenGL etc and have the same level of platform independency as you have with Java. Granted you'd have different binaries for each platform, but at the same time they are actually executable and don't require it to feed everything through the Java VM.

Java is basically simpler than C++, and it has a ****ton of pre-written libraries, which is both good and bad. Personally if you're going to write something that you're going to use or distribute I think it makes much more sense to do it in C/C++ if you are capable.

Also about the Arrays, Java has ArrayLists I believe which do not have to be defined as a certain length. I think the concept of arrays that cannot change sizes is kind of defeating. It has a few practical uses but it seems to be more of a hassle than it is worth. 99.9% of the time that I use arrays it's dynamic and I am not sure of how many elements it has to it. I just don't like Java overall, I hardly show up to my Java class anymore =/ My professor was going to let me test out of both of the java programming classes we have here but she wasn't going to give me credits. Oh well, easy A's are easy A's.
__________________
Who has time for life these days?
Reply With Quote
  #2  
Old 03-17-2006, 05:29 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Projectshifter
I think the concept of arrays that cannot change sizes is kind of defeating.
The anytype[] classes in Java are not meant to be actually used as arrays. They are primarily meant to implement array classes, and to provide some lowlevel aggregate data structure.

C++ arrays are as unresizable as Java arrays.
Reply With Quote
  #3  
Old 03-17-2006, 06:28 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Loriel
The anytype[] classes in Java are not meant to be actually used as arrays. They are primarily meant to implement array classes, and to provide some lowlevel aggregate data structure.

C++ arrays are as unresizable as Java arrays.
What's fun in C++ though, is that you can override the [] operator with classes so you can make a list class that uses the the [] for indicating index, and then add or remove from the list and the size auto adjusts... fun.
Reply With Quote
  #4  
Old 03-17-2006, 09:15 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by jake13jake
What's fun in C++ though, is that it puts a lot of effort to enable you to make user-defined types be usable like primitive types
I totally agree.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.