+ 12

Python or C++

What is best to make programm?

10th Aug 2018, 6:13 AM
Ilhom Inomboev
Ilhom Inomboev - avatar
41 ответ
+ 11
The answer to this greatly depends upon your application. Both are great programming languages. Here comes the trade off. C/C++ are very close to the assembly languages and hence the execution is 122x faster than high level languages like python or java. Python is indeed sometimes convenient to work with as the syntax is a bit more English like. I have come across many scenarios whereby 4 line code in python took about 20 to 30 lines in other languages. With high speed electronics and flexibility of high level languages I would go with python most of the time for complex tasks. But I feel every beginner should start off with C then C++ and then Python. Or all 3 at the same time if you can. EDIT: The reason why I am saying this is once you know old languages and start to learn the new you appreciate the importance of new languages, the features they pour into our programming world. Object oriented languages will never die so pick up of your choice and get going switching in between is easy.
10th Aug 2018, 6:53 AM
Saithama
+ 8
The choice has nothing to do with being a new or an advanced programmer. You can put languages in several dimensions. You can categorise them in: System programming languages Bytecode languages Script languages. The more you go towards script, the easier the language. But also the less control you have. It's always a tradeoff. (That's why there is not a single programming language that is the best) Also programming languages have different properties: With or without garbage collection. They way they handle datatypes. (For example javascript & typescript) The style they follow and much much more. Python is an easy language. No need to compile it. Just run is. It's quick for the developer. Python when performance needed is mostly connected to underlying C programs for speed. Python itself is slow. It's not a language you build advanced performant programs with. But it's easy and quick to setup a certain solution. C++ is as they say. Baremetal. It is possible to run it without OS. This means you also need to handle your own memory and other things. YOU are in full control. This means YOU can make the program fast or slow or messy or anything. But it's a strong language that will probably survive another 30 years.(Unless Rust is going to destroy it) If you are into mathematics, statistics, are a beginner who likes to see fast results and fast development time to make something as a hobby, or do web backend. Python. If you are into games, high performant programs, small embedded devices. Want to make real systems. Go for C++
11th Aug 2018, 2:01 PM
herman willems
herman willems - avatar
+ 6
what do you mean? We can not choose between these two. Because each one does a different job
10th Aug 2018, 9:55 AM
Coven Witch
+ 6
Which of this are good for programming?
10th Aug 2018, 10:01 AM
Ilhom Inomboev
Ilhom Inomboev - avatar
+ 6
Both
10th Aug 2018, 10:03 AM
Amit Gujar
Amit Gujar - avatar
+ 6
c++
10th Aug 2018, 7:48 PM
Falguni Sarkar
Falguni Sarkar - avatar
+ 6
You need to understand that one programming language isn't better than another. They all have different purposes. You really need to ask what you want to do THEN ask what language is best for that task. C++ is one of the most capable and fastest languages out there, but you have to pay for it. It's pretty difficult. Python is much easier and takes far less time, but performance suffers and you have less control.
11th Aug 2018, 12:09 AM
Dominic Nicholas
Dominic Nicholas - avatar
+ 6
the,ans depands,on your apps as well as your skills..but first you now a days many codes are written in c++..so i prefer c++. but python also best
11th Aug 2018, 12:53 PM
Pragati Awasthi
Pragati  Awasthi - avatar
+ 5
benjamin akinmoyeje I am a VHDL/Verilog programmer but during my college I have learnt in this order. No matter which language it is if it is in the market it has several reasons behind it.
10th Aug 2018, 11:34 AM
Saithama
+ 5
C++
11th Aug 2018, 5:27 PM
Thein Than Lin
Thein Than Lin - avatar
+ 4
Ilhom Inomboev All 3 and also the rest courses on Sololearn. Start slow grow big its worth it. As an insight NASA missions in the old days were programmed in these legacy languages. And C/C++ will always be the base of a computer science grad until you dont want to appreciate the text that gets translated to perform magical mysterious circuit level tasks! :) Happy coding.
10th Aug 2018, 11:39 AM
Saithama
+ 4
c++ for afvanced pyton for new
10th Aug 2018, 11:53 AM
James
+ 4
I'd learn python first if you're a beginner and maybe javascript then move onto lower level languages like cpp
10th Aug 2018, 10:56 PM
Fyrahh
Fyrahh - avatar
+ 4
C++
11th Aug 2018, 5:50 PM
Potato Hacker
Potato Hacker - avatar
+ 4
absolutely python
12th Aug 2018, 12:19 AM
Uwais Ahamed Arthath Agary
Uwais Ahamed Arthath Agary - avatar
+ 4
c++ is somewhat a better language for programming purpose rather than python... though python is easy and has multiple applications and advantages...c++ is the core and cannot be neglected....and yes...it all depends on what you want to create
12th Aug 2018, 9:34 AM
Hrithik Gautam
Hrithik Gautam - avatar
+ 4
PYTHON. Definitely. 😏
19th Aug 2018, 3:28 PM
Christine
Christine - avatar
+ 3
c++ from start i finking #include <iostream> using namespace std; int main() cout<<"hello, world!"<<endl; }
10th Aug 2018, 4:04 PM
INtoHedgehog
INtoHedgehog - avatar
+ 3
thanks A2A, it's depand on you in which language you have interest.if your interest in python become master in it otherwise do master in c++.
10th Aug 2018, 4:51 PM
Yogesh
Yogesh - avatar
+ 3
c++ is a hard language to be the first to learn
10th Aug 2018, 10:56 PM
Fyrahh
Fyrahh - avatar