The Helper Forums
The Helper offers free technical support for computer games,
computer hardware, and other computer software. Staffed
by volunteer tech support workers, The Helper is highly
regarded as a premium destination for those who are
experiencing technical problems with their computers.
Affiliate Sites
Warcraft 3 World Editor Tutorials - The Greatest Resource for the new Warcraft 3 Mapper
Silkroad Online Forums
Houston Microsoft Access, VBA and Visual Basic Programming
The source for NUON news, information, and games.
Griffonrawl Muay Thai and MMA
Warcraft 3 Modding Site.
Element Tower Defense by Karawasa.
Topaz Games.
Chernobyl Lost Riddles

Able Auto Glass specializes in Houston Auto Glass Replacement as well as windshield repair and replacement services.
Apex Steel Pipe - Buys and sells Used Steel Pipe.

Go Back   The Helper Forums > Technical Support Zone > Programming Forum

Reply
 
Thread Tools Display Modes
  #16  
Old October 31st, 2009, 02:16 AM
Vestras's Avatar
Vestras Vestras is offline
kekekeke
 
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
Vestras <--- Pretty Cool (+500)Vestras <--- Pretty Cool (+500)Vestras <--- Pretty Cool (+500)Vestras <--- Pretty Cool (+500)Vestras <--- Pretty Cool (+500)Vestras <--- Pretty Cool (+500)
Quote:
Originally Posted by codemonkey View Post
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:

Code:
print Hello World!
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.
Reply With Quote
  #17  
Old October 31st, 2009, 06:07 AM
codemonkey's Avatar
codemonkey codemonkey is offline
_
 
Join Date: Jun 2009
Posts: 530
codemonkey seems to have the helping tendency (+150)codemonkey seems to have the helping tendency (+150)
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.
Reply With Quote
  #18  
Old October 31st, 2009, 11:10 AM
ElderKingpin's Avatar
ElderKingpin ElderKingpin is offline
If you mix up pi. You get PIE!! :O!
 
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)
Quote:
Originally Posted by Samael88 View Post
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?
Reply With Quote
  #19  
Old October 31st, 2009, 11:31 AM
Slapshot136's Avatar
Slapshot136 Slapshot136 is offline
Pandaren force mastaren
 
Join Date: Sep 2006
Location: Where arent I?
Posts: 3,065
Slapshot136 <--- Pretty Cool (+500)Slapshot136 <--- Pretty Cool (+500)Slapshot136 <--- Pretty Cool (+500)Slapshot136 <--- Pretty Cool (+500)Slapshot136 <--- Pretty Cool (+500)Slapshot136 <--- Pretty Cool (+500)
Quote:
Originally Posted by ElderKingpin View Post
Link?
Quote:
Originally Posted by Samael88 View Post
You might want to check these out as well:

http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial.html

They can get you started on the basics.
those links
Reply With Quote
  #20  
Old October 31st, 2009, 02:03 PM
Tru_Power22's Avatar
Tru_Power22 Tru_Power22 is offline
Christmas is Over :'( - ಠ_ಠ
 
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)
Quote:
Originally Posted by Lyerae View Post
> 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.
Reply With Quote
  #21  
Old November 1st, 2009, 07:24 AM
Samael88's Avatar
Samael88 Samael88 is offline
Evil always finds a way
 
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)
Quote:
Originally Posted by codemonkey View Post
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++
Reply With Quote
  #22  
Old November 1st, 2009, 09:37 PM
ElderKingpin's Avatar
ElderKingpin ElderKingpin is offline
If you mix up pi. You get PIE!! :O!
 
Join Date: Mar 2009
Location: http://tinyurl.com/37pzjx
Posts: 2,758
ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)ElderKingpin is becoming a force to be reckoned with (+400)
i have nothing ._.
Reply With Quote
  #23  
Old November 2nd, 2009, 05:45 AM
codemonkey's Avatar
codemonkey codemonkey is offline
_
 
Join Date: Jun 2009
Posts: 530
codemonkey seems to have the helping tendency (+150)codemonkey seems to have the helping tendency (+150)
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.
Reply With Quote
  #24  
Old November 2nd, 2009, 06:13 PM
Tru_Power22's Avatar
Tru_Power22 Tru_Power22 is offline
Christmas is Over :'( - ಠ_ಠ
 
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)
Quote:
Originally Posted by codemonkey View Post
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.
Reply With Quote
  #25  
Old November 3rd, 2009, 06:06 AM
codemonkey's Avatar
codemonkey codemonkey is offline
_
 
Join Date: Jun 2009
Posts: 530
codemonkey seems to have the helping tendency (+150)codemonkey seems to have the helping tendency (+150)
C++ is a middle level language, not high level.

Read the quote from wikipedia, especially the part I bolded.
Reply With Quote
  #26  
Old November 3rd, 2009, 07:00 AM
Samael88's Avatar
Samael88 Samael88 is offline
Evil always finds a way
 
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)
Quote:
Originally Posted by codemonkey View Post
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
Reply With Quote
  #27  
Old November 3rd, 2009, 04:29 PM
Lyerae Lyerae is offline
Hai.
 
Join Date: May 2009
Posts: 1,882
Lyerae seems to have the helping tendency (+150)Lyerae seems to have the helping tendency (+150)
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.
Reply With Quote
  #28  
Old November 3rd, 2009, 04:37 PM
Samael88's Avatar
Samael88 Samael88 is offline
Evil always finds a way
 
Join Date: Apr 2008
Location: Sweden
Posts: 2,292
Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)Samael88 is becoming a force to be reckoned with (+400)
Quote:
Originally Posted by Lyerae View Post
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
Reply With Quote
  #29  
Old November 3rd, 2009, 08:01 PM
Lyerae Lyerae is offline
Hai.
 
Join Date: May 2009
Posts: 1,882
Lyerae seems to have the helping tendency (+150)Lyerae seems to have the helping tendency (+150)
> 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.
Reply With Quote
  #30  
Old November 3rd, 2009, 10:18 PM
Tru_Power22's Avatar
Tru_Power22 Tru_Power22 is offline
Christmas is Over :'( - ಠ_ಠ
 
Join Date: Aug 2009
Location: Edmonton Canada
Posts: 1,825
Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)Tru_Power22 is doing a good job (+300)
Quote:
Originally Posted by codemonkey View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.