macOS coding

Discussion in 'Mac Programming' started by grandM, Apr 25, 2019.

  1. grandM macrumors 65816

    grandM

    Joined:
    Oct 14, 2013
    #1
    As apple moves forward into merging iOS and macOS is it worth the hassle to learn macOS API still?
    Are there good recent books on macOS coding?
    Isn't it better learning kotlin or java and running your program on all environments in a java VM or is performance bogus?
     
  2. SecuritySteve macrumors 6502a

    SecuritySteve

    Joined:
    Jul 6, 2017
    Location:
    California
    #2
    The difference between the macOS API and iOS API is very marginal from a coding perspective. Java VMs suck for performance.

    Learn Objective-C and Swift.
     
  3. grandM thread starter macrumors 65816

    grandM

    Joined:
    Oct 14, 2013
    #3
    are there good recent books on macOS api
     
  4. grandM thread starter macrumors 65816

    grandM

    Joined:
    Oct 14, 2013
    #4
    how bad is the performance impact of java VM actually?
     
  5. SecuritySteve macrumors 6502a

    SecuritySteve

    Joined:
    Jul 6, 2017
    Location:
    California
    #5
    One benchmark from 2011 done by Google measured the difference between Java and C++ (not that different from Obj-C or Swift on Mac) could be as high as a factor of 10.

    Source:

    https://days2011.scala-lang.org/sites/days2011/files/ws3-1-Hundt.pdf

    As far as good books for Swift or Objective-C, I know Apple has a coding curriculum that teaches coding in their languages, but I could not personally recommend one as I am self-taught.
     
  6. szymczyk macrumors regular

    Joined:
    Mar 5, 2006
    #6
    Hacking with macOS is the only up to date Mac programming book I know of. You might be able to find the Big Nerd Ranch's Cocoa book on Amazon, but the latest version uses a really old version of Swift so you would be better off with the edition before that in Objective-C.
     
  7. okieiam macrumors member

    okieiam

    Joined:
    Dec 17, 2016
    #7
    I doesnt really matter which API. Everything just like open file, draw some thing, call some function. Not importtant. Do you see any Apple software more special than Windows or Ubuntu software? The fact it, what you can do? What kind of computation you want to do?
     
  8. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    Location:
    betwixt
    #8
  9. Mascots macrumors 68000

    Mascots

    Joined:
    Sep 5, 2009
    #9
    IMO this June will tell.

    I work with both UIKit and AppKit and at the moment UIKit is limited in comparison to AppKit. With that said, UIKit, due to a more rapid, larger audience, and consistent update cycle is much nicer to work with in many cases.

    I think it's going to boil down to the depth of the experience you want in a macOS app for a long while: something small and quick, Marzipan. Something more depth, like window control, go with AppKit.

    I personally am hoping two thing from Marzipan: UIKit being force to adopt some of the deeper experiential frameworks from the Mac to allow for more complex iPad apps (plz give me tableview columns) and AppKit to pull some of the view layering techniques and practices common in UIKit API back.

    Stick with the core languages, though, because no matter what Apple decides to do, you'll be able to take the best avenue.
     
  10. okieiam macrumors member

    okieiam

    Joined:
    Dec 17, 2016
    #10
    I remember the old school day, when the industry introduced RAD (Rapid Application Development), and Microsoft voluntarily innovation University program and Visual Basic. A breakthrough that bring coding principle to the students at almost any discipline. Decade later, Sun's Java follows, then Google's Android.
    Now people talk about big data, AI, etc, coding is no more a job of scientist, but one of tailors instead.
     
  11. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #11

Share This Page

10 April 25, 2019