Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 24 Jul 2011
Offline Last Active Jan 06 2013 06:38 PM

Topics I've Started

Programming progression

03 January 2013 - 04:43 PM

EDIT: Please move to beginner forum. And since no one seems to know what I'm asking. Think of it as a curriculum. A path.

I'd like some insight as to what path is normally followed while learning programming. Using python as an example, I was looking around for some solid books to learn from and I came up with the following categories.

General language books - basics of programming/python language
Intermediate books - intermediate language/real world programming concepts/larger projects
Specialized books - GUI/web/network/Game programming using python
Mathematics - Mathematical programming
Algorithm/Data Structures - Algorithm and data structure programming
Reference - Complete language reference

I'm sure I could just go from language books to intermediate and then do whatever I feel like, but I tend to thrive on structure so I would like some core themes to follow as I learn programming. With subjects like programming there doesn't seem to be any standard progression to follow. I tend to get overwhelmed because I have no idea what programming can do or how to do them, all I've learned thus far are languages and basic programming concepts. I have a hard time understanding how I can go from basic programming to writing my very own program. What exactly are the next steps?

Progression examples followed by book recommendations for those examples would be greatly appreciated.

Casual Programming?

07 December 2012 - 07:08 PM

Now, this may sound a little odd, but I have a unique situation (See next section) and some ideas might be able to help me out. Is there any reason to casually teach yourself programming other than for enjoyment? Self-teaching is not my strong suit. I thrive on seeing something done and having a completely structured plan of how I am going to learn it and when I am going to learn it. I have a feeling I may pick up bad practices or go routes that, when I eventually attend college, will either not help or hurt my progress.

Unique problem: Dealing with depression. I don't really enjoy much these days. I once enjoyed programming and I am convinced it, or at least something related to computers, is what I want to do if I can ever deal with my problem.

I guess what I'm looking for is a reason to not just say screw it until I go to college. But honestly, it might be the best choice. Thoughts?

I don't understand -- References confusion.

01 March 2012 - 01:18 PM

EDIT: sorry, I don't know how to paste C++ code so it formats itself, I don't type everything left justified like it shows up.

Hello, I'll try to explain this as best I can. I'm having trouble understanding what this code is...saying...It's just an example exercise from a book, but I'm not sure how to 'say' to myself what this code is doing. Specifically the lines that are commented.

#include <iostream>
#include <conio.h>
using namespace std;

class CAT
CAT(int age) {itsAge = age;}
~CAT() {}
int GetAge() const {return itsAge;}
int itsAge;

CAT &MakeCat(int age); //What is this 'saying'?

int main()
int age = 7;
CAT Boots = MakeCat(age);
cout << "Boots is " << Boots.GetAge() << " years old."  << endl;
return 0;

CAT &MakeCat(int age)
CAT *pCat = new CAT(age);
return *pCat;

//also, the code compiles but the book says there is an error
//probably a memory leak situation. Don't worry about it.

I understand it's saying it returns a CAT object, but is it saying it's a reference function or something, what does a reference function mean?
I hope you can understand what I'm trying to ask.
Thank you.

Understanding 'Classes'

27 November 2011 - 03:59 PM

My book that I'm self teaching from doesn't do the best job from the start of explaining what exactly classes are for and in what situations I would need to create my own class. So far the book has taught me the syntax by creating a Point class and a Television class. However, I'm just not grasping the why's and when's of creating my own class. I understand making a class that isn't supported in python by default...but what kinds of classes like that are necessary? can someone give some more examples and explain when/why you would need to implement them?

I know it's a little vague, if you need more information of what I'm trying to convey here please let me know. Thank you!

Python function inheritance?

26 November 2011 - 02:35 PM

I'm not sure if the title is 100% accurate but I'll try to describe what I'm having troubles with as well as I can. I want a second function to be able to recognize the variables defined in function1...here's some code to help show what I mean. I think what I'm looking for is called inheritance but using google I wasn't able to word properly what I was searching for.

def function1(word,number):
    print word
    print number

def function2():
    print word*2
    print number*2
function2()  ##How do I make a call to function2 that automatically uses the previous variables word and number?