Starting Place to Learn How to Program

Discussion in 'Mac Programming' started by Dmac77, Aug 2, 2008.

  1. Dmac77 macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #1
    Hi,

    I want to Program. I have no idea where to start, but I know that I want nothing to do with Windows Programing. I have some basic Apple Script knowledge, but other then that, I have no idea. I would really like some suggestions on what languages to start with, and some good resources to learn how to program in those languages. I'm really sorry if I'm being vague here, but I really don't know how I can be more specific. By the way, if it matters, I'm 14 and pretty good at math.

    Thanks!

    Don
     
  2. Aranince macrumors 65816

    Joined:
    Apr 18, 2007
    Location:
    California
    #2
    I recommend checking out Python, its a great starting place for learning how to program.
     
  3. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #3
    this comes up about once a week. Click my username or that of a lot of other frequent posters and you'll find lots of responses to threads like this.

    -Lee
     
  4. Dmac77 thread starter macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #4
    Could you please recommend some resources on how to start programing with python? What do I have to download to start? What is a good book/tutorial for learning python?

    Thanks!

    Don
    (sorry if I'm being to needy!)
     
  5. liptonlover macrumors 6502a

    Joined:
    Mar 13, 2008
    #5
    if you want to get into C/ObjC/Cocoa then go to www.cocoalab.com/ and go through their becomeanxcoder tutorial. It assumes you don't know how to program, and it's a great tutorial besides. From there you can find online resources of which there are many, you can get cocoa programming for mac os x (3rd edition), you can get information out of the apple documentation, tutorials, and examples. You can also always ask questions here.

    C is probably the most common language, it's a great base language, learning a bit of it will put you in a better position to learn other languages. If you're interested in really getting into C and/or C++, go to www.cprogramming.com/. I used cprogramming.com before I found cocoalab and it turned out to be a great place to learn C. It's a few years out of date but it's still valid. You will have to figure out how to compile a C program in xcode though, or find another editor/compiler.
     
  6. ham_man macrumors 68020

    ham_man

    Joined:
    Jan 21, 2005
    #7
    Learning something simple, such as Python or TIBASIC (I learned how to code by fiddling around with that in Algebra), to get you thinking like a programmer is always a good route. Then you can dive into simple, base languages, such as C, at which point moving into modern Object-Oriented languages, such as Obj-C, C++, or Java, will be much easier.

    But remember, don't rush things. Take it slow and make sure you learn how to do things right. There is nothing more difficult than unlearning crappy coding practices you picked up when you were first getting started.
     
  7. Dmac77 thread starter macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #8
    Thanks everyone! I'll have to look into python more and C languages. Python seems easier to start with, and I don't want to overwhelm myself and end up hating programing because I over stressed myself. Thanks for all of the info!

    Don
     
  8. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #9
    Python is a modern object orientated language. Certainly more modern than C++ and Obj-C anyway.
     
  9. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #10
    I think it will help to drive you through the learning process if you have something in mind that you want to program, something that you will find interesting and fascinating enough to keep your interest up. For example you may want to create a simple game, or tool. It will also help in your selection of a language and development environment from the endless number out there. If you're good at maths then you might find the area of graphics and/or physics interesting. You could try writing a simple lunar lander game, or a fractal generator for example. The most important thing though is to have fun.

    b e n
     
  10. Dmac77 thread starter macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #11
    Thanks!

    My eventual goal is to end up working on OS development for Apple (I can dream can't I). But for know I'm really interested in programing some dashboard widgets, and maybe working on some iPhone/iTouch apps. I picked up a book on Python today (Learning Python, By:Mark Lutz) and so far I am finding it pretty easy. Thanks for all your help!

    Don
     
  11. Dmac77 thread starter macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #12
    Hey another question guys. What Should I use to write my code in? Can I use xcode, to code in Python? I was reading another thread that said that Coding in xcode can be complicated because of libraries or something like that. Some clarification on that subject would be appreciated!

    Don
     
  12. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #13
    I'd use IDLE if you are coding in Python. But you will need to install Xcode anyway.
     
  13. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #14
    Sounds like you need to get hold of Apple's Dashboard IDE and learn JavaScript.

    JavaScript would be quite a good thing to learn anyway. Have a look at this link https://www.squarefree.com/bookmarklets/webdevel.html. Shell and jsenv are really useful and will let you play around and experiment with JavaScript easily.

    b e n
     
  14. Dmac77 thread starter macrumors 68020

    Dmac77

    Joined:
    Jan 2, 2008
    Location:
    Michigan
    #15
    Thanks! I'll play around with Python first though, because so far I'm having very few difficulties with it, and try Javascript later on.

    Don
     
  15. The iKid macrumors member

    Joined:
    Apr 6, 2008
    #16
    Hi I'm happy your doing so well. Were the same age and apparently interested in the exact same thing. And we both have the same dreams. Just a question, where can I find this book?
     
  16. ham_man macrumors 68020

    ham_man

    Joined:
    Jan 21, 2005
    #17
    I realize this, but I mainly suggested it because the learning curve for Python is much less steep than for C++ or Obj-C, and much easier for a beginner to tackle.
     

Share This Page