DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Is Python better than C++ (http://www.daniweb.com/forums/thread32362.html)

Ene Uran Sep 15th, 2005 11:54 am
Is Python better than C++
 
Couldn't sleep last night, so I was browsing and found the "Starting Python" thingy. I must say Python looks interesting from the examples. I learned C++ in school, Python sure looks easier to understand. Does any one think it's better than C++?

vegaseat Sep 15th, 2005 6:07 pm
Re: Is Python better than C++
 
I am using C++ and Python, the two languages complement each other well. To develop an idea, Python will get you there faster. The code is easier on the eyes and more intelligible.

Of course, Python is an interpreted language, so it will be inherently slower in execution than C++. Speed of execution however is not always the most important thing. Time is money, and speed of program development could be more important, in this case Python might be the winner.

If you want a relatively small executable file, then you have to translate to C++ and compile and link. I have done it a few times, and it's not too time consuming. Maybe I should create some tools to make it easier. I would write those in Python.

For a beginner I would recommend Python. It gets you used to object oriented programming and sometimes can be downright fun. When you switch to C++ later, many concepts will be rather familiar to you, and you won't mind the regimentation so much.

bumsfeld Sep 17th, 2005 12:03 pm
Re: Is Python better than C++
 
I don't think Python is better than C++, but you can do thinks at a higher level with it.

Micko Sep 17th, 2005 2:18 pm
Re: Is Python better than C++
 
Quote:

Originally Posted by bumsfeld
I don't think Python is better than C++, but you can do thinks at a higher level with it.

And, of course, with less frustrations and headache ;)

vegaseat Sep 18th, 2005 10:27 am
Re: Is Python better than C++
 
One thing I always hated in C++ was Mister Bloat, the awful omnipresent header file:
#include <iostream>
That turned a simple Hello World console program into a 415kb executable monster.


All times are GMT -4. The time now is 10:13 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC