Get the latest Education e-news
 

Go Back   Game Career Guide Forums > Programming
Forum Home Register Members List Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 08-23-2008, 07:38 AM   #1
soccerboy169
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss13
Location: garden grove, ca
Default programmers

i dont know that much programing what basic program should i start off with and work from there
soccerboy169 is offline   Reply With Quote
Old 08-23-2008, 10:40 AM   #2
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
0/11 sssss2244
Location: UK
Default

What is your current programming experience?
yaustar is offline   Reply With Quote
Old 08-23-2008, 10:59 AM   #3
soccerboy169
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss13
Location: garden grove, ca
Default

um nothing
soccerboy169 is offline   Reply With Quote
Old 08-23-2008, 01:23 PM   #4
radertj
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss12
Default

I'd start with a Hello World program in C++. I'd look into getting a book on C++ to help get you started. Try http://www.amazon.com/Primer-Plus-4t.../dp/0672322234 this one. It's one of the easiest to read programming books of its kind. Hope this helps.
radertj is offline   Reply With Quote
Old 08-23-2008, 01:27 PM   #5
Adrir
Administrator
 
Adrir's Avatar

Activity Longevity
2/20 20/20
Today Posts
0/11 sssss1459
Location: London, UK
Default

Quote:
Originally Posted by radertj View Post
I'd start with a Hello World program in C++. I'd look into getting a book on C++ to help get you started. Try http://www.amazon.com/Primer-Plus-4t.../dp/0672322234 this one. It's one of the easiest to read programming books of its kind. Hope this helps.
Personally, I would advise against learning C++ as your first programming language since it has a lot of features that can confuse beginners in addition to being more difficult to debug than other high level languages.

I would advise starting with a language such as Java or Python.
__________________
Michael 'Adrir' Scott :: Games, Virtual Worlds, Education
Networking | Current Project | Research | Teaching
Adrir is offline   Reply With Quote
Old 08-23-2008, 01:54 PM   #6
radertj
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss12
Default

Quote:
Originally Posted by Adrir View Post
Personally, I would advise against learning C++ as your first programming language since it has a lot of features that can confuse beginners in addition to being more difficult to debug than other high level languages.

I would advise starting with a language such as Java or Python.
Java is much easier to learn. The only gripe I have with it is that it can lead to bad programming practices, because so much is taken care of for you. It's definitely another good place to start though.
radertj is offline   Reply With Quote
Old 08-23-2008, 02:23 PM   #7
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
0/11 sssss2244
Location: UK
Default

I would suggest Python personally. Start small and slow. Work your way through tutorials and work on small programs such as 'Guess the number' and 'Hangman'.

To give an example on what can be done with Python, look at this article.
yaustar is offline   Reply With Quote
Old 08-23-2008, 02:27 PM   #8
Adrir
Administrator
 
Adrir's Avatar

Activity Longevity
2/20 20/20
Today Posts
0/11 sssss1459
Location: London, UK
Default

Quote:
Originally Posted by radertj View Post
The only gripe I have with it is that it can lead to bad programming practices
I'm quite intrigued, this is the first I've heard of people getting bad programming practices from learning Java. On the contrary, I know alot of people who have developed bad programming practices from learning C++ such as using undefinded behaviour in certain compilers, using low level tricks to achieve things without commenting them appropriately and obsessively using goto statements.

Which sort of bad programming practices are you referring to?
__________________
Michael 'Adrir' Scott :: Games, Virtual Worlds, Education
Networking | Current Project | Research | Teaching
Adrir is offline   Reply With Quote
Old 08-23-2008, 02:45 PM   #9
radertj
Junior Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss12
Default

Quote:
Originally Posted by Adrir View Post
I'm quite intrigued, this is the first I've heard of people getting bad programming practices from learning Java. On the contrary, I know alot of people who have developed bad programming practices from learning C++ such as using undefinded behaviour in certain compilers, using low level tricks to achieve things without commenting them appropriately and obsessively using goto statements.

Which sort of bad programming practices are you referring to?
This is exactly the problem. I don't understand what you are referring to with undefined behavior in certain compilers. Also from my experience, C++ programmers rarely use goto statements at all. It's very discouraged unless being used to save something that has fatally failed. I don't know what low level tricks you are referring to (implicit conversion of types instead of expressions maybe?), but the behaviors you are mentioning are used by bad programmers in general. It would be nice if you could name a couple.

I'm referring to Java's built in garbage collection. Many people who learn Java first have a hard time remembering to free dynamic memory in C++. It also can encourage the overuse of Object Oriented Programming. Everything doesn't need to be an object. These are what I have seen.

Typically bad programming practice lessens with experience, but moving from a managed to unmanaged environment can be very cumbersome for people who have relied on the former. Just my 2 cents.
__________________
Thomas Rader
radertj is offline   Reply With Quote
Old 08-23-2008, 03:55 PM   #10
Adrir
Administrator
 
Adrir's Avatar

Activity Longevity
2/20 20/20
Today Posts
0/11 sssss1459
Location: London, UK
Default

Quote:
Originally Posted by radertj View Post
This is exactly the problem.
Quote:
Originally Posted by radertj View Post
I'm referring to Java's built in garbage collection. Many people who learn Java first have a hard time remembering to free dynamic memory in C++. It also can encourage the overuse of Object Oriented Programming. Everything doesn't need to be an object.
Not really. I disagree that the things you mention are in fact bad practice. Bad practices are things like not commenting code, not coding defensively, not writing tests, not using a house style, etc.

Not remembering that you don't have a garbage collector and forgetting that you don't have to make everything an object is simply a habit you have to get out of. It is true, that this is still a problem, but in my opinion it is easier to learn a managed language first and deal with this problem later than it is to dive head first into the dragons den.

Quote:
Originally Posted by radertj View Post
...the behaviors you are mentioning are used by bad programmers in general.
Not really since you can't really get bad habits from features that don't exist in a particular language.

Quote:
Originally Posted by radertj View Post
I don't understand what you are referring to with undefined behavior in certain compilers.
Sorry, I meant unspecified behaviour. Although undefined behavior is also really bad.

A lot of the C++ standard is left unspecified and is left up to specific implementations. So under certain conditions, code will compile and work fine, but using a different compiler or compiler version it will break and do really stange stuff.

For example, all variables of type int are guaranteed to have the same size on the same machine. It is not guaranteed, however, that on another machine, int variables will occupy the same size.

Quote:
Originally Posted by radertj View Post
Also from my experience, C++ programmers rarely use goto statements at all. It's very discouraged unless being used to save something that has fatally failed.
That's interesting, I knew quite a number of beginners in the Game Creators Club that had a habit of using them a lot. It makes me glad that Code Complete is so large, it actually hurts when I throw it at them and tell them to read the section on goto statements.

Quote:
Originally Posted by radertj View Post
I don't know what low level tricks you are referring to (implicit conversion of types instead of expressions maybe?)
Anything like this:

Code:
      float xhalf = 0.5f*x;
      union
      {
          float x;
          int i;
      } u;
      u.x = x;
      u.i = 0x5f3759df - (u.i >> 1);
      x = u.x * (1.5f - xhalf * u.x * u.x);
      return x;
It's perfectly fine if it's commented, but if it isn't it does take a while to figure out what the heck is actually going on.

Quote:
Originally Posted by radertj View Post
Typically bad programming practice lessens with experience, but moving from a managed to unmanaged environment can be very cumbersome for people who have relied on the former.
Yes, I agree completely.
__________________
Michael 'Adrir' Scott :: Games, Virtual Worlds, Education
Networking | Current Project | Research | Teaching
Adrir is offline   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

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


Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 02:16 AM.






UBM Tech