Programming

Discussion in 'Mac Programming' started by Nicolasdec, Apr 30, 2007.

  1. Nicolasdec macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
    #1
    I want to start to make applications for Macs and PC’s. But I have no experience with any type of programming language. What is the best Syntax to learn I was thinking of Ruby, Which is the easiest to learn? Do you know any good website that will help me learn them. I prefer reading from the internet rather than a book.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Do you mean desktop applications or web applications? Ruby is more common in web applications. If you want to make something that runs on both without significant alteration then Java may be a good bet. The problem with targeting both platforms is that your app may end up feeling like it does not belong on either platform. If you want to take full advantage of the Mac platform Cocoa or Carbon are you best bets (or even a combination) but this will result in a Mac only app.
     
  3. Nicolasdec thread starter macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
    #3
    Thanks for the reply, Im fine making apps just for macs. whitch is easyer cocoa or carbon? Also what programs will i need. I Have xcode. can you tell me any good websites were i can lern cocoa or carbon.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I've never tried to use Carbon for a whole app. I think Cocoa is pretty easy to learn. Start off with learning Objective-C (the language that the framework uses) then work through a few of the tutorials. Ensure you understand how the memory management system works, delegation and perhaps bindings.

    In terms of tools XCode+Inteface Builder are all you need. That's what Apple use to write their apps so it should be good enough for you :D

    You can get some basic tutorials from Apple and there are more here.

    If you get stuck you can always ask us question here but make sure you have checked the documentation first :)
     
  5. Nicolasdec thread starter macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
    #5
    Thanks, How long do you think it will take me to lern it and make a simple app? How do you think programming compairs to HTML?
     
  6. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #6
    html is to programming as
    safety-scissors are to a chainsaw.
     
  7. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #7
    Nice :D
     
  8. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #8
    Do you haven any programming experience at all? I sounds like maybe not.

    If you are starting from scratch. It will be a while before you will be able to write even simple graphical applications. Start with simple stuff that works on the console. The classic first program simply prints "Helo World" then quits and accepts no user input.

    If you were to take a programming class they'd have you write text based programs to do things like computer the lowest common denominator of two fractions or simulate a vendiong machine or read key presses on a microwave oven and controls the display and the on/off switch for the magnitron. Get this to work first then try the graphic user interfaces.

    You need to learn about loops and pointers and arrays and exceptions and so on and so on.

    Which language? It hardly matters. Once you learn one the basics tranfer over to another one. Read the above paragraph again. all languages have loops, conditionals and so on.
    It is easiest to learn an interpeted language because you get fast turnaround, just edit and run. Python is not bad. But for serious cross platform programming C++ has become the standard.
     
  9. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #9
    Complete novice I would say download XCode and start going through the examples. There are a lot of things you can do in cocoa without much if any programming.
     
  10. Trogloxene macrumors regular

    Joined:
    Apr 17, 2007
    #10
    Depending on what you want to make, most things can be made Flash or Director. This would be way easier then learning C++, and the stuff you make will run on Mac, Windoze, and the Web.

    -T
     
  11. mags631 Guest

    Joined:
    Mar 6, 2007
    #11
    Seconded.

    Don't worry too much about which language to learn at this point. In the end, once you master the basics of computer programming, you can learn new languages without too much fuss.

    Learning to program well... well, that's a different story and has very little to do with the programming language.
     
  12. Soulstorm macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #12
    First things first, you will need to learn a programming language prior to learning how to program with a GUI. Learn C++ or objective-c, both will come in handy in the future, especially if you are programming for OS X.

    Secondly, do not use internet as your only resource. Buy a good book, go through it all, then open the internet, go into the forums, and ask many things. That's the best method to learn how to program. The value of a good book is great, in my opinion.
     
  13. Muncher macrumors 65816

    Muncher

    Joined:
    Apr 19, 2007
    Location:
    California
    #13
    First start off with C. Once you've mastered that, go on to Obj-C if you are sure you're going to program for the Mac, and C++ if you're going to code in Windows or Linux. The reason I say this is because it might take a while to pick up your first OOP language (sure took me a while) and C++ is highly supported on just about all platforms. Otherwise, Obj-C is a nicer, cleaner language.

    Don't start with Ruby. It's too abstract for a beginner.

    Good Luck!
     
  14. Les Kern macrumors 68040

    Les Kern

    Joined:
    Apr 26, 2002
    Location:
    Alabama
    #14
    Think about RealBasic. All the tools and terms are there for you to learn, it's simple to use initially, it makes Mac, WIN and Linux apps. If price is an issue, this is a little steep if you want the version you can make commercial SW, but the EDU rate is 70 bucks. Here's a screen shot of an app I'm making to give you an idea of what the UI looks like.
     

Share This Page