My 1st ever program (almonst)!!

Discussion in 'iOS Programming' started by aaronchow, May 1, 2010.

  1. aaronchow macrumors regular

    Joined:
    Sep 29, 2007
    #1
    I just want to share with you that I just created my first ever "Hello World" text displaying on the terminal. Not quite a program yet, but will be soon eventually. It is quite an excitement as this is my first time learning programing. Joy, everyone! :)
     
  2. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #2
    I'm glad to hear that you are starting with Hello World. It's a long-standing tradition!
     
  3. PatrickCocoa macrumors 6502a

    Joined:
    Dec 2, 2008
  4. aaronchow thread starter macrumors regular

    Joined:
    Sep 29, 2007
    #4
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16)

    I didn't know programming is all about mathamatics until now. I am not good at math. The last math class I take was Advance Algebra. I think I need to take Calculus and beyond besides learning programming from now on. Joy, everyone.
     
  5. PatrickCocoa macrumors 6502a

    Joined:
    Dec 2, 2008
    #5
    Mathematics

    aaronchow, I didn't quite understand your last post. But if you're implying that you need calculus to program you're wrong. Unless you're planning on writing a mathematics program, for example one that finds derivatives or integrals of user-input formulae.
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    It's not. What gave you that idea?
     
  7. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #7
    Advanced math itself is not necessary for programming. However, it is important that you are very comfortable with logic and logical thinking, which taking advanced math classes can often help with.
     
  8. aaronchow thread starter macrumors regular

    Joined:
    Sep 29, 2007
    #8
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16)

    I am reading "Programming in Objective C 2.0,"
    (recommended by one of the post here, thanks). I just finish reading the loop statements. So far the author is using mainly math equations to solve his problems, like:

    - reading some intergers backward (input: "1234"; output: "4321"): The author then divides the number by 10 and simply takes the remainder.

    - check if an interger is odd or even: n == n / 2 * 2

    The more i read the book, the more the author impresses me. I have never thought math can be so useful (besides counting changes and coins), so I didn't pay too much attention to it (just passed the class and never pick up the books again). Now I actually find math can help problem solving, I went to ask my dean to add a calculus class back on my senior year. Yap, I am still in high school ><

    I am not far behind to all of you. I hope I can contribute my knowledge to help others soon. Joy, everyone.
     
  9. MrCrispy macrumors member

    MrCrispy

    Joined:
    Apr 10, 2008
    Location:
    Jacksonville, Florida
    #9
    I've been programming in various languages for almost 15 years now and I've never used math beyond basic algebra (and that's having written more than one Insurance and Financial related applications). Calculus is overkill. The books like to use math an example which is something that's always annoyed me about programming books.

    I'd be much happier seeing text manipulation and such in books, personally. That's a subject very few seem to like to cover.
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    I think math as examples is used more frequently because something like int x = 2 + 3 is simpler and easier to understand (in many languages) than something like String str = "first name" + "last name", which can vary quite a bit in how it's done.
     
  11. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #11

    I'm in mostly the same boat. I just started messing around with 3D programming, and that's a whole other beast. There can definitely be some complex math involved there.
     
  12. MrCrispy macrumors member

    MrCrispy

    Joined:
    Apr 10, 2008
    Location:
    Jacksonville, Florida
    #12
    Don't get me wrong, those type of things are great for showing the concepts of variables and basic functions. I'm not saying they should leave the math demonstrations out all together, it just seems to me that they tend to gloss over the text stuff in most books. Especially with iPhone development and such. The whole NSString thing is a bit difficult to wrap my brain around coming from c# and vb.net and JavaScript and, other than that one objective c book, I have yet to see a book that spends a decent amount of time on the concept.
     

Share This Page