★ TouchArcade needs your help. Click here to support us on Patreon.

Java or c++

View Poll Results: Java or C++
Java 3 37.50%
C++ 5 62.50%
Voters: 8. You may not vote on this poll
03-06-2012, 11:55 PM
#1
Joined: Feb 2011
Posts: 287
Java or c++

Well I just recently started learning how to program and making some small time programs(NOT GAMES) in Java. When my friend told me that C++ is way easier, so I looked over some code and tutorials... surprise surprise, C++ is way easier than Java AND more user friendly in terms of game developing. But since I'm already learning Java, I dont know if I should switch to Java or C++

So what do you guys think? Java or C++? Which one is more easier to learn? Which one is easier to program games in?
03-07-2012, 12:24 AM
#2
You realize you've started a taste debate now, right? This might end badly. Anyway, good luck with either!

Firewall, my rule-changing turn-based strategy game, is out, get it now!

03-07-2012, 12:37 AM
#3
Joined: Feb 2011
Posts: 287
Its cool, if i get results and a proper reason to start programming in a specific language, im fine
03-07-2012, 01:34 AM
#4
Joined: Apr 2011
Location: Kyoto, Japan
Posts: 281
Before this thread becomes too hot, let me just say this. The choice of language is really not important. Whichever language you choose, there will be positives and negatives, easy stuff and difficult stuff. Look around, great games have been made in C++ and Java, and in other languages aswell.
I am a pure C++ guy and have never looked at java, but I would say if you are already learning java, stick with it. There are great career opportunities either way too. It really depends on where you want to go.
Ultimately, as long as you are learning something, it doesnt matter.

Game source code for PC, Mac, Linux and iOS here.
03-07-2012, 02:53 AM
#5
Quote:
Originally Posted by knighthalo123 View Post
So what do you guys think? Java or C++? Which one is more easier to learn? Which one is easier to program games in?
I wont address which is easier to learn. As far as which is "better" or which one people prefer, that can turn into a religious war real quick. What I did want to say is that you should consider what your ultimate goal is in learning the language. By that I mean what types of applications you want to be making, on what platforms, and whether you want to do it professionally or not. If, for example, you want to become a game developer working on iPhone games, or at a dev studio doing console or PC games, or something like that... then C++ is the way to go. If you want to be making web-based games, then Java might be a better choice.

Independent developer of Alien Space, Alien Space Retro, and now Annihilate

For more information and latest updates, join us on Facebook: https://www.facebook.com/AlienSpaceGame
03-07-2012, 10:01 AM
#6
I would say there's a benefit in learning a language in which you must do the memory management(C++). In the end, it doesn't hurt to learn both and known both as they will each teach you slightly different constructs, but I do think there's a big benefit in truly understanding how memory is managed.
03-07-2012, 12:07 PM
#7
Joined: May 2010
Location: Lincoln, UK
Posts: 344
The question seems to have been answered in the original post.

If you find C++ easier, and you think it more suitable for what you want to do, then learn C++.