CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: C++ Or Java?

  1. #1
    Join Date
    Feb 2009
    Location
    Florida
    Posts
    23

    C++ Or Java?

    My friend just recently gave me some video lectures on Java, that seem great.
    I have some books on C++, but I was trying to figure out if I should learn Java before C++, taking I have these video lectures?

    What do you guys think?


    Edit: Would you suggest I learn something else before these two?
    I plan on learning C++ Ultimately, but its hard for me to understand, so my friend suggested I learn Java first, to get used to programming, so he gave me these video lectures.

    Any input is appreciated, thanks.
    Last edited by Tenenbaum; February 17th, 2009 at 11:49 AM.

  2. #2
    Join Date
    Jan 2009
    Location
    Vienna - Austria
    Posts
    28

    Re: C++ Or Java?

    2 Points:

    1. Learning Java for sure is easier than learning C++, because C++ lets you do a lot of ugly things, that would be impossible in Java for safety reasons.
    The point is though, that once you are able to program in Java, this does not imply that you can program in C++.
    The other way round though, so learning Java while you are good at C++ already, will for sure not be difficult since you already know more about programming, than "Necessary" for Java

    Simply said: Java is learned faster but if ouy plan to learn both maybe better start with C++.

    2. If you plan to learn just one Programming Language for a strat... then it very much depends on what you plan to do with it. Will you need Speed or Flexibility?

  3. #3
    Join Date
    Feb 2009
    Location
    Florida
    Posts
    23

    Re: C++ Or Java?

    Quote Originally Posted by DerShodan View Post
    2 Points:

    1. Learning Java for sure is easier than learning C++, because C++ lets you do a lot of ugly things, that would be impossible in Java for safety reasons.
    The point is though, that once you are able to program in Java, this does not imply that you can program in C++.
    The other way round though, so learning Java while you are good at C++ already, will for sure not be difficult since you already know more about programming, than "Necessary" for Java

    Simply said: Java is learned faster but if ouy plan to learn both maybe better start with C++.

    2. If you plan to learn just one Programming Language for a strat... then it very much depends on what you plan to do with it. Will you need Speed or Flexibility?

    Honestly, I'm not totally sure what I want to do with programming, though I do enjoy it, (So far).
    I love computers and hardware, and honestly love sitting here on the computer all day.

    Though, I'd like to learn everything I can get my hands on, in whichever order is best, and easiest.
    Ultimately programming games or software is a goal, but possibly other things to, so, it could be anything.
    Just trying to get my foot in the door really. (C++ is difficult for me to understand, thats why I am here)

    Thanks.

  4. #4
    Join Date
    Nov 2003
    Posts
    1,405

    Re: C++ Or Java?

    Quote Originally Posted by Tenenbaum View Post
    Just trying to get my foot in the door really.
    Note that the language you're using to write a program is just part of the programming process. Programming is so much more so my best advice is that you aim for a university degree in Computer Science and Engineering or something related. In this way you get a good grounding in math and science in general and how to develop programs in different languages in particular.

    So if you feel like the proverbial donkey choosing between C++ and Java, break free and pick a M.Sc degree.

  5. #5
    Join Date
    Feb 2009
    Location
    Florida
    Posts
    23

    Re: C++ Or Java?

    Quote Originally Posted by _uj View Post
    Note that the language you're using to write a program is just part of the programming process. Programming is so much more so my best advice is that you aim for a university degree in Computer Science and Engineering or something related. In this way you get a good grounding in math and science in general and how to develop programs in different languages in particular.

    So if you feel like the proverbial donkey choosing between C++ and Java, break free and pick a M.Sc degree.
    Don't have the money for a university, or any type of college at the moment.

  6. #6
    Join Date
    Nov 2003
    Posts
    1,405

    Re: C++ Or Java?

    Quote Originally Posted by Tenenbaum View Post
    Don't have the money for a university, or any type of college at the moment.
    So how old are you and what's your background?

    I mean you need to offer up some personal data to get proper advice.

  7. #7
    Join Date
    Feb 2009
    Location
    Florida
    Posts
    23

    Re: C++ Or Java?

    18 in 3 days, Unemployed, Looking for a job, trying to learn coding.

    I've decided I'll most likely go back to the beginning and learn Scheme and watch these SICP lectures.
    Someone else suggested that, and it seems best, because I have no programming experience, and I'm like a lost puppy, I really don't know where to start.

  8. #8
    Join Date
    Feb 2009
    Posts
    2

    Re: C++ Or Java?

    I don't see how personal info will help make a decision. I'd say get both programs and write a small program.

    Hello World type programs. Then see which you liked more and just continue with that one.

    I did that years ago and ended up liking c++


  9. #9
    Join Date
    Jan 2008
    Location
    California, USA
    Posts
    822

    Re: C++ Or Java?

    Quote Originally Posted by Kryles View Post
    I don't see how personal info will help make a decision. I'd say get both programs and write a small program.

    Hello World type programs. Then see which you liked more and just continue with that one.

    I did that years ago and ended up liking c++

    I think that's a sound advnice

    @Tenenbaum:
    Hi, aren't you the one who worried so much about whether to get a new c++ book or go with the one you already had? If so, what did you decide to do? hehe kind of curious
    I'd say don't beat yourself over it, let it go and take it as it comes.
    And don't think that you don't have the determination because you're swinging over left and right. It's natural.

  10. #10
    Join Date
    Nov 2003
    Posts
    1,405

    Re: C++ Or Java?

    Quote Originally Posted by Tenenbaum View Post
    18 in 3 days, Unemployed, Looking for a job, trying to learn coding.

    I've decided I'll most likely go back to the beginning and learn Scheme and watch these SICP lectures.
    Someone else suggested that, and it seems best, because I have no programming experience, and I'm like a lost puppy, I really don't know where to start.
    In that case I suggest you pick Java. To get some structure in you learning effort I suggest you aim for the SCJP (Sun Certified Java Programmer) exam. In your situation it would give you an edge. Maybe you could take a course at some community college or study with a friend or something.

    But note that nothing beats a formal education. You're much more likely to do well in work life with a college education. This is also true for careers in computing.
    Last edited by _uj; February 21st, 2009 at 01:45 PM.

  11. #11
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    Re: C++ Or Java?

    I suspect that learning Scheme with SICP would be better grounding in programming than learning Java with the aim to get SCJP. On the other hand, I am also of the opinion that in the long run it does not matter either way, since you should be getting exposure to a wide variety of programming paradigms anyway, so the practical aspect of getting SCJP certification with job prospects probably trumps any kind of "better grounding" argument.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  12. #12
    Join Date
    Nov 2003
    Posts
    1,405

    Re: C++ Or Java?

    Quote Originally Posted by laserlight View Post
    I suspect that learning Scheme with SICP would be better grounding in programming than learning Java with the aim to get SCJP. On the other hand, I am also of the opinion that in the long run it does not matter either way, since you should be getting exposure to a wide variety of programming paradigms anyway, so the practical aspect of getting SCJP certification with job prospects probably trumps any kind of "better grounding" argument.
    That's why I suggested Java with SCJP. If you learn Java to the level of the SCJP you have a good enougth grounding in computing and an "exam" with some credit to show an employer.

    Reading SICP and learning Scheme is a sidetrack for someone in the OP's position. It's perfectly fine as an introductory course in a 5 year Computer Science program, but for self-study with the aim of landing a programming job with reasonably high probability in the near future, it's utterly useless.

    If the OP prefers C++ I suggest he works through Programming, Principles and Practices using C++ by Bjarne Strustrup from cover to cover. But he should know that the Java/SCJP combination is worth 10 times, maybe even 100 times, as much in the job market.

    An alternative to the Java/SCJP combination would be C# with some relevant Microsoft certification. In my view, the only way forward for the OP, is to pick either Java or C# and go for a Sun or Microsoft certification.

  13. #13
    Join Date
    Aug 2007
    Posts
    858

    Re: C++ Or Java?

    In my view, the only way forward for the OP, is to pick either Java or C# and go for a Sun or Microsoft certification.
    You're riding the assumption that the OP wants to pursue a career in CS immediately. That may not necessarily be the case. The only concrete statement I can see that he's made about his goals or desires is that he's kinda interested in creating games, and for that he will almost definitely want to know C++.

  14. #14
    Join Date
    Jan 2008
    Location
    California, USA
    Posts
    822

    Re: C++ Or Java?

    Quote Originally Posted by _uj View Post
    That's why I suggested Java with SCJP. If you learn Java to the level of the SCJP you have a good enougth grounding in computing and an "exam" with some credit to show an employer.

    Reading SICP and learning Scheme is a sidetrack for someone in the OP's position. It's perfectly fine as an introductory course in a 5 year Computer Science program, but for self-study with the aim of landing a programming job with reasonably high probability in the near future, it's utterly useless.

    If the OP prefers C++ I suggest he works through Programming, Principles and Practices using C++ by Bjarne Strustrup from cover to cover. But he should know that the Java/SCJP combination is worth 10 times, maybe even 100 times, as much in the job market.

    An alternative to the Java/SCJP combination would be C# with some relevant Microsoft certification. In my view, the only way forward for the OP, is to pick either Java or C# and go for a Sun or Microsoft certification.
    Hello _uj, how are you?

    Hm, does that mean job market is way bigger for Java/SCJP than with C++?
    That worries me...

    And um, how hard is it to get SCJP?

    Thanks!

  15. #15
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: C++ Or Java?

    Quote Originally Posted by potatoCode View Post
    Hm, does that mean job market is way bigger for Java/SCJP than with C++?
    It all depends on which area of programming interests you the most. Some areas are almost all Java/C#, in other areas they don't get much of a look in.
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

Page 1 of 2 12 LastLast

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured