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.
C++ or Java???
  1. Unread #21 - Aug 7, 2007 at 5:29 PM
  2. kombo
    Joined:
    Jul 31, 2007
    Posts:
    329
    Referrals:
    0
    Sythe Gold:
    0

    kombo Forum Addict
    Banned

    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
     
  3. Unread #22 - Aug 7, 2007 at 5:34 PM
  4. WinterDreamZ3
    Joined:
    Feb 22, 2007
    Posts:
    1,024
    Referrals:
    0
    Sythe Gold:
    0

    WinterDreamZ3 Guru
    Banned

    C++ or Java???

    At school we learn

    First - PHP and VB
    Second - PHP, VB.net and C++
    Third - Java
     
  5. Unread #23 - Aug 8, 2007 at 12:45 AM
  6. SpankyD
    Referrals:
    0

    SpankyD Guest

    C++ or Java???

    yea html then java
     
  7. Unread #24 - Aug 8, 2007 at 2:23 AM
  8. mr.gibblet
    Joined:
    Jun 29, 2007
    Posts:
    454
    Referrals:
    0
    Sythe Gold:
    0

    mr.gibblet Forum Addict
    Do Not Trade

    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 =]
     
  9. Unread #25 - Aug 8, 2007 at 8:17 AM
  10. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    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
     
  11. Unread #26 - Aug 12, 2007 at 11:08 AM
  12. Zyloch
    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Zyloch Member

    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.
     
  13. Unread #27 - Aug 13, 2007 at 3:36 AM
  14. Zeh Progage
    Referrals:
    0

    Zeh Progage Guest

    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.
     
  15. Unread #28 - Sep 15, 2007 at 8:42 AM
  16. The Supreme Intelligence
    Joined:
    Apr 29, 2007
    Posts:
    738
    Referrals:
    0
    Sythe Gold:
    0

    The Supreme Intelligence Apprentice
    Banned

    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?
     
  17. Unread #29 - Sep 16, 2007 at 5:03 AM
  18. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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 ^_^
     
  19. Unread #30 - Sep 21, 2007 at 1:47 PM
  20. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    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.
     
  21. Unread #31 - Oct 3, 2007 at 4:39 PM
  22. iJamie
    Joined:
    Jul 22, 2007
    Posts:
    263
    Referrals:
    0
    Sythe Gold:
    0

    iJamie Forum Addict
    Banned

    C++ or Java???

    C++ is Best :]
     
  23. Unread #32 - Oct 5, 2007 at 12:40 AM
  24. halo2fan
    Joined:
    Jan 21, 2007
    Posts:
    219
    Referrals:
    1
    Sythe Gold:
    0

    halo2fan Active Member

    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
     
  25. Unread #33 - Oct 27, 2007 at 12:02 AM
  26. tomer2410
    Joined:
    Oct 21, 2007
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    tomer2410 Member
    Banned

    C++ or Java???

    c++ runs a little better and smoother
     
  27. Unread #34 - Nov 6, 2007 at 2:36 AM
  28. AntiFrost
    Joined:
    Oct 12, 2007
    Posts:
    264
    Referrals:
    0
    Sythe Gold:
    0

    AntiFrost Forum Addict
    Banned

    C++ or Java???

    I vote c++, it's a very hard yet usefull language, I say it's one of the best!
     
  29. Unread #35 - Nov 13, 2007 at 9:37 AM
  30. xenonium
    Referrals:
    0

    xenonium Guest

    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.
     
  31. Unread #36 - Nov 13, 2007 at 1:49 PM
  32. Core-Ruption
    Referrals:
    0

    Core-Ruption Guest

    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!
     
  33. Unread #37 - Nov 16, 2007 at 6:35 PM
  34. speedster239
    Joined:
    Jan 21, 2007
    Posts:
    313
    Referrals:
    0
    Sythe Gold:
    0

    speedster239 Forum Addict
    Java Programmers

    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.
     
  35. Unread #38 - Dec 21, 2007 at 9:54 PM
  36. Varreon
    Joined:
    Nov 23, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0

    Varreon Member

    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.
     
  37. Unread #39 - Dec 22, 2007 at 3:51 AM
  38. Gigax
    Referrals:
    0

    Gigax Guest

    C++ or Java???

    C++ is the best ^^
    Java is way slower..
     
  39. Unread #40 - Dec 22, 2007 at 10:42 PM
  40. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    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? >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site