JAVA and Other Languages

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Alpha Omega
Posts: 288
Joined: Wed Oct 29, 2008 12:07 pm

JAVA and Other Languages

Post by Alpha Omega »

Since this is a C++ community what do you guys think of JAVA and other programming languages compared with C++. I am fairly new to programming in general... just wondering what all the other languages are good for.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Java is great when it comes to web applications (not websites. real applications). C (and C++) are good when you need to operate as near as possible to the hardware (writing a driver would be such situation).

However this is just my opinion. I bet it won't take long until someone comes and says "Jave rocks and C++ is a pain in the a**". It's almost as bad as religions.

When you get more experience you will notice that a language is not that good for doing something (for example using c++ for generating dynamic webpages would be *arg* but it is possible).

Or in short: Every language has it's pros and cons. It always depends on what you want to do. Based on that you choose the language.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Post by Valmond »

Java is one of the best languages, if you want to know how not to program (IMHO).

C/C++ can be quite hard for a beginner, you might want to try PHP (C-like) web programming, you'll get things up fast and when you have learned the basics try taking on C/C++.

Well that's my 5 cents anyway 8)
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

One of the first language you learn should have pointers, references, memory managment and templates. Why? Cuz it teaches you to think in a more machine friendly way that'll make your code that much faster even if you move to a higher level language.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Java is cross platform...
not like C/C++, Java is REAL cross platform !!!
with C/C++ you'll need to compile the app for each platform you wanna use it on and if you use system specific libs (like the Windows api) it's no longer cross platform...
a Java app can run on any hardware where Java is installed on, no need to compile it for a specific system...
this is done by tokenising (right term?) the source and this tokenised code will be compiled at runtime token by token on the machine you start it on...
but because each token is only compiled when its executed, Java is pretty slow compared to other languages...
Java was not designed for internet apps in general, but for any hardware that can have a processor...
IIRC one of the developers explained it like this: "Java was designed so your mower in the garden can tell your coffee machine in the kitchen to tell you that the woman next door takes a topless sunbath in the garden" :lol:

well, if you need high performace/speed you should use C/C++, it's one of the fastest languages (the fastest would be machine code/assembler)... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply