Python Vs C++
Started by Potatoe, Nov 24 2006 12:40 PM
7 replies to this topic
#1
Posted 24 November 2006 - 12:40 PM
Yeah. I've learnt some C++, enough to make VERY simple games(http://sampo.lamminsalo.net), but recently I've stumbled upon a great programming language called python. And with PyGame you can make games in it, and it's easy to use and learn.
So here are the questions:
Should I start learning some advanced stuff in this(I have a good understanding in the basics of Python, but not PyGame)?
Which one is faster to code in?
and
Should I learn C++, Python(and PyGame) or both?
I've read tutorials online but I want your oppinion. And IF I decide to use Python and PyGame, I might have a special treat for you all(re-coding both FPS sim and Zombie sim in python, AND with graphics, hopefully).
So here are the questions:
Should I start learning some advanced stuff in this(I have a good understanding in the basics of Python, but not PyGame)?
Which one is faster to code in?
and
Should I learn C++, Python(and PyGame) or both?
I've read tutorials online but I want your oppinion. And IF I decide to use Python and PyGame, I might have a special treat for you all(re-coding both FPS sim and Zombie sim in python, AND with graphics, hopefully).
#2
Posted 24 November 2006 - 01:31 PM
In short:
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
#3
Posted 25 November 2006 - 01:36 PM
MdaG, on Nov 24 2006, 01:31 PM, said:
In short:
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
#4
Posted 08 July 2007 - 10:38 AM
MdaG, on Nov 24 2006, 01:31 PM, said:
In short:
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
Eeeerhm Python is by the way multiplatform, and it is also available for the old DOS(PythonD 2.4.2 r1.0 which is a DOS port of Python v2.2.1 you can download from here linky ) platform. And wikipedia is telling a longer story..... About Jpython and other stuff. So Python is multiplatform. sorry for sounding like a smart arse, which I am not, I am just pointing out something in the big context.
#5
Posted 12 July 2007 - 04:17 PM
With today's power of computer speed is no longer a big issue. Even if you do 3D stuff, you won't wirte the renderer yourself, you'll link the library - and you can do the same in Python.
Libraries in C/C++ for special and time consuming operations and scripting language to tie them all together and handle the game logic. That's how the pro's do it.
As for your question, learning a new language is never a waste of time. Each language is based on its own philosophy, and each language gives you a new perspective on programming and in turn makes you a better programmer, even if you end up not using it. So my advice would be: learn both, but start with python.
Libraries in C/C++ for special and time consuming operations and scripting language to tie them all together and handle the game logic. That's how the pro's do it.
As for your question, learning a new language is never a waste of time. Each language is based on its own philosophy, and each language gives you a new perspective on programming and in turn makes you a better programmer, even if you end up not using it. So my advice would be: learn both, but start with python.
#6
Posted 14 July 2007 - 06:57 AM
WolverineDK, on Jul 8 2007, 12:38 PM, said:
MdaG, on Nov 24 2006, 01:31 PM, said:
In short:
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
Eeeerhm Python is by the way multiplatform, and it is also available for the old DOS(PythonD 2.4.2 r1.0 which is a DOS port of Python v2.2.1 you can download from here linky ) platform. And wikipedia is telling a longer story..... About Jpython and other stuff. So Python is multiplatform. sorry for sounding like a smart arse, which I am not, I am just pointing out something in the big context.
I already said it was platform independent. That is the same as multi platform.
#7
Posted 16 July 2007 - 12:36 AM
MdaG, on Jul 14 2007, 06:57 AM, said:
WolverineDK, on Jul 8 2007, 12:38 PM, said:
MdaG, on Nov 24 2006, 01:31 PM, said:
In short:
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
C++
+ You can create faster software
- Time from idea to software is relatively long
Python
+ Time from idea to software is relatively short
+ Easier to write bug free code
+ Platform independant
- Software tends to become far slower than compiled languages like C++
Learn both, which is better depends on what you're trying to achieve.
Eeeerhm Python is by the way multiplatform, and it is also available for the old DOS(PythonD 2.4.2 r1.0 which is a DOS port of Python v2.2.1 you can download from here linky ) platform. And wikipedia is telling a longer story..... About Jpython and other stuff. So Python is multiplatform. sorry for sounding like a smart arse, which I am not, I am just pointing out something in the big context.
I already said it was platform independent. That is the same as multi platform.
Oh sorry mate, I read it wrong, I thought you wrote it was platform dependant, instead of independent.
#8
Posted 16 July 2007 - 07:48 PM
Well, I would say neither. I'm kind of a BASIC groupie, and I think it's the most suitable language for game design. Of course, if you pick the right variant of it.
I'm using FreeBASIC. It can use most popular C libraries out there (OpenGL, OpenAL, Allegro, FMOD, …). And pointers are supported. Speed is not a problem. Easy to learn. Please inform yourself on this before arguing me.
http://www.freebasic...ection=features
Prejudices are bad.
I'm using FreeBASIC. It can use most popular C libraries out there (OpenGL, OpenAL, Allegro, FMOD, …). And pointers are supported. Speed is not a problem. Easy to learn. Please inform yourself on this before arguing me.
http://www.freebasic...ection=features
Prejudices are bad.
Lachie Dazdarian - The Maker Of Stuff













