|
 |
|

October 31st, 2009, 02:16 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
Quote:
Originally Posted by codemonkey
C++ is extremely hard to pick up if it's your first real language, imo.
I recommend Python over C++.
For example if you wanted a hello world program in C++:
Code:
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
}
or in Python:
|
So many people use this example and it's really just bullshit. Hello World in C++ might be longer than Python's, but C++ might have ways to do stuff faster than Python.
On topic: if you want to learn C++, learn C# first. It's very simple, and gives a good feeling when you start C++. I recommend that one.
|

October 31st, 2009, 06:07 AM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
Python is an interpreted language, meaning no compiling is necessary. They both boil down to machine code anyways.
Really Python is miles easier to learn than C++ if you're a complete beginner.
And Python has more functionality than C++ for the more advanced users, it is a high level programming language.
C++ being a middle level language.
I certainly understand a lot of people wanting to stick with C++/C as it has been around for awhile and lots of games + engines were made in it, but I think it's best for beginners to steer clear from it.
Just my 2 cents.
Last edited by codemonkey; October 31st, 2009 at 06:13 AM.
|

October 31st, 2009, 11:10 AM
|
 |
If you mix up pi. You get PIE!! :O!
|
|
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
|
|
Quote:
Originally Posted by Samael88
That book, the tutorial pages I posted and this forum should be enought for you to get started 
I suggest that you use dev-c++ instead tho, since it is a bit more user friendly that microsofts alternative, I would say that when it comes to programming stay away from microsofts stuff with the exception from includes like windows.h.
It tends to make life a bit easier
Edit:
@Lyerae: If you failed learning c++ and not python it is probably because you where to distracted by other things to learn it properly.
I for one have only learned c++ this far and I can with ease understand most python tutorials and read thru python code and still get what it does with just c++ knowledge. I would say that c++ is the better of those two to start with, there are many languages that has taken after c and c++ in their syntax and I would say that python is one of those.
Edit2:
Oh, and Slapshot136: the namespace std as standard is only good to use in smaller programs, the bigger it get's and the more things you put into it the bigger the risk get's for it to get into conflict with something else. I would say that it is better to learn not to use it from the beginning than to do.
Here is an alternative when it needs to be used:
Code:
std::cout << "hello world!";
|
Link?
|

October 31st, 2009, 11:31 AM
|
 |
Pandaren force mastaren
|
|
Join Date: Sep 2006
Location: Where arent I?
Posts: 3,065
|
|
Quote:
Originally Posted by ElderKingpin
Link?
|
Quote:
Originally Posted by Samael88
|
those links
|

October 31st, 2009, 02:03 PM
|
 |
Christmas is Over :'( - ಠ_ಠ
|
|
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
|
|
Quote:
Originally Posted by Lyerae
> If you failed learning c++ and not python it is probably because you where to distracted by other things to learn it properly.
Nope. No distractions.
C++ is just too advanced for a lot of people to start with.
|
C++ was the language I started with. I actually felt kind of weird when I started using python.
|

November 1st, 2009, 07:24 AM
|
 |
Evil always finds a way
|
|
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
|
|
Quote:
Originally Posted by codemonkey
Just my 2 cents.
|
Sorry to say that I don't think your 2 cents is worth even that
The high level programming languages is not like a high level hero in wc3.
It is actually the other way around. The level they are reffering to is how close to machine code it is. If you want a good language you should really use machine code directly, it does not get better than that  Python is a good language, the only problem with learning python is that you will probably have some trouble learning other languages after that.
If you have used JASS in wc3 and understood it somewhat I suggest you use c++, it is fairly similiar, and that is all I had in my pocket when I started using c++
|

November 1st, 2009, 09:37 PM
|
 |
If you mix up pi. You get PIE!! :O!
|
|
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
|
|
|
i have nothing ._.
|

November 2nd, 2009, 05:45 AM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
Absolutely incorrect. It's the other way around. Quoting wikipedia:
Quote:
|
Originally Posted by Wikipedia
In computing, a high-level programming language is a programming language with strong abstraction from the details of the computer. In comparison to low-level programming languages, it may use natural language elements, be easier to use, or be more portable across platforms. Such languages hide the details of CPU operations such as memory access models and management of scope.
|
Making python very easy to learn, no need to worry about how you allocate memory.
And if you want to take it a step higher see http://en.wikipedia.org/wiki/Very_hi...mming_language
___
When you have nothing and I'm assuming you haven't taken Logic yet Python is a great place to start learning the key concepts that are present in ALL programming languages.
|

November 2nd, 2009, 06:13 PM
|
 |
Christmas is Over :'( - ಠ_ಠ
|
|
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
|
|
Quote:
Originally Posted by codemonkey
Absolutely incorrect. It's the other way around. Quoting wikipedia:
Making python very easy to learn, no need to worry about how you allocate memory.
And if you want to take it a step higher see http://en.wikipedia.org/wiki/Very_hi...mming_language
___
When you have nothing and I'm assuming you haven't taken Logic yet Python is a great place to start learning the key concepts that are present in ALL programming languages.
|
Yes but there are time where directly allocating memory is necessary, or at lest helpful. C++ is a high level language, but it can do things that ow level languages can. So it does get the best of both worlds.
|

November 3rd, 2009, 06:06 AM
|
 |
_
|
|
Join Date: Jun 2009
Posts: 530
|
|
|
C++ is a middle level language, not high level.
Read the quote from wikipedia, especially the part I bolded.
|

November 3rd, 2009, 07:00 AM
|
 |
Evil always finds a way
|
|
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
|
|
Quote:
Originally Posted by codemonkey
C++ is a middle level language, not high level.
Read the quote from wikipedia, especially the part I bolded.
|
No matter how you twist and turn it comes down to this anyway:
warcraft and starcraft and diablo has all been written in c++, that alone makes it a good language by reputation 
Python has at least mount and blade that I am aware of, and that is a good game as well, but it could had been better written in c++, that is my personal oppinion tho.
I think that it is better to start with something a bit advanced and move to python later, else you will miss out on the memory allocation stuff
|

November 3rd, 2009, 04:29 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
|
Sorry, but are you an idiot? Start with the advanced stuff first, then move on to the easy?
That's not how we learn things.
Learn something easy first, then move on to more advances languages.
Python is great to start with. I learnt it in about a week or so. Sure, I can't quite program anything yet, but that's because I don't know what functions/methods there are to use.
|

November 3rd, 2009, 04:37 PM
|
 |
Evil always finds a way
|
|
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
|
|
Quote:
Originally Posted by Lyerae
Sorry, but are you an idiot?
|
No, I am not, and I would appreciate that you would not ask me or anyone else that question in the future
I am just saying that c++ is a good language to start with, since it has a syntax that looks like many other languages. While python is an easy language it lacks a few things such as a "common syntax" or what ever it is called, it also lacks the memory handling that c++ does.
I am not trying to trash-talk python, it is a pretty good language, I am just saying that c++ seems to be a better alternative to start out with to me.
And c++ is not that advanced compared to python, there is just more code to write before you get any results
|

November 3rd, 2009, 08:01 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
|
> 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.
C++ = compiler.
Python = intepreter.
|

November 3rd, 2009, 10:18 PM
|
 |
Christmas is Over :'( - ಠ_ಠ
|
|
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
|
|
Quote:
Originally Posted by codemonkey
C++ is a middle level language, not high level.
Read the quote from wikipedia, especially the part I bolded.
|
Yeah, but all a middle level language means is having both high level and low level features.
|
| 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
|
|
|
|