PDA

View Full Version : Programming on a Mac vs. PC




BLINK
Feb 9, 2005, 08:37 PM
Is there any differences between programming on a Mac and programming on a PC? I am begining to learn how to program in many different languages and was wondering. I only have Apple computers at home.



bousozoku
Feb 9, 2005, 09:28 PM
That was a rather open question.

As long as the language is standards-based, you should have no problem using the language on any platform where it's certified.

That said, anything related to utilising specific operating-system related features such as GUI are much different, except in Java. Since Java is the same output regardless of platform (but version-specific), you can run it on any platform with the correct version (usually the same or newer) Java Virtual Machine.

jsw
Feb 9, 2005, 09:35 PM
As mentioned, Java programming is the same on almost any platform. Traditionally, Macs lagged way behind Windows as far as Java releases are concerned, but the lag a lot less now (a few months, sometimes less). Macs also are much more Java-friendly.

Non-Java GUI programming is, as mentioned, much different. Honestly, enough tools exist on both platforms to make GUI programming similar in experience, though much different in actual code.

C, C++ both program the same on either platform (again, GUI code will be platform-specific).

A giant plus to Mac programming is that you have access to all the UNIX-type stuff in a way which is a part of the OS, as opposed to on a PC, where it all needs to be added on. I love the Terminal app on OS X - nothing like it on PCs.

Finally, if you're backed by someone with money, the tools on PCs are a bit better than what OS X has to offer, but not substantially.

BornAgainMac
Feb 9, 2005, 10:01 PM
Try Java, PHP, Perl, C, and C++. Also AppleScript and Xcode (Think VB.NET for the Mac but based on C, Applescript, or Java). These are all free with every Mac. Nothing to download or buy.

What programming tools are pre-installed with Windows.... none.

dejo
Feb 9, 2005, 10:10 PM
Since Java is the same output regardless of platform

Not exactly. If you are doing GUI-programming with Java, using Swing or something similar, the output can be different depending on the platform, if you are using a system-based look&feel. Even if you are using a cross-platform look&feel, there's no guarantee you will get exactly the same output.

therevolution
Feb 9, 2005, 10:34 PM
Not exactly. If you are doing GUI-programming with Java, using Swing or something similar, the output can be different depending on the platform, if you are using a system-based look&feel. Even if you are using a cross-platform look&feel, there's no guarantee you will get exactly the same output.
It's true. Recently, I got to adapt a Java program that had only been supported on Windows to the Mac. There are some subtle visual and behavioral differences between the two platforms when using Swing. That said, most of the time, it does behave the same.

bousozoku
Feb 9, 2005, 10:47 PM
Not exactly. If you are doing GUI-programming with Java, using Swing or something similar, the output can be different depending on the platform, if you are using a system-based look&feel. Even if you are using a cross-platform look&feel, there's no guarantee you will get exactly the same output.

I didn't say anything about look and feel. The code output is the same and can be run...

Edot
Feb 9, 2005, 11:21 PM
If you are planning on furthering your programming education, for example pursing a Computer Science or Computer Engineering degree then you will be taking classes the use UNIX for everything they do. Having a UNIX box available in your own home, and also being able to do everything else on it as well is a HUGE benefit. As far as coding applications, XCode should do everything you need. I am using Eclipse (Eclipse.org) for a class right now as well.

dejo
Feb 9, 2005, 11:52 PM
I didn't say anything about look and feel. The code output is the same and can be run...

Well, I guess I consider the GUI part of the output...

cluthz
Feb 10, 2005, 07:05 AM
As mentioned, Java programming is the same on almost any platform. Traditionally, Macs lagged way behind Windows as far as Java releases are concerned, but the lag a lot less now (a few months, sometimes less). Macs also are much more Java-friendly.


Win/linux versions of java 5.0 was available in october last year, we probably won't get java 5.0 before late March/April or maybe later.

jamdr
Feb 10, 2005, 08:32 AM
It's true. Recently, I got to adapt a Java program that had only been supported on Windows to the Mac. There are some subtle visual and behavioral differences between the two platforms when using Swing. That said, most of the time, it does behave the same.
As long as you set the L&F to the same on both machines, I don't really see how there could be differences. If you leave the default L&F on, of course they are going to look different--that's the point.

bousozoku
Feb 10, 2005, 10:25 AM
Win/linux versions of java 5.0 was available in october last year, we probably won't get java 5.0 before late March/April or maybe later.

That's simply because Apple doesn't want people staying on Panther. It was the same with Jaguar and JVM 1.4.x.

scholarwarrior
Feb 23, 2009, 05:44 PM
How about hardware as well as software to have a stable workstation for programming in Java and later on Objective-C down the road? I am just getting into it and am wondering what is recomended for being able to program, multitask, and maybe use virtual machine software like Parallels simultaneously.

Catfish_Man
Feb 23, 2009, 06:16 PM
Lots of ram is the main thing. I had Eclipse and Flex Builder running at the same time at my last job, and 3GB was *barely* enough. Then if you're compiling large projects, more cores is very helpful.

scholarwarrior
Feb 23, 2009, 08:31 PM
Any recommendations? I am considering a Mac Pro, iMac, MacBook Pro, and a Sun Workstation.

Lots of ram is the main thing. I had Eclipse and Flex Builder running at the same time at my last job, and 3GB was *barely* enough. Then if you're compiling large projects, more cores is very helpful.

detz
Feb 23, 2009, 09:02 PM
Up until last Friday I was doing all programming on a 13" white macbook and it worked great. I've since upgraded to a 17" macbook pro for the larger screen.

Some info:
- I program in Perl and Objective-C 95% of the time. Macs are good for most languages, if you have to use Visual C++ then they suck :p but other than that you should be fine.
- In college everything was taught in Java, I feel bad for anyone in the CS major that didn't have previous experience(I did).
- Get the basics down first, start with a language that doesn't require compile time because it's easier to experiment. Try PHP or Perl first, PHP might be easier for a beginner.
- READ. Purchase books and read.

scholarwarrior
Feb 23, 2009, 09:41 PM
Up until last Friday I was doing all programming on a 13" white macbook and it worked great. I've since upgraded to a 17" macbook pro for the larger screen.

Some info:
- I program in Perl and Objective-C 95% of the time. Macs are good for most languages, if you have to use Visual C++ then they suck :p but other than that you should be fine.
- In college everything was taught in Java, I feel bad for anyone in the CS major that didn't have previous experience(I did).
- Get the basics down first, start with a language that doesn't require compile time because it's easier to experiment. Try PHP or Perl first, PHP might be easier for a beginner.
- READ. Purchase books and read.

My CS degree is all Java.

scholarwarrior
Feb 23, 2009, 11:27 PM
Any recommendations? I am considering a Mac Pro, iMac, MacBook Pro, and a Sun Workstation.

Is 2 cores and 4GB plenty, or is more still better?