ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
I'm about to begin studying for "programmer" in denmark. Now I know that the studies focuses on two programming languages, java and c++. I have to deside what language to use while I'm there.
What languages would you guys chose???
here's a wikipedia article, comparison of java with C++
now, I can't say if it's 100% accurate, still learning C++ myself, but
it does give an overview of them too in a comparison.
Those languages are pretty close (in terms of power) and it is hard to say which is better, they are both popular and used by people. You should decide what you are going to do later. Or just try both and pick the one you like more.
Quote:
Originally Posted by rsciw
for games I'd say C++
Which games? For mobile phones java will be a good choice for games and software development. And there are 3D games written in java (they are rare, but they exist).
I would choose C++ because I like it more. The reason I like it more is because it's more low-level and has more advanced features. It's also harder to master, and I like things that are difficult. It would make me learn more about GDB too, because I don't like using a big IDE to edit my stuff. (Yes I know there's JDB but it is featureless by comparison.) Also I do Java at work so it's always nice to have a break.
Those languages are pretty close (in terms of power) and it is hard to say which is better, they are both popular and used by people. You should decide what you are going to do later. Or just try both and pick the one you like more.
Which games? For mobile phones java will be a good choice for games and software development. And there are 3D games written in java (they are rare, but they exist).
mobile phone games didn't occur to me, forgot, lol.
Was thinking of 'mainstream' games, those you play on computers/consoles
One of my main games I play apparently has some parts in Java, but as you say, it's rare, so imo wouldn't really count on that)
I would choose C++ because I like it more. The reason I like it more is because it's more low-level and has more advanced features. It's also harder to master, and I like things that are difficult. It would make me learn more about GDB too, because I don't like using a big IDE to edit my stuff. (Yes I know there's JDB but it is featureless by comparison.) Also I do Java at work so it's always nice to have a break.
I Was thinking about c++ to, but I know, like you said, its really difficult to learn. But can it be more difficult than Java??
It's nearly impossible to learn all of C++. It is also unnecessary. Most professional C++ programmers know only a small fraction of the language.
It isn't very hard to find and learn an effective subset of C++.
Even that would be harder than learning Java. But not a lot harder. For programming ordinary desktop computers, C++ is a better language than Java and worth some extra effort to learn.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.