Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 54

Thread: The great battle. Java VS C++

  1. #26
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    By the way, more topics like this should happen. Brilliant discussion topic, really.

    I see absolutely NO situation where Java should ever be used over another language (e.g., C++), except if your purpose is very specifically aimed toward a Java game (RS), and even then, I wouldn't use Java still.

    Also, C# is fine I suppose. I have nothing much against it, other than that Microsoft tries to make everyone use a lame Windows compiler and lame libraries. It is a pretty general purpose language though, which is nice (I've used it for wp7-related development and also just general computing stuff).

    C++ > C, also.

  2. #27
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    IMHO, C# for frontend code, C++ for backend code.

    C# gives you WPF, Windows Forms, GTK, and more, while C++ gives you lots of flexibility for optimization.

    C is good to know, especially if you want to work with embedded systems some day.
    Interested in C# and Electrical Engineering? This might interest you.

  3. #28
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    IMHO, C# for frontend code, C++ for backend code.

    C# gives you WPF, Windows Forms, GTK, and more, while C++ gives you lots of flexibility for optimization.

    C is good to know, especially if you want to work with embedded systems some day.
    Uh. You're once again only talking about Windows. C# is not an option on other platforms than Microsoft Windows™©. Mono just sucks. Aside from it being heavily patent encumbered and Microsoft being able to terminate support for it on platforms at any time, it simple doesn't offer any serious advantage over other languages. If you want to write proper GUI's, why not use Qt? Python and C++ both have very good Qt bindings. I don't see why you'd want to do that with .NET.

    I don't think boberman visits the forums these days, but for future reference: I find man pages to be more than satisfying. I used them to write the Simba Linux base, no problems there. On the other hand, I could hardly make sense of the Microsoft documentation, but perhaps that's just because the Win32 API is one of the worst and widely used API's in existence. It has grown so old and it is so encumbered with compatibility... At least GNU/Linux dares to break compatibility.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  4. #29
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    The gravedig was worth it, I love this topic.

    I use C# instead of Java for applications that require a lot of GUI development, I have no problems with the cross platform issue because I have Windows Other than that, I use Java.

    C is great though, if you learn C then you can use that knowledge and have a good grasp on most programming languages used today.

  5. #30
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    If I get some input on this in this thread I'll start another - what do people use to make the aesthetic kind of GUIs? I know you can use regions etc, but I'm pretty sure they use some sort of a 3rd party tool? (Highly doubt it's just a crapton of photoshop and mouse events)

    Now with this I mean stuff like the steam interface and similar, "official" stuff...
    Last edited by n3ss3s; 04-18-2011 at 09:30 PM.

  6. #31
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Uh. You're once again only talking about Windows. C# is not an option on other platforms than Microsoft Windows™©. Mono just sucks. Aside from it being heavily patent encumbered and Microsoft being able to terminate support for it on platforms at any time, it simple doesn't offer any serious advantage over other languages. If you want to write proper GUI's, why not use Qt? Python and C++ both have very good Qt bindings. I don't see why you'd want to do that with .NET.
    If you code the backend in C++, there's nothing to stop you from writing a frontend for windows in C# and a separate linux frontend in Qt/GTK/other.

    Best of both worlds.
    Interested in C# and Electrical Engineering? This might interest you.

  7. #32
    Join Date
    Dec 2008
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol at my younger self.

  8. #33
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by Craig` View Post
    lol at my younger self.
    go on..

  9. #34
    Join Date
    Aug 2007
    Location
    Where do you live?
    Posts
    934
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Any info on "Processing"(.org)? One of my buddies is playing around with it and is asking for my help, is it even worth it to learn "Processing"?

    -This is the only thread where it's mentioned...

  10. #35
    Join Date
    Apr 2011
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think its silly to compare the two. People have a tendency to try and compare programing languages when really, they have different uses. Would I write a website with c++ and cgi? Hell no, that is the job of PHP, PHP is meant to do web site back end tasks and be used as a templating engine. Its a case of apples and oranges.

    But people will endlessly beat the horse
    Working on a Watchmen pickpocket-er, hope to get 80kxp / hour.

  11. #36
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Quote Originally Posted by Nose Smasher View Post
    Any info on "Processing"(.org)? One of my buddies is playing around with it and is asking for my help, is it even worth it to learn "Processing"?

    -This is the only thread where it's mentioned...
    It's worth learning if you're going to use it for something that it's meant to do
    Hup Holland Hup!

  12. #37
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Nose Smasher View Post
    Any info on "Processing"(.org)? One of my buddies is playing around with it and is asking for my help, is it even worth it to learn "Processing"?

    -This is the only thread where it's mentioned...
    I am doing a project where I have to use micro-controllers and the language you upload to the micro-controller is written in processing. It eventually gets translated into C and compiles with the gcc compiler, then uploaded to the micro-controller.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  13. #38
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Nose Smasher View Post
    Any info on "Processing"(.org)? One of my buddies is playing around with it and is asking for my help, is it even worth it to learn "Processing"?

    -This is the only thread where it's mentioned...
    We used it at the university for some classes, but we've since dropped it for Python.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  14. #39
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by theheretic View Post
    I think its silly to compare the two. People have a tendency to try and compare programing languages when really, they have different uses. Would I write a website with c++ and cgi? Hell no, that is the job of PHP, PHP is meant to do web site back end tasks and be used as a templating engine. Its a case of apples and oranges.

    But people will endlessly beat the horse
    Well comparing PHP to some languages can be a bit silly, but C++ and Java are in a similar boat, kinda.

  15. #40
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    Well comparing PHP to some languages can be a bit silly, but C++ and Java are in a similar boat, kinda.
    For me they aren't. In my personal experience, don't have any evidence nor benchmarks, Java is slower as C++. Also Java feels a bit limited. But if development speed was important, I would chose Java over C++. If time is not the problem but performance is, I would go for C++. I know this isn't true for all cases, but for a lot it is.

    So I've used Java for different programs, mostly with a lot of text and interactive environments.

    And I use C++ for games and programs with a need of power.

  16. #41
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Well C++ can be faster than just about any language, so that's an argument that C++ wins every time.

    Java is an awful language, in my opinion. Also nowhere near as general purpose than C++.

    And I never said that they were the same, but they do have similar uses.

  17. #42
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    /me consoles Java.

    It's ok, I will always love you
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  18. #43
    Join Date
    Jun 2009
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Iamadam View Post
    /me consoles Java.

    It's ok, I will always love you
    Java is the only thing I want to program in... oh the joy

  19. #44
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by LolL View Post
    Java is the only thing I want to program in... oh the joy
    Well that wasn't too prescriptive. Why would you want to program in Java? Or use it?

  20. #45
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

  21. #46
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    For the reasons I've said.

    The syntax is fine really, but it runs horrendously. I can't put up with the JVM anymore. It's just so slow and is quite the resource hog. Also, it has awful memory management, or everyone is just taught terribly, because it's quite atrocious, in my opinion.

  22. #47
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Why I don't use java: I like unsigned value types.

    Quote Originally Posted by HyperSecret View Post
    I am doing a project where I have to use micro-controllers and the language you upload to the micro-controller is written in processing. It eventually gets translated into C and compiles with the gcc compiler, then uploaded to the micro-controller.
    Why not just code in C? Out of curiosity, what micro are you using?
    Interested in C# and Electrical Engineering? This might interest you.

  23. #48
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    Why I don't use java: I like unsigned value types.
    I completely agree with this as well.

  24. #49
    Join Date
    Aug 2008
    Location
    England
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    C# all the way.
    Real men program in brainfuck though, so >++++++++++[>++++++++++>++++++++++>++++++++++++>++++++++++>+++ >++++++++++>+++>++++++++++>++++++++++>+++++++++++> +++++++++++>++++++++++++>+++>++++++++++>++++++++++ >++++++++++++>++++++++++++>++++++++++>+++++++++++> +++><<<<<<<<<<<<<<<<<<<<<-]>++++>--->-->+>++>--->++>++++>--->++>++>+>++>+>--->----->---->+>++++>+++><<<<<<<<<<<<<<<<<<<<<>.>.>.>.>.>.>.>.> .>.>.>.>.>.>.>.>.>.>.>.

    -- >++++++++++[>+++++++>++++++++><<<-]>---->><<<>.>.

  25. #50
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Why C#? :/ It's not very useful if you just say "Language X is better than language Y."

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Battle of the Scripts
    By FrÕzÑ_§ÕµL in forum News and General
    Replies: 73
    Last Post: 04-04-2008, 02:30 PM
  2. Battle of the Scipts v.2
    By king vash in forum News and General
    Replies: 1
    Last Post: 03-29-2008, 06:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •