Should I Learn C++ or Python?


Should I learn C++ or Python? C++ has the benefit of being one of the C
languages, which are used darn near everywhere. Objective C is used on the iOS hardware. That’s still a variation of C. Python gets used on a lot of web servers. That’s because it has tons of modules to
handle web hosting and it is free. C++ is called a low level language, but I’ve
heard it is really hard to learn. It is older, with a more complex syntax and
a lot of functions to learn. Newer languages tend to be designed to be streamlined. C++ code is considered more work to write. Then again, after three decades, there is
probably already a code module in a library somewhere for almost anything you want to
do. Python is more amenable to casual scripting.
Or you could use it embedded in a larger application, where it is simpler to use than C++. C++ tends to lead to accidental complexity
because it is so verbose. Then again, you can use it for an embedded hardware platform,
which Python can’t. That’s because C++ is better for controlling
the hardware of a machine like memory allocations, video card functions and CPU usage. Actually,
I think it is designed for that. That is something to be said for a language
where 90% plus say it is easy to shoot yourself in the foot. It is hard because it is literally
down in the weeds. Down in the routers and drivers and machine
piece parts. I don’t know if I can do that. Or you could opt to learn Cython. That’s
a C – Python hybrid. There’s hard, and then there is crazy. If you want to manage web servers, learn Python.
To write everything from drivers to OS to software for servers, learn C++.

47 thoughts on “Should I Learn C++ or Python?

  1. Whoops, turns out you can use Python to control hardware, and it is a very small minority of Python users that are using it for websites. I wonder if you've confused Python for Ruby in this entire video.

  2. Im doing python 1st so I have a background on what functions, loops, and more stuff is then I'm going to c++.  Is that a good idea, or should I just cut to the chase and learn c++?

  3. I say learn C++, only learn python if you really want to, I cant stand python forces indention rules.After you learn C++ learn an api that goes with it.If you chose to learn python, learn equivluant API to make cool programs with it. Forexample pygame or QT gui programing. People may disagree but I dont think learning python will help you learn C++ anybetter than me learning Qbasic helped me. If you want to learn the basic, Learn any varient of basic. Then pick the programming language you really want to learn. No language is better than the other for all task anyways. I would learn python if I had too, but its not my lamguage of choice.

  4. Python is a lot easier than c++ but I wouldn't recommend either as a first language. Go with Java.

    BTW, python isn't near as good as java or c++. If you think java is too hard and you need to use python to make code quickly, stop coding…..

  5. It's true that there are some python libraries which lets one scratch the surface of hardware. But, one can use ctypes (or C extension wrapper or Cython for that matter) alongwith inline asm to tweak python to control low level hardware and optimizing as per needs. But the problem is with cross language sync overhead. It doesn't let the program reach it's full potential. If your priority is performance, then C/C++ is the way to go. C/C++ surely has a steeper learning curve as compared to python, but if one learns it well, the maintenance time required reduces drastically. Not to mention GIMP, Boost and STLs to the rescue.

    The conclusion is simple. If you want it easy do python, else if you want performance do C/C++.

  6. You'll need to learn more than 1 language if you plan on programming anyway.
    C++ and Python can also work together.

    Python is easier to learn because of its easy syntax, so for begginers it may be best to start from here.
    C++ is much more complex, but while it makes it harder to understand at first, it also gives you more control on what your program does. And it is important to learn C oe C++ even if you do not plan on using them and rather program with Java/C# and others, because by learning them you learn the basics of programmation.

  7. You'll need to learn more than 1 language if you plan on programming anyway.
    C++ and Python can also work together.

    Python is easier to learn because of its easy syntax, so for begginers it may be best to start from here.
    C++ is much more complex, but while it makes it harder to understand at first, it also gives you more control on what your program does. And it is important to learn C oe C++ even if you do not plan on using them and rather program with Java/C# and others, because by learning them you learn the basics of programmation.

  8. Nowadays Python is used in data science fields only. For web servers you can learn functional programming like clojure,elm which is easier way to program than python.

  9. Python is not used for websites. Python is used to write full fledged programs including a GUI; Such as the ATM program that I have that uses a Python API to integrate SQL to create data persistence for customers. Among many other things.

  10. Superior point of C++ compare to C is "Reference".(I think)
    Reference is amazing.
    C has pointer only.
    C++ has pointer and reference.
    C++ win~!!

  11. with C/C++, I can do either Procedural way or Object oriented way…
    OOP is perfect to handle data-base while procedural way is perfect for "Algorithm".
    (although C++ is not used in back-end, OOP is perfect match with data-base.)

Leave a Reply

Your email address will not be published. Required fields are marked *