What did I do to learn coding? - Read books, tutorials, etc. - ask questions, lots of questions; also program the same things over and over to learn the structure, code, and to remember how to solve certain problems e.g. collision detection (while this isn't one I know how to do, I know if I were to write the code a few times I'd learn it and memorize it).
Originally Posted by hoboy
I program to solve problems - e.g. I made programs to organize data, make my own windows in python and pygame, and to make programs which help me stay focused on tasks and such.
Detail focused? I'll read programs I've made before and have no clue what I was doing with the program, so I'm learning to comment better so if I re-read the code I'm like oh yeah that's what that does.
My approach was, dive right in, try a few simple programs, work up to the complex stuff.
Best approach for OO programming is when is extensibility more usable? E.g. with the windows in pygame, did I want to script all of those again or just make a class and be able to quickly create those objects over and over for varies use. Why write a script once when you need to reuse it? Here's an example:
Secret to programming? Keep at it, don't just say I don't get it and give up; keep trying and if you have problems ask, we're here to help =D. The secret with me is to keep trying and pushing and you'll make wonderful things.
stk_win1 = STKWindow(screen, 1, 25, 25, 200, 200, (MAXIMIZE, MINIMIZE, CLOSE))
stk_win2 = STKWindow(screen, 2, 30, 30, 500, 500, (CLOSE))