Adblock breaks this site

C++ or Java???

Discussion in 'Programming General' started by Cherry65, Jun 17, 2007.

?

Which one is better?

  1. Java

    26 vote(s)
    38.8%
  2. C++

    40 vote(s)
    59.7%
  3. Other(Post it name)

    1 vote(s)
    1.5%
Thread Status:
Not open for further replies.
  1. kombo

    kombo Forum Addict
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    329
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    If your not so good on c++ i would say java since java you can play around with and not do any damage to your computer .. but i dont mean play around with as in acaully get out a notepad.. and start codeing lol...

    and c++ is used in alot of games but you gotta know what your doing cause there is a chance of a memory leak and you dont want that happen =)

    so if your plainning on building a game...

    first learn - html
    second - html / abit of java
    third - java

    :D
     
  2. WinterDreamZ3

    WinterDreamZ3 Guru
    Banned

    Joined:
    Feb 22, 2007
    Posts:
    1,024
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    At school we learn

    First - PHP and VB
    Second - PHP, VB.net and C++
    Third - Java
     
  3. SpankyD

    SpankyD Guest

    Referrals:
    0
    C++ or Java???

    yea html then java
     
  4. mr.gibblet

    mr.gibblet Forum Addict
    Do Not Trade

    Joined:
    Jun 29, 2007
    Posts:
    454
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    You should definately use C++.
    C++ has more compatibilities and handlers with integers and chars, although it is slightly more complicated.

    Java's Integers are limited to: 2,147,483,647
    And C++'s unsigned Integers are limited to: 4,294,967,295

    thats about 2x more.

    I hope this helped =]
     
  5. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    C++ or Java???

    What does that matter? It's extremely hard if you compare with Java, and i wouldn't be able to play his little game because i use Linux :p
     
  6. Zyloch

    Zyloch Member

    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    I want to clear up some conceptions some of you seem to be having about Java and C++.

    Unless you are creating something that is extremely processor-intensive and where speed is extremely important, such as a huge 3D game (e.g. Halo) or doing scientific computing or something, I don't think you need to worry about speed differences between the two. As a lot of you probably already know, Java already uses just-in-time compilation, so the speed difference is often not as great as you think. And if you're really going for absolute speed, you'd be using C anyway.

    And of course there will be a learning curve for both Java and C++. Yes, C++ is more prone to bugs like memory leaks, but the actual cleaning up of resources is not difficult, just remembering to do so. Instead, the real difficulty for C++ is learning the language and the Windows API, and OpenGL or DirectX. For Java, it's learning the huge Java library. When it comes down to it, I don't think one wins over the other unless you have some specific needs, in which case you should already understand that programming languages are just tools. Some are better than others for certain jobs. The end.

    EDIT: I almost forgot this. Java is of course very portable with the JVM, but I think speljohan mentioned OpenGL as a portable graphics library, and he's absolutely right. So what if you have to compile several copies? If you know what you're doing, then just use some preprocessor directives and make some other small OS-dependent changes. Of course, if you are just starting out, then forget Java and C++. Go learn Python.
     
  7. Zeh Progage

    Zeh Progage Guest

    Referrals:
    0
    C++ or Java???

    I'd much rather make it in C, myself, however, I'd say Java would do the job. Portable, Cross-Platform, Accessible from either a stand-alone application or browser-embedded applet; all the choices make my head spin.
    I'd say, if you really want to have fun, make it an OpenGL project in C and have fun looking around and altering the settings (how I first got interested in programming).
    But, for someone who has never programmed before, I'd say learn from scratch, get a good book/video tutorial (Google search for VTC C, C++, and Java video tutorials).
    C is versatile, itself, so it'd be best to learn it first to grow good habits; either that or Python.

    Have fun with whatever you do, in the end programming is programming, and, in my opinion, the best type of programmer can find a way to get the best in both worlds. Learn a little bit of everything and find what you're most comfortable in, then go from there.
     
  8. The Supreme Intelligence

    The Supreme Intelligence Apprentice
    Banned

    Joined:
    Apr 29, 2007
    Posts:
    738
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    I know that you are not going to make a game like runescape; just by asking that question. Game programming is very difficult. I think you are forgetting that you will need graphics. Which is a huge part of the job. And making it like runescape(somewhat 3d, even though you mentioned 2d) is not easy, at all.

    But to answer your question, I would go with Java for gaming...

    edit: dont listen to the idiots talking about learning HTML for game programming. wtf?
     
  9. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    C++ or Java???

    Game programming is indeed, very difficult. Jagex created RuneScape over a series of years. Though Java would be "easier" for what you're trying to make, you would still find it quite difficult. My best bet is that Andrew/Paul Gower had been programming in Java for many years before they even started to make RuneScape, so if you want to make something in this context then you're better off actually learning the thing first, programming second. Remembering to keep a balance in your life. There isn't much point living if all you're going to do is live for making this game. Andrew and Paul Gower for example, they started RuneScape as a project in their parents home I believe, but once it got popular, they started to hire people, and more and more staff, and now they have millions of subscribers, and they're millionairres.

    Keep a balance, but you'd have to have been learning a language for a couple of years at least before you start to tackle game programming - even when you consider RuneScape. Plus... Game programming is generally done in a team. Hence you'd be better off first joining a modding team for a game like Half-Life first, to get a little hands-on experience.

    Both languages suit what they're made for. Depending on what you wanted to do, you could make this sort of game in either of them - though C++ would be the - ah - "generic" choice. Meaning, most people would choose C++ for obvious reasons. Java is still good, though, just you couldn't fine-tune it anywhere near as much as in C/C++. Its really a hard decision. Seeing as you'll be wanting to learn something easy to start off with, I voted Java.

    I hope my extremely long reply that took 5 minutes to write really quickly with my mind running at 200kmph really helped you a little bit ;)

    and of course, this has been debated in short like 10 times already, I just want to feel like I've actually posted something useful ^_^
     
  10. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    You could always create a tile system in VB.net (2D). Then it wouldn't be hard to make a quite easy game.
     
  11. iJamie

    iJamie Forum Addict
    Banned

    Joined:
    Jul 22, 2007
    Posts:
    263
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    C++ is Best :]
     
  12. halo2fan

    halo2fan Active Member

    Joined:
    Jan 21, 2007
    Posts:
    219
    Referrals:
    1
    Sythe Gold:
    0
    C++ or Java???

    I suggest that you learn to spell, and then learn to program because it honestly sound like you know what the fuck ur talking about
     
  13. tomer2410

    tomer2410 Member
    Banned

    Joined:
    Oct 21, 2007
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    c++ runs a little better and smoother
     
  14. AntiFrost

    AntiFrost Forum Addict
    Banned

    Joined:
    Oct 12, 2007
    Posts:
    264
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    I vote c++, it's a very hard yet usefull language, I say it's one of the best!
     
  15. xenonium

    xenonium Guest

    Referrals:
    0
    C++ or Java???

    Runescape uses Java as you might know.
    So for a browser based game, Java definitely.
    Java can be embedded in browsers as an applet while running with less permissions.
     
  16. Core-Ruption

    Core-Ruption Guest

    Referrals:
    0
    C++ or Java???

    Okay so for a game like runescape 2D. you should probably learn JAVA I recently bought a book on it and it's very easy to get key concepts. plus C++ is going to be extremly difficult for someone without any coding EXP. And you also have to remember that even if you by some chance make a game that 1,000's of people would want to play you would need the following..

    1. Server's 10-20 $$$$$
    2. A moderating team 10-20 people $$$$$$
    3. A Dev team for updates! $$$$$$
    4. Webspace (Not free either) $$$$$$$
    5. Webdesign team (if you dont do yourself) $$$$$$$
    6. LOT'S and LOT's of time $$$$$$
    7. A security team to keep out hackers $$$$$$

    And the people saying you would need to learn HTML they're correct if your looking to do the website and Applet embedment yourself.

    I hope this is helpful!
     
  17. speedster239

    speedster239 Forum Addict
    Java Programmers

    Joined:
    Jan 21, 2007
    Posts:
    313
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    Its so funny how people try to sound like they know what they are talking about.

    Personally I'd go with Java if your completely new to programming but yet again if your new to programming I wouldn't even try to make a game for a long time. Your just going to end up failing ultimately because you were impatient.
     
  18. Varreon

    Varreon Member

    Joined:
    Nov 23, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    I disagree. C++ was my first programming language, and I learned it when I was just about 10. If you are willing to spend time on learning it, it will be no issue.

    Its been a while since I've used Java, but I believe it has built-in graphics functions, so that will probably help.
     
  19. Gigax

    Gigax Guest

    Referrals:
    0
    C++ or Java???

    C++ is the best ^^
    Java is way slower..
     
  20. Faskist

    Faskist Tuxhead
    Banned

    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0
    C++ or Java???

    You're not going to make shit anyway, but for what it's worth;

    Choice of language is irrelevant, it's the least of your troubles, since most commercial engines used in games like Half-life 2 implement their own scripting language to create levels etc.
     
< Want to make a bot with me? | Blackjack Program Scoring Help? >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site