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
  #31  
Old November 4th, 2009, 11:29 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)
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.

Reply With Quote
  #32  
Old November 4th, 2009, 12:22 PM
UndeadDragon's Avatar
UndeadDragon UndeadDragon is offline
Lorem Ipsum Dolor Sit.
 
Join Date: Aug 2007
Location: England (GMT +0)
Posts: 3,818
UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)UndeadDragon has a reputation beyond repute (+1000)
Quote:
Originally Posted by Lyerae View Post
> 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).
__________________
/ .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. \
//I am a web designer. Clicky Clicky.\\
/ .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. \
Reply With Quote
  #33  
Old November 4th, 2009, 04:13 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 UndeadDragon View Post
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
Reply With Quote
  #34  
Old November 4th, 2009, 05:55 PM
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)
Don't get me wrong, I think C++ is a great language too but it's slowly but surely being replaced.

Here's a great article comparing C++ and Python:

http://theunixgeek.blogspot.com/2008...hon-speed.html

And another neat thing about Python is you can use C(++) code inside of it.

http://heim.ifi.uio.no/~kent-and/sof...c/Instant.html
Reply With Quote
  #35  
Old November 4th, 2009, 08:10 PM
Xienoph's Avatar
Xienoph Xienoph is offline
Junior Member (Am I really helping anyone?)
 
Join Date: Apr 2009
Posts: 248
Xienoph is starting to make their name known (+75)
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.
Reply With Quote
  #36  
Old November 4th, 2009, 10:41 PM
Icyculyr's Avatar
Icyculyr Icyculyr is offline
I'm a Mac
 
Join Date: Jul 2007
Location: Australia
Posts: 1,093
Icyculyr is starting to get some respect (+100)Icyculyr is starting to get some respect (+100)
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.
Reply With Quote
  #37  
Old November 6th, 2009, 06:46 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 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
Reply With Quote
  #38  
Old November 6th, 2009, 06:49 PM
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 would be the way to go for that honestly.
Reply With Quote
  #39  
Old November 6th, 2009, 06:59 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)
you think python is the way to go for everything.
Reply With Quote
  #40  
Old November 6th, 2009, 07:10 PM
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)
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.
Reply With Quote
  #41  
Old November 6th, 2009, 07:50 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 ElderKingpin View Post
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 View Post
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.
Reply With Quote
  #42  
Old November 6th, 2009, 10:57 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 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
Reply With Quote
  #43  
Old November 7th, 2009, 01:23 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)
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.
Reply With Quote
  #44  
Old November 7th, 2009, 02:15 AM
TheDamien's Avatar
TheDamien TheDamien is offline
_
 
Join Date: Nov 2006
Posts: 2,719
TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)TheDamien has a reputation beyond repute (+1000)
Quote:
Originally Posted by Samael88 View Post
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 View Post
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 View Post
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 View Post
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.
Reply With Quote
  #45  
Old November 7th, 2009, 06:26 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 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.
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:14 PM.


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