1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

java or c++ for a relative beginner

Discussion in 'General Programming Chat' started by welly_59, Jan 18, 2012.

  1. welly_59

    welly_59 Power Member

    Joined:
    Aug 30, 2011
    Messages:
    698
    Likes Received:
    254
    im just wondering what language you would choose for a relative beginner to learn?

    i have some experience and am not a kid(30!) and am willing to put the time in.

    Ive been looking at getting a bot commissioned lately and a lot of people who saying they could do it in jave for me, thats why i am considering java
     
  2. Gary Becks

    Gary Becks Power Member

    Joined:
    Apr 11, 2010
    Messages:
    675
    Likes Received:
    282
    Location:
    Atl
    Home Page:
    Java would be a lot easier to come to grips with.
     
  3. welly_59

    welly_59 Power Member

    Joined:
    Aug 30, 2011
    Messages:
    698
    Likes Received:
    254
    Are there any recommended books or online courses in java?
     
  4. DutchTrafficService

    DutchTrafficService Regular Member

    Joined:
    Aug 12, 2010
    Messages:
    473
    Likes Received:
    234
    None.

    C# for bot coding, if you can code java, switching to C# will be a joke anyway.

    chilkat libs for easymode socket based stuff and watin for browser based stuff.
     
  5. woot123

    woot123 Junior Member

    Joined:
    Jan 10, 2012
    Messages:
    113
    Likes Received:
    27
    A book I can recommend you is Java Heads First published by O'Reilly. It´s a easy read and it will seem a bit unserious at first(lot of pictures and different fonts), but this makes it really easy to remember a lot. If you go for C# there´s C# Heads First, didn´t read this yet, but probably will be as good as the Java one ;)
     
    • Thanks Thanks x 2
  6. welly_59

    welly_59 Power Member

    Joined:
    Aug 30, 2011
    Messages:
    698
    Likes Received:
    254
    ive got a pdf of heads first java on your reccomendations! currently working through chapter 1 and it seems pretty good resource so far. thanks
     
  7. woot123

    woot123 Junior Member

    Joined:
    Jan 10, 2012
    Messages:
    113
    Likes Received:
    27
    Great :) You should do some exercises too, so you don´t have theoretical knowledge only. You could also check out this online course:
    Code:
    hxxp://chortle.ccsu.edu/java5/index.html
    It comes in in chapters and after each chapter you get some exercises to do, which will give you some practical skills ;)
     
    • Thanks Thanks x 1
  8. hiderightnow

    hiderightnow Junior Member

    Joined:
    Jul 19, 2010
    Messages:
    104
    Likes Received:
    22
    When you finish the book that was recommended to you earlier, you might want to take a look at "HTTP Programming recipes for Java bots" and go with that afterwards.
     
  9. c0ntenth|ef

    c0ntenth|ef Power Member

    Joined:
    May 20, 2009
    Messages:
    788
    Likes Received:
    118
    Location:
    california
    play with both and see which one you are more comfortable with.
     
  10. goodbuyer

    goodbuyer Junior Member

    Joined:
    Aug 13, 2010
    Messages:
    118
    Likes Received:
    18
    FIrst choose OS Linux or Widnows, Then Learn About Eclipse IDE, learn to install it and configure it with java .

    Then start Learning Java. Books Are Great But I would recommend something with examples, Learn By Example first so you can start doing Things quickly. Then before you fall into the old way of doing things realize that today, everything is worked around frameworks (Libraries with premade solutions) Learn Some of the Major Frameworks Nowadays, Maybe String, Jboss or any other.
     
  11. LakeForest

    LakeForest Supreme Member

    Joined:
    Nov 11, 2009
    Messages:
    1,269
    Likes Received:
    1,802
    Location:
    Location Location
    o_O Java to START?

    You guys are sado-masochists

    If you're just starting out, play with javaSCRIPT, or a macro; something that doesn't need to get compiled.

    Then play with php and learn about call and get commands and understand server-client relationships and extrapolate that idea to the idea of a compiler.

    Once things are clicking, transition to Java if you want to make applications that are easier to push cross OS platforms. If you want to make a nice windows app, C# is the way to go ("easier" than C++)
     
  12. s0ap

    s0ap Executive VIP Jr. VIP Premium Member

    Joined:
    Sep 23, 2008
    Messages:
    230
    Likes Received:
    810
    Occupation:
    :] guess
    Location:
    Congo/DRC
    You are going to get a variety of responses, there really isn't a correct answer. C++ will generally give you much faster code at the end of the day, but if you are willing to trade control and speed for ease of access C# would probably be better than Java.

    Generally speaking when selecting a programming language you are picking where you want to be on the control (speed) vs ease of use spectrum.
     
  13. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,935
    Occupation:
    Design director
    Location:
    Paris (France)
    The great advantage of Java it's that it's natively cross-platforms.
    Of course there are alternatives for cross-platforms development with other languages.

    I recommend to learn Delphi.
    It's a really powerful language, with a nice evolution, with a huge community around the web, with a lot of third-part components, ...
    Delphi EXE are built with his internal Framework, so you'll not need to have thousands of DLLs files next to the EXE (as in the case of C#/.NET).

    Here are some examples of applications built with Delphi : ScrapeBox, XRumer, Hrefer, Skype, Delphi himself, C++Builder himself.

    But if your choice is between Java or C++, so I would say choose C++.
    By learning C++ you'll have good knowledge to come closer of C (to build iOS applications for example).

    Beny
     
  14. webninja

    webninja Newbie

    Joined:
    Dec 22, 2008
    Messages:
    2
    Likes Received:
    0
    definitely Java (especially for web-related tasks)
     
  15. goodbuyer

    goodbuyer Junior Member

    Joined:
    Aug 13, 2010
    Messages:
    118
    Likes Received:
    18
    The learning curve with c++ will be awful, but that is real programming, you will need to learn much more. I recommended you Java, for two reasons, a lot of really complicated like memory allocations and other usefull low level stuff won't be bothering you. Work related to java will pay better in general at least in my country.

    But I agree, to really start from ground zero go for script languages, PHP, Python, or Perl.

    Also I can say Delphi is a good language, similar to pascal, but this is totally Windows Oriented, at least when I use to program with it.
     
  16. Vibrance

    Vibrance Junior Member

    Joined:
    Jul 6, 2011
    Messages:
    129
    Likes Received:
    2,117
    Make sure to read either or both of the following books (They are also FREE and available online, just google them)

    Thinking in Java
    Thinking in C++

    While there is alot of text and not a huge amount of code samples, it gets you doing things correctly right from the start, and has some excellent knowledge of OOP.

    Highly Recommended
     
  17. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,935
    Occupation:
    Design director
    Location:
    Paris (France)
    With Lazarus or the new Firemonkey, you can compile your applications for Mac OS X.

    Beny
     
  18. aandcmedia

    aandcmedia Junior Member

    Joined:
    Jun 1, 2011
    Messages:
    116
    Likes Received:
    41
    Home Page:
    Java because switching between C#/VB.net are easy as pie.
     
  19. indusharma

    indusharma Newbie

    Joined:
    Mar 1, 2012
    Messages:
    41
    Likes Received:
    1
    Location:
    Ludhiana, Punjab
    Home Page:
    I also want to suggest you java.
     
  20. zohail

    zohail Newbie

    Joined:
    Dec 20, 2011
    Messages:
    49
    Likes Received:
    6
    Occupation:
    Freelancer
    Location:
    New York
    Do not stuck yourself with the ideas of getting a books or tutorials to learn. Start practicing on need-to-try basis i.e. first think what you want to learn and then search on internet and books, it will not only give you practice but it will give experience of real time programing. Hope this will help you.