There is no easy way to answer this question. You can definitely get a more powerful PC for the price. With the Mac, you are buying some brand, some better construction, and a lot of better customer service. You are also buying OS X, which may or may not be attractive.
I used Linux for many years as a primary development machine, and it was great. Ubuntu is doing a good job solving the "there is no good desktop for Linux" that was pretty true five years ago.
That said, I prefer my Mac because I get almost the same ability to play at the command line (I spend most of my day in Emacs right now, including running my shells there), but I also get a refined experience when I'm interacting with applications outside of development (e.g. Garage Band, Pages, Keynote, etc).
In the end, I didn't switch for development, I switched for all the time I use my laptop when I'm not developing. For me, it was worth it, but YMMV.
If you use Emacs all day on a Mac, what do you use for the Meta key? I find I'm not really happy no matter what I do. If I make Option into Meta, I have to bend my thumb way under my palm to hit Meta. If I make Command into Meta, then I lose access to lots of global Mac UI shortcuts. I guess I could experiment with swapping Option and Command and then using Option as Meta, although I'll have to retrain a lot of muscle memory.
And then there's the fact that one Emacs window in a terminal is still not as productive as five Emacs windows under X11, and X11.app still sucks, and the various native Mac Emacs ports still don't feel right to me.
Overall I find using Emacs on Linux X11 still provides the best Emacs experience. This alone will probably keep me on Linux as my primary work environment for the foreseeable future.
* Meta is mapped to the Command key (and the option key). * Control is mapped to control. * I suppose I should try to remap the Fn key to be Control to really make it work right instead of the weird curve that currently has to happen.
When I really am interested in getting typing done I hook up a MS Natural 4K. It's a much more pleasant experience. My keybindings are customized for maximum ease there (and believe me, my hands/wrists do not hurt after a long-term coding session there). Laptops are fine for messing around for a while, but after a period of typing my hands hurt.
With a Linux machine, you'll have an environment closer to whatever server your application will run (nobody deploys on OSX and nobody sane deploys on Windows), which is a bonus. Plus, package management will save you lots of time. If you want to partition your machine on several environments, you can use Linux containers to do that and have many little Linux "servers" running without interfering with your desktop and taking up very little resources (much less than full blown VMs would).
Disclaimer: I am writing this on a Mac. I love Macs, but I work on Linux.
As others have stated I think its what you do outside of development. Also you can look at the osx86 project if you're adventurous.
I've been researching this setup the past few weeks, and it appears the only issue was that the linux gfx drivers for the HD3000 gpu (embedded in the i5/i7 Macbook Pro Sandy Bridge cpu's) were still alpha/beta quality, but apparently that's fixed in Ubuntu 11.04.
I'm still see-sawing though. My other option is to get a tricked out custom Sager with the latest Nvidia GTX 485 gpu and use it to start farming bitcoins (and perhaps learning CUDA). The embedded HD3000 gpu in Intel i5/i7 gets very good performance for an on-chip gpu (google for it), but is not in the same league as the 485 GTX.
http://www.xoticpc.com/sager-np8150s1-clevo-p150hm-p-2981.ht...
iOS development vs bitcoin farming and CUDA is the tradeoff, still thinking that through.
I spend 90% of my time in Ubuntu (mainly developing).
I honestly think that if you're tight on cash and you just need a machine for development, get as much CPU-cycles and stability for your money as you can, and run a linux distro.
What makes a big difference to me is the display quality and the battery. Apple tends to have very good batteries. That's why I personally would buy an used Unibody Macbook or Macbook Pro, one of the recent types with the long-life high-capacity batteries.
I do mainly Linux development work, on Ubuntu, using an older Macbook Pro, and everything just works great and is super smooth to use - in fact this is the best Linux machine I have used!
I'm a student in India and in a dilemma about buying a Mac or buying a windows machine (dual booting with Ubuntu 11.04 ). At about 3/4th the price of a Mac I can purchase a more powerful windows laptop and boot up Ubuntu ( and thus avoid windows altogether ).
I need a workstation for Ruby on Rails/ Node development. Since my parents will be the one paying, I want to be sure if Mac is worth it. I've never worked on a Mac before but since I've read that most startups that are hiring offer Mac to developers, I'm guessing owning a Mac would really make development more enjoyable. Would love to hear your guys' thoughts on this.
Thanks a lot.