Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: Should I learn Python or C++ as first programming language?

  1. #21
    Join Date
    Aug 2009
    Beans
    193

    Re: Should I learn Python or C++ as first programming language?

    Quote Originally Posted by nvteighen View Post
    Nice to know your decision. And I also think it's the right one: Python is a dynamic language with a very clean set of built-in features that makes it quite ideal to learn the basics of programming.

    But, if you're going to be serious about programming, never forget that you'll have to learn other languages in the future. Don't you ever think that just knowing Python will be enough! (And IMO, that's a great thing: there's so much to learn! ).
    Yes, I'll won't forget, and I'll keep it as a hobby! Hopefully I can contribute something useful to the relatively small collection of linux software available today.
    I'm a newbie... all help appreciated.

  2. #22
    Join Date
    Aug 2006
    Location
    60°27'48"N 24°48'18"E
    Beans
    3,458

    Re: Should I learn Python or C++ as first programming language?

    This is a very old topic, but let's reiterate..

    Python, certainly. It teaches many (most?) of the major programming patterns/paradigms in the same compactly designed language that has a very comfortable learning curve. After Python the beginner already has a very broad-based mindset... a toolkit for all kinds of programmatic solutions.

    C++ on the other hand forces a much slower learning process with a more limited set of ideas as the end product.

    Speed of native-compiled code is overrated. It's the abstract structure of the problem and thus the structure of the program that describes it that a programmer needs to develop understanding on. I've seen enough C++/Java-types have their mind blown by Lispish languages that I'm pretty confident in stating which way the more beneficial learning direction goes (I was one of these folks, mind you - there is a lot to "unlearn" after static-typed imperative programming becomes too ingrained).
    LambdaGrok. | #ubuntu-programming on FreeNode

  3. #23
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Should I learn Python or C++ as first programming language?

    Python all the way. It's enjoyable from the start and you are amazed how simple is to do cool things in it, even as a noob. C++ on the other hand is rather unforgiving for beginners and you have to assimilate a lot of knowledge to do anything in it. In general it's risky to start programming adventure with C/C++, especially when you are not a stereotypical introverted nerdy geek type, because you can get discouraged easily and think that programming is not for normal people . Good mood makes learning anything a breeze.

  4. #24
    Join Date
    Sep 2010
    Beans
    62

    Re: Should I learn Python or C++ as first programming language?

    Quote Originally Posted by tuahaa View Post
    Thanks for replies everyone.

    I tried Python and found a very comprehensive and noob friendly tutorial and it's great! It's much easier than C++!

    I'd like to dedicate some time to this on the weekends.
    Learn Ruby

  5. #25
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Should I learn Python or C++ as first programming language?

    Awesome, yet another language flamewar.

    1. C++ has a standard, Python doesn't. Python's "standard" is whatever CPython does.
    2. C is faster than C++. Templates slow down C++ and add to the code.
    3. Python's OpenGL library calls glError() after ever OpenGL call (not sure if this is the case with OpenGL 3.0+) which is a no-no according to the red book as it is a major slowdown (50% of C speed, where as without those calls you can do 99%).
    4. Python 3 breaking backwards compatibility with Python 2.x is irrelevant.
    5. Python is still strongly typed.
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  6. #26
    Join Date
    Jan 2008
    Beans
    1,532

    Re: Should I learn Python or C++ as first programming language?

    Quote Originally Posted by slavik View Post
    2. C is faster than C++. Templates slow down C++ and add to the code.
    The only things templates slow down is the compilation process. They are implemented very quickly as they are fully resolved at compile time. Things that slow down C++ are polymorphism (due to vtable lookups) and exception handling (due to stack unwinds).

    Quote Originally Posted by slavik View Post
    3. Python's OpenGL library calls glError() after ever OpenGL call (not sure if this is the case with OpenGL 3.0+) which is a no-no according to the red book as it is a major slowdown (50% of C speed, where as without those calls you can do 99%).
    I haven't used that library, but that sucks. Hopefully they can resolve that.

  7. #27
    Join Date
    May 2009
    Beans
    522

    Re: Should I learn Python or C++ as first programming language?

    Quote Originally Posted by slavik View Post
    Awesome, yet another language flamewar.

    1. C++ has a standard, Python doesn't. Python's "standard" is whatever CPython does.
    Currently, that's my least favorite thing about Python. I feel it is a true weakness/barrier the adoption of the the language.

    I know of several professors at my school that won't use or teach python b/c of the 2.X to 3.0 transition.

  8. #28
    Join Date
    Oct 2010
    Beans
    58
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Should I learn Python or C++ as first programming language?

    Learn Python as it is easy..
    For games see this www.ogre3d.org.

  9. #29
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Should I learn Python or C++ as first programming language?

    Quote Originally Posted by slavik View Post
    Awesome, yet another language flamewar.

    1. C++ has a standard, Python doesn't. Python's "standard" is whatever CPython does.
    2. C is faster than C++. Templates slow down C++ and add to the code.
    3. Python's OpenGL library calls glError() after ever OpenGL call (not sure if this is the case with OpenGL 3.0+) which is a no-no according to the red book as it is a major slowdown (50% of C speed, where as without those calls you can do 99%).
    4. Python 3 breaking backwards compatibility with Python 2.x is irrelevant.
    5. Python is still strongly typed.
    IDK, it didn't look like it had quite become a "flame war"... yet

    Incidentally, when used properly, templates can serve to gain major improvement of run time performance over traditional algorithmic coding:

    Templates allow the compiler to optimize out all the compile time constant conditions and generate inline code that exactly matches the requirements in each situation instead of having to test them all at run time. It makes a huge difference when used inside tight loops, such as manipulating images at the pixel level like one might need to do in games.
    Last edited by worksofcraft; February 1st, 2011 at 09:44 PM.
    Take nothing but photographs. Leave nothing but footprints.

  10. #30
    Join Date
    Aug 2005
    Beans
    29

    Re: Should I learn Python or C++ as first programming language?

    I am pretty much in the same shoes as the thread-starter, but I wonder if Genie / Vala would be a perfect fit?
    Program syntax that is similar to python and speed like C, or am I wrong?
    I also like that you compile it so no installation is required, just a any C program.

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

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