PDA

View Full Version : Python or C++


n0madic0debc
07-21-2006, 11:59 PM
I was just wondering because TLM put this in to my head. Today i was gonna start learning C++ since i was tired of the boundaries i face while using VB(dont get me wrong VB is awesome). But then TLM brought up the topic in which he introduced me to Python and it really looks like it has potential, and the fact that games can be made with it. C++ i know can do this, but in the long run will it be worth it?. I would like to know what you guys think i should start learning.:)

naruto1327
07-22-2006, 08:02 PM
Its kind of a hard question, but I voted C++.

TwitcH
07-22-2006, 09:48 PM
Well I think what this argument will come down to is Speed, Ease Of Use and Portability. I'll make this simple, argue with it if you wish :).

Speed: C++ win's.

Ease of Use: Python

Portability: Python

That's 2 to 1, and the speed difference isnt really that noticeable.
If you still cant decide, learn them both ;)

n0madic0debc
07-23-2006, 04:36 PM
Well I think what this argument will come down to is Speed, Ease Of Use and Portability. I'll make this simple, argue with it if you wish :).

Speed: C++ win's.

Ease of Use: Python

Portability: Python

That's 2 to 1, and the speed difference isnt really that noticeable.
If you still cant decide, learn them both ;)
I decided that what i will do is give each of them a try, and i will decide from there, Thank you for the opinions.:)

TwitcH
07-23-2006, 06:28 PM
I decided that what i will do is give each of them a try, and i will decide from there, Thank you for the opinions.:)

Sounds good, let us know if you do choose one, im sure people would like to hear your reasons :)

n0madic0debc
07-23-2006, 07:35 PM
From the looks of it so far TLM was right about both.
Speed:C++

Easy to use and Portability:Python

Although thats only from what i have seen so far, I think that Python can be just as fast or just as close to the speed of C++. I have only skimmed some of the tutorials for both, and Im amazed by Python. I can't believe i never heard of this before. I think that im stick to Python for now, but if i ever do decide to learn C++ it will be for 3D game purposes, and since most the source code 3D game engines are based on C++. I recommend that anyone interested in programming give Python a try.:cool:

For now though i will fine tune my VB skills, considering the fact that i got a hold of a source code for a 2d game engine. I will inform you guys on that later.

HopeDagger
07-24-2006, 12:17 AM
Well I think what this argument will come down to is Speed, Ease Of Use and Portability. I'll make this simple, argue with it if you wish :).

Speed: C++ win's.

Ease of Use: Python

Portability: Python

That's 2 to 1, and the speed difference isnt really that noticeable.

C++ is just as portable as Python; C++ compilers exist for a plethora of platforms. More than Python if you count consoles (XBox, PS2, GameCube, etc). And the speed difference between the two is quite, erm, massive. ;)

Not trying to rain on your parade or anysuch, TLM, just clearing up the technicalities!

TwitcH
07-24-2006, 09:32 AM
C++ is just as portable as Python; C++ compilers exist for a plethora of platforms. More than Python if you count consoles (XBox, PS2, GameCube, etc). And the speed difference between the two is quite, erm, massive. ;)

Not trying to rain on your parade or anysuch, TLM, just clearing up the technicalities!

Nice to see you again ;)

And you are actually right, C++ is just as portable as python, the point I was trying to make is how easily python is ported to different systems, it basicly does it itself because it is an interpreted language (which is why it is slower). When porting C++ to different systems there are some major changes in code that have to be made, which makes it that little bit more difficult.

Im not starting language wars in here, and to be completely honest if I were going into programming professionaly I would choose C++. But as a hobby language for small projects, pythons good to me :)