21 points · by anon87 · 17y ago · 97 comments
My criteria are: most productive for web development lowest possible maintenance
I mostly develop in python and also do a lot of HTML/CSS editing
what would you recommend and why? what software would you use on a mac? what are the major disadvantages of a mac over pc?
For one, Mac OS X comes with a Python version installed. It also comes with a whole toolbox of Unix utilities, including a number of text editors. (There are many other 3rd party text editors for the Mac, too. Though I stick with "vim" or Xcode myself, both of which are included.)
You can't understate the value of being able to pop down to the Unix layer when needed. There are lots of times where a simple "grep" or "cp" or "mv" is exactly what you need, and I love that this is just built in to the Mac. If you aren't that familiar with Unix commands, I think it's knowledge well worth having; most of the basic ones are really not that hard to use.
I have to use Windows at work, and I have to say I'm amazed with how little it comes with. While it is possible to work productively on Windows, I have found this is only true after a large setup cost. So if you don't mind downloading stuff for hours, you can eventually get the right tools. Still, I have never found Windows tools to be as "integrated" as Unix utilities are; every Windows program wants its own scripting language, its own hackish way of doing things (in my experience, that is; YMMV). Microsoft's command prompt is also pretty lousy; it really doesn't compare to a Unix shell, and the idea that you could only get that level of power by installing all of Cygwin, is a turn-off to me.
On my Mac I can test Mac versions of Safari, Firefox, and Opera. I can also have virtual machines to test for Windows Firefox, IE6, IE7, and IE8 at the same time. If I were on a PC I would only be able to have one version of IE installed.
It's still funny to me that to develop websites that work on all of the Windows browsers a Mac is the only thing that makes sense.
That's not true. You can have virtual machines to test multiple versions of IE, too.
The biggest win on OS X for me is all the slickness of the desktop (Ubuntu doesn't even come close), and adding easy virtualisation to drop into any OS you want (my choice is VMWare Fusion, but Parallels or Virtual Box work too). Best of both worlds.
The advantage Linux has is that if you do not like the desktop you can switch to another.
Same here. I bought a Mac Mini for some dev work, and the UI drives me nuts. It's pretty, but so far requires way too much mousing and clicking.
I'm sure much of my angst is habituation from using a customized Kubuntu install, but as best I can tell those customizations are much easier in KDE than on the Mac.
I wrote a blog entry on this. although it's from a hobbyists's perspective: http://blog.uncool.in/2009/03/10/thoughts-on-using-a-mac-as-...
Nor are Macs. Every piece of software needs to be updated manually, as there is no system-wide update manager. If you want to install UNIX software (like C libraries that your language needs to bind to), you will need to install some sort of ports system, and maintain that. (When I used a Mac a few years ago, none of the ports systems all had the latest versions of packages I needed, so I had more than one installed. This was a fucking nightmare to maintain.)
Anyway, this (along with Apple's evil-ness) is what killed OS X for me. Yeah, it's really pretty, but it is too hard to maintain. Debian is much better. It is never missing anything I need, and full-system updates are just an apt-get away.
For programming, nothing beats a good UNIX system, as long as you are willing to learn how to use it properly.
macports is pretty much dead simple to deal with. And if you want to install something straight from source on OS X it is often no more difficult as it is on linux. My servers are all debian and ubuntu and it's basically painless using them side by side with OS X all day. Plus, with OS X you can have most linux desktop apps + any OS X apps. Even so, OS X is definitely not necessary if someone spends all of his or her time in the shell, and if that's the case linux would be a better choice.
Things change. Hackers have been migrating to the Mac en masse. So MacPorts has gotten better and better.
Two or three years ago I went through the pain of installing Ruby/Rails, MySQL, Apache, and git from source -- that was the popular choice at the time, because MacPorts was just not up to date. But MacPorts now has current versions of ruby, mysql, git, and apache, so it's time to switch back.
Yeah, it's probably not as good as apt-get. On the other hand, on the Mac I have Mac software, which more than makes up for it. And if I'm ever nostalgic for apt-get a Linux virtual machine is not far away.
If you had said Debian, I would have agreed, but Ubuntu is just a pain to maintain.
I use PCLinuxOS on my PC. So far, I don't have any qualms. Simple, easy to use and new releases come out when the developers feel the time is right.
Having said that, the shell in OS X is really useful and a lot of Linux stuff you'll be using (Python for example) feels nicer in that shell than under Windows. Others here have commented on the "unix core" and it definitely is a benefit.
For me, though, I'm content to use Windows and Putty/VNC into my Linux box when required.
If you can, play with a Mac before you buy it. Developers tend to be a picky bunch so what works for others may not work for you.
no need to use mouse to scroll, move, resize, min, max window ... huge time saver
It's also easier to do something like read directions on a webpage while you execute those directions in another window without hiding it when accidentally clicking in the browser.
I hide the Mac OS dock on day one and never look at it again, except for every couple of days when I have to relaunch Quicksilver. (It's not the best-maintained piece of software in the world, and it has some kind of long-term memory-management issue. One of these days I might have to try Launchbar instead.)
If you are really working and not playing around with desktop cpu monitor gadgets or trying out hundreds of time organizing schemes instead of doing some actual work, you will come to the conclusion that it's not that much about the editor, or the OS you are using, it's all about cpu and memory cycles you wait for while compiling, debugging, testing.
Since Macs aren't actually known for their "bang for the buck" ratio (in hardware terms), I'd go with a PC and install either Vista or Linux. Mac OS X simply doesn't add that much value to justify the price difference (plus it has its own quirks and wtfs).
Did you miss the part where the guy did a lot of Python development and HTML/CSS?
"Why are you sword-fighting in the hallway?" "Oh, I'm waiting for my CSS to compile!"
Last year DHH claimed to be doing all his Rails development on a MacBook Air, a wonderful machine which I really like but not the fastest computer around. On the other hand, it's still faster than anything I had years ago. And the speed difference between the Air and my 24" iMac doesn't much matter for Rails, unless you recompile your MacPorts or rubygem docs on an hourly basis.
But, if you see no value in the Mac OS, by all means use something else.
And emacs is not the apex of what an editor could be. Not even close.
(For this technique to work, though, you need to be very comfortable with the keyboard, and you obviously have to disable desktop-switch eye candy. Not a problem with xmonad ;)
If you happen to be starting at the place I work, the only way I can get a Mac is if new employees say they want a PC. Otherwise I'm stuck. I don't know if I'm next on the list, but even if not that'd get me one step closer to my Mac.
So, yes. That's why you should pick a PC.
Especially for Python, which is installed in Leopard but is frozen at 2.5.1, and general web development, you won't struggle at all in Linux. If you're comfortable in a portable power editor (read: vim/emacs) then you're golden. Plus, apt-get is _incredible_. Coupled with multi-booting or VM'ing, you'll happily test across multiple operating systems and browsers.
Until the latest generation of consumer Macs the limit was 4gb, though now if you spend $500 you can get 2x4gb DDR3 for an iMac or Macbook (though the Macbooks can only address 6gb). In the PC world, you can get 4x4gb DDR2 for a desktop Core2 motherboard for $350, or 6x2gb DDR3 for a new Nehalem motherboard for $240.
If it's a desktop, I won't comment, that's entirely up to you (maybe others have advice) - I haven't used a desktop regularly in at least a year. If it's a laptop, though, unless you work in a totally Windows-centric environment, a MacBook Pro is the only choice (even in a Windows shop, I'd consider it since you can dual boot and the hardware itself is really nice). Get one N-O-W.
Seriously - these things are freaking awesome, ever since I got one I can't imagine ever buying anything else. I've never met a person that bought one and didn't absolutely love it. First laptop I've ever had that didn't feel like a cheap plastic toy...
Go for a 15" matte screen, though - the bigger ones are too cumbersome, and the glossy screens just suck.
Why do you say that? Thinkpads are built much better, and IMHO are better-looking. You should only get a MacBook Pro if you want to run OS X. If you are going to run Windows or a UNIX, you definitely want a Thinkpad.
(Only disadvantage is that Thinkpads are a real pain in the ass to buy. "Ships in more than 4 weeks." Fuck.)
Particularly since work is buying the computer, I'd get a Mac for the hardware, and then decide what OS to throw on it later. You can run whatever you want on a shiny new Macbook Pro.
2) Intel/Mac or Intel/Linux, so you can run IE6/7 in a VM/Wine. Macs are lower maintenance.
3) TextMate/Coda or Xcode (or Scribes in Gnome) will be your definite friends, as well as Terminal and Firefox/Safari's debugging features. Python and the relevant libraries come with both systems and are easy to add to.
4) Would not recommend any Windows version for doing either development or design. Or anything mission-critical, for that matter. All the software you need comes with the Mac in the "Developer Tools" package on your Leopard DVD or in the public repositories for your Linux distro. You'll find many more choices are available, and you may even fall inlove with some.
Major disadvantages of a Mac over PC would be that the hardware is mostly set in stone at the time of purchase, which can, even if rarely, become a nuisance. There is some very strong classic gaming going on on the platform, but new titles often go on by not noticing OS X, which can be a bummer if you like your machine to be your do-everything, including being a gaming console. There are no disadvantages in relation to development, however.
And now for something completely different: don't let them buy you a Mac if you won't own it when they do. That is, there will most probably come a point when you'll want to own it.
The MacPorts package manager works surprisingly well, but I still miss my Ubuntu when I have to install other stuff than the Unix things.
Also, the preinstalled programming languages on OS X might get in the way of the ones you install with MacPorts. Another case where I prefer Ubuntu, because it reduces the number of "app managers" messing with the system.
By using VMWare, the OS you use doesn't actually matter that much as long as you have a decent terminal and your personal editing weapon of choice (jEdit in my case).
Windows is inherently high maintenance in my experience unless you keep your installed applications to a very specific short list. Uninstalling software, or worse, drivers, can be an exercise in frustration.
I've never had an issue removing software on OS X as applications are generally quite well behaved or they're effectively managed by the Darwin Ports system.
It's also great that doing source installs on OS X is trivial. I don't think the same can be said for Windows. Tradition is to go the binary installer route there, and there's so many badly written installers.
While I respect those that choose to use a Linux-based desktop, as it can be quite a chore to keep up to date and tricky to get different apps to work together politely, I'd say that approach only works for people with intimate familiarity with the various quirks and caveats of their distribution. To get something like Debian, Ubuntu or Gentoo running in top form takes talent.
Making Windows into a productive development environment can be just as much of a challenge, too, and there's some things that can never change. The registry is a persistent horror, drive letters and backslashes in paths are an extreme nuisance, and the second-class status of things like a proper command line shell and compiler are just examples of my grievances with Windows.
While it's possible to glue together a workable environment in Windows, especially if it's just for something simple like PHP + MySQL, once you really want to stretch your legs and be more adventuresome you may run into trouble.
Although it could be fanboyism, 99% of the people I see at web-biased conferences are on Mac machines. It's the singular dude using the Dell who's doing the "think different" thing.
if i have to buy myself: used pc for sale, install openbsd/ubuntu and i'm ready
but of course ...
no vim ... no work
I'd suggest that if you've never used a Mac, the potential lost productivity you'll have using and learning an unfamiliar OS could be a burden to you.
What have you been developing on up to this point?
My weapon of choice is the MacBook Pro. Pretty fast hardware. Swap in a 500gb hdd and triple (or more) boot os x, windows (xp and vista), ubuntu, bsd, etc.
Or you can get a bunch of different machines and use synergy. I found that to be most useful for testing web stuff across platforms.
going to various computer/dev conferences over the years it was hard to not notice the rise of apple laptops to the point where they are at least 60% of all laptops seen at these conferences.
nevertheless, whatever you do - mac or pc - be sure to get at least two monitors. studies have shown, and i can attest, that multiple monitors is the number one thing you can do to increase your productivity.
But the answer shoudl really be : the one that runs the tools you use in the best possible way.
I run Plan9 for my text editing requirements and I say it was the best I've come across. so YMMV
Nothing else...
I'm not saying you're necessarily wrong, but it's completely unreasonable to say Textmate has "no match yet". And, for the record, yes, I do own a copy of Textmate, and wasn't happy with it after several months of usage and went back to Vim. MacVim is my editor now.
I used it for awhile, and it's pretty good. It's called "E" - http://www.e-texteditor.com/
I still prefer TextMate, but if stuck on Windows, E is pretty nice for getting close in editor.
Doing it all on Windows just feels wrong to me after years of Mac use ;-)