|
 |
|

November 4th, 2009, 11:29 AM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
Ok you guys obviously don't get it so I'll clarify.
Low level languages are almost identical to machine code, like Assembly. Middle level languages are sort of similar but have it's own syntax, they usually have the ability to use memory allocation. High level languages are very different from machine code. Even more so with very high level programming languages.
|

November 4th, 2009, 12:22 PM
|
 |
Lorem Ipsum Dolor Sit.
|
|
Join Date: Aug 2007
Location: England (GMT +0)
Posts: 3,818
|
|
Quote:
Originally Posted by Lyerae
> And c++ is not that advanced compared to python, there is just more code to write before you get any results.
And that's why Python is better to start with.
|
I'm sorry, but I do not agree with this. Just because you have to write a bit more code (very basic stuff) it does not make it any worse. Of course, if there was lots more code everywhere it might be a bit different.
I personally dislike the syntax of Python and I personally would not recommend it to a beginner, because of how it is different from conventional syntax. I personally started with C++ and I had no problems learning it (and I can also easily learn other languages, as it has a similar syntax).
|

November 4th, 2009, 04:13 PM
|
 |
Evil always finds a way
|
|
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
|
|
Quote:
Originally Posted by UndeadDragon
I personally dislike the syntax of Python and I personally would not recommend it to a beginner, because of how it is different from conventional syntax. I personally started with C++ and I had no problems learning it (and I can also easily learn other languages, as it has a similar syntax).
|
See, that was exactly what I was trying to say
|

November 4th, 2009, 08:10 PM
|
 |
Junior Member (Am I really helping anyone?)
|
|
Join Date: Apr 2009
Posts: 248
|
|
|
C++ is a really old language. If you don't really care about performance, I suggest moving to something more modern.
Since the thread owner wants to make games (right?), then I'll suggest that you start learning C++. There are concepts that are abstracted from higher level languages like Python and C# that you will (probably) need in C++. Since you'll end up programming in C++, might as well start by learning that.
|

November 4th, 2009, 10:41 PM
|
 |
I'm a Mac
|
|
Join Date: Jul 2007
Location: Australia
Posts: 1,093
|
|
I use Visual Studio 2008 Pro Edition, they have a Beta of VS 2010, it's pretty good.
I highly recommend VS, I learned VB, and the more I learned I became better with C++ as I understood it more.
http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx
Visual Studio 2010 Ultimate I think would be the one to download, I'm not sure though.
EDIT: if your after games, I'd trial VS 2008 Pro and download and install XNA Game Studio, I think it's designed for building Windows & XBOX 360 games using C# syntax, I've used it before and liked it.
|

November 6th, 2009, 06:46 PM
|
 |
If you mix up pi. You get PIE!! :O!
|
|
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
|
|
|
i dont want to make games persay, i may want to do that. but i want to step into it. I want to make some simple programs first. For example. A word scrambler. that takes the first and last letter of a word, and randomly scrambles all of the letters in-between
|

November 6th, 2009, 06:49 PM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
|
Python would be the way to go for that honestly.
|

November 6th, 2009, 06:59 PM
|
 |
If you mix up pi. You get PIE!! :O!
|
|
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
|
|
|
you think python is the way to go for everything.
|

November 6th, 2009, 07:10 PM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
|
No, you're absolutely incorrect.
Python is best for making lightweight applications and it has an easy syntax, I personally wouldn't use it for making 3D applications.
|

November 6th, 2009, 07:50 PM
|
 |
Evil always finds a way
|
|
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
|
|
Quote:
Originally Posted by ElderKingpin
i dont want to make games persay, i may want to do that. but i want to step into it. I want to make some simple programs first. For example. A word scrambler. that takes the first and last letter of a word, and randomly scrambles all of the letters in-between
|
That c++ is great for. The thing about c++ is that it does not have many limitations, you don't need to learn everything about it to make a simple program as that.
There is actually enought information on those tutorialpages I mentioned earlier to do just that.
Quote:
Originally Posted by codemonkey
Python is best for making lightweight applications and it has an easy syntax, I personally wouldn't use it for making 3D applications.
|
Dude, python is a descent language, but c++ is better to learn from the beginning and that's it.
3D apps are no problem at all with python btw, the code tends to be a bit messy tho, "mount and blade" is a 3D game written in python and it runs smooth and well, there is even HD addons for it that works just fine.
If we compare the two examples you used earlier, what do you learn about programming from this "print Hello World!"?
1. That python is simple.
2. How to print text with python.
What do you learn from this:
Code:
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
}
1. How to use headers.
2. Writing a simple function.
3. Using namespaces.
4. Displaying text.
5. How to jump to the next line to write.
That is why I personally think that c++ is better for beginners, python is just to easy for a beginner to actually learn something about programming from it.
|

November 6th, 2009, 10:57 PM
|
 |
If you mix up pi. You get PIE!! :O!
|
|
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
|
|
|
i think making the word scrambler is harder then you think. My dad told me you would first have to make an array variable for the letters so the variable could have more then one variable. And have the first letter to be [loc 1] and the last letter to be [loc 7] (i used the word "Macbook") and have the system scramble location 2-6. Then you would need more variables to handle more words (handling more words was my idea btw, i thought of that through common sense
|

November 7th, 2009, 01:23 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
|
VS2010 comes with a new MFC package that enables you to create Office 2007/Visual Studio like applications in no time. (Actually they're templates)
MFC makes C++ code much more readable, and then it actually looks good compared to Win32 native bullshit.
|

November 7th, 2009, 02:15 AM
|
 |
_
|
|
Join Date: Nov 2006
Posts: 2,719
|
|
Quote:
Originally Posted by Samael88
That c++ is great for. The thing about c++ is that it does not have many limitations, you don't need to learn everything about it to make a simple program as that.
|
Well your example below shows that you do need to understand several parts of C++ in order to write a simple program.
Quote:
Originally Posted by Samael88
Dude, python is a descent language, but c++ is better to learn from the beginning and that's it.
|
There are few good reasons to believe that this is the case, and many good reasons to believe that it isn't.
Quote:
Originally Posted by Samael88
What do you learn from this:
...
|
You don't learn anything from that. It's the explanation that comes with the code that you learn from. A new programmer would probably be able to deduce that "cout" has something to do with "Hello World!" appearing on the screen, but little beyond that.
The hello world program you provided, by the way, is incorrect.
Quote:
Originally Posted by Samael88
That is why I personally think that c++ is better for beginners, python is just to easy for a beginner to actually learn something about programming from it.
|
If you are learning Python (or Ruby, or C++, etc), then you are learning the fundamentals of programming. C++ might require boilerplate for the simplest programs, but that doesn't mean that it is better for learning.
|

November 7th, 2009, 06:26 AM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
Python 3D is easy but since Python is interpreted it's going to be slower when you're making hundreds of large calculations each second.
For 3D I'd go with D, but before D came out I would've gone with C++.
______
On another note to make a word scrambler in python you'd just need to use yourstrvar.count(sub[, start[, end]])
http://docs.python.org/library/stdtypes.html
Last edited by codemonkey; November 7th, 2009 at 06:32 AM.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|