Programming in Macintosh

Discussion in 'OT Technology' started by nish81, Mar 19, 2007.

  1. nish81

    nish81 OT Supporter

    Joined:
    Jul 6, 2006
    Messages:
    11,182
    Likes Received:
    0
    Location:
    london
    I was just curious about this, and a friend told me that it sucks to program on the Mac because most programs you write for the Mac can't be compiled on windows/UNIX, and also that Macintoshes are bad at compiling/reading/using c++ code - is this true? I'd have thought that since macintosh is a UNIX OS then it should have quite a bit of support for programming :hs:

    and also, is a lot of mac programming done in c++/java? or is a mac-only language used more often?

    im asking because im thinking about starting to learn programming...right now I'm following a python tutorial to sort of give me the basics, and I'm wondering if my macbook will be a good developers computer, or if i can't really write software on a mac that'll reach a lot of people :hs:
     
  2. nish81

    nish81 OT Supporter

    Joined:
    Jul 6, 2006
    Messages:
    11,182
    Likes Received:
    0
    Location:
    london
    so he's wrong right? :o
     
  3. elevator

    elevator The tenants think it's wonderful! ヽ(´ OT Supporter

    Joined:
    Mar 25, 2005
    Messages:
    10,967
    Likes Received:
    0
    Location:
    Houston, TX
    right, Apple Haterade
     
  4. antiyou

    antiyou OT Supporter

    Joined:
    Jul 13, 2005
    Messages:
    25,295
    Likes Received:
    0
    Location:
    in ur base
    he's beyond wrong, but I have heard of problems with java code on macs but I never code java on my mac. C/C++ code on mac is flawless from the terminal and runs on *.nix with no problems for me. The only reason it isn't a developers machine for me is because I need interface interoperability.
     
  5. ez4me2c3d

    ez4me2c3d Cold Member

    Joined:
    Sep 19, 2003
    Messages:
    1,836
    Likes Received:
    0
    Location:
    Minneapolis, MN
    One thing you'll have to keep in mind when you code, is that in order to make your code portable you will have to stick to strict guidelines.

    What I mean is that, for example, you mentioned python. (I code in python as well, so if you want to share ideas feel free.) Python has modules that extend the functionality of the core code, and if you were to use a module that is built for Win32 systems, then no, it wont run on *NIX. On the other hand, there are certain builtin function in Python that only work in one or the other environments, or they produce different results, because they rely on the OS to supply the values.. ie Date & Time.
     
  6. nish81

    nish81 OT Supporter

    Joined:
    Jul 6, 2006
    Messages:
    11,182
    Likes Received:
    0
    Location:
    london
    what's interface interoperability? :hs:
     
  7. nish81

    nish81 OT Supporter

    Joined:
    Jul 6, 2006
    Messages:
    11,182
    Likes Received:
    0
    Location:
    london
    ahh, I get this. like the python module pygame would be okay to use because there is a mac and a windows build of it, but if there wasn't then i shouldn't - gotcha. isn't java meant to be portable though? 'write once, compile anywhere' - something like that?
     
  8. elevator

    elevator The tenants think it's wonderful! ヽ(´ OT Supporter

    Joined:
    Mar 25, 2005
    Messages:
    10,967
    Likes Received:
    0
    Location:
    Houston, TX
    i code java on my mb and it works great :hsd:
     
  9. ez4me2c3d

    ez4me2c3d Cold Member

    Joined:
    Sep 19, 2003
    Messages:
    1,836
    Likes Received:
    0
    Location:
    Minneapolis, MN
    No you are kind of missing the point.

    What I was saying about Python was this:

    When you code, there will be certain objects that will only work on a specific platform, or work on all platforms but the results will be different.

    So as a coder, you must know this and keep it in mind when you code, so that you can "write once, and compile everywhere."

    Otherwise you'll wind up trying to run a program that tries to manipulate files on a windows machine but then fails when trying the same action on a unix machine.
     
  10. TurkeyChicken

    TurkeyChicken New Member

    Joined:
    Jun 26, 2003
    Messages:
    42,913
    Likes Received:
    0
    Location:
    Albuquerque, NM
    [​IMG]

    Anyone who says shit like that is obviously a windows fanboy and hasn't touched a mac since 1998
     
  11. Tvan

    Tvan New Member

    Joined:
    Jun 21, 2006
    Messages:
    9,012
    Likes Received:
    0
    Location:
    Chicago
    .
     
  12. hurleyint1386

    hurleyint1386 Someone has sand in their vagina

    Joined:
    Jan 6, 2005
    Messages:
    3,687
    Likes Received:
    0
    Location:
    Rochester, NY
  13. canIscream

    canIscream Dog Crew is Best Crew

    Joined:
    Nov 20, 2006
    Messages:
    16,101
    Likes Received:
    0
    Location:
    Orlando, FL
    or writes visual basic :rofl:
     
  14. elevator

    elevator The tenants think it's wonderful! ヽ(´ OT Supporter

    Joined:
    Mar 25, 2005
    Messages:
    10,967
    Likes Received:
    0
    Location:
    Houston, TX
    naahhh, I code vb for class... on my mb :naughty:
     
  15. hurleyint1386

    hurleyint1386 Someone has sand in their vagina

    Joined:
    Jan 6, 2005
    Messages:
    3,687
    Likes Received:
    0
    Location:
    Rochester, NY
    switch over to RB (REALBasic, that Mac version).... if you can
     
  16. agent0068

    agent0068 OT Supporter

    Joined:
    Jun 28, 2002
    Messages:
    39,833
    Likes Received:
    0
    you can code in ANSI C/C++, Java, or whatever, so yes, your friend is very, very, very wrong.

    most full-fledged Mac applications are written in Objective-C using Cocoa--that's the more Apple-specific sort of stuff. it sounds like you're pretty new to the developer scene in general and not interested in Mac-only sort of stuff, but Cocoa and Apple's developer tools are nonetheless worth a look as they are incredibly powerful and offer some tremendous functionality for free.
     
  17. canIscream

    canIscream Dog Crew is Best Crew

    Joined:
    Nov 20, 2006
    Messages:
    16,101
    Likes Received:
    0
    Location:
    Orlando, FL
    on the windows side?
     
  18. nish81

    nish81 OT Supporter

    Joined:
    Jul 6, 2006
    Messages:
    11,182
    Likes Received:
    0
    Location:
    london
    oh, ok :hs:

    I think I get it now, but if I don't, I'm sure i can learn the hard way :)
     
  19. elevator

    elevator The tenants think it's wonderful! ヽ(´ OT Supporter

    Joined:
    Mar 25, 2005
    Messages:
    10,967
    Likes Received:
    0
    Location:
    Houston, TX
    si, parallels
     

Share This Page