Live data from Hacker News

My Recent Development Stack: OS X Tools

renownedmedia.com

41–50 of 67 posts

Re: My Recent Development Stack: OS X Tools

#41

Earlier quoted context omitted.

This is also a great website for quickly viewing prettyified json: http://json.parser.online.fr/

Another great way is via the json ruby gem, which installs a prettifier which can be used from the command line, like this: curl 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitter&include_rts=1 | prettify_json.rb| less

Another way to do it without having to install anything extra:

curl "http://api.twitter.com/1/statuses/user_timeline.json?screen_... | python -m json.tool | pbcopy

Re: My Recent Development Stack: OS X Tools

#42
post #25

I've found that when it comes to GUI tools the Mac is your best friend. Even a good majority of command lime stuff is really a joy to use. I'll never abandon the Mac but I must say that the deeper into my programming journey I get the more I'm reaching for my Linux machine. Last week I caught myself thinking of dumping the Mac altogether! But that's heresy and I quickly banished those thoughts. The Mac gives you a re…

Awww come on, windows isn't that bad, I find VS2008 or 2010 + Kiln to be a pretty good combo.

I can't stand Windows. I don't hate it out of some fanboy fetish as that's not fair. With Linux and Mac is can do pretty much anything without jumping through any hoops. As a web developer you're basically dealing with Linux on the server in most cases and most open source tools are built with Limix in mind as the final destination. Setting up a development environment with just about anything is very consistent and easy on Mac and Linux.

Try getting a basic AMP stack running on Windows. It's a pain and full of non standard practices. Even if you've found it easy to do, you probably have to deploy to a Linux environment for production anyway. Being sure everything works when moving from WAMP to LAMP environments can be risky.

But, of course, that all depends on the complexity and specifics of what you're doing. Everyone's mileage varies. It's been my experience that Windows is great.. if you're both developing,mtesting and deploying to production using Windows all the way through. Otherwise it's Mac/Linux all the way for me. But again, you can say the same of Mac/Linux. But why would you develop on Mac/Linux only to deploy to Windows anyway?

As for Visual Studio, I have Win7 and VS2010 on a machine I use every 6 months or so and I feel like I'm being smothered. VisualStudio wants me to write code in a way that locks me in to the Windows environment and that just not where I belong. I feel like the other platforms' IDEs just get out of your way and let you write code.

Re: My Recent Development Stack: OS X Tools

#43

Earlier quoted context omitted.

Ah, macports is a bit fragile, yes :) I'm pretty happy with homebrew, however (for the most part). Plus writing formulas for homebrew is really easy.

+1 on Homebrew. I had both fink and MacPorts running at one time. Homebrew is more pleasant in every respect (my opinion, of course).

I liked homebrew until I needed pygtk. I don't know of any good way to install that but with macports and boy is it a pain to install without a package manager. And once I needed macports. I also like to have a recent version of gcc. This also required macports.

Re: My Recent Development Stack: OS X Tools

#44
post #25

Earlier quoted context omitted.

Awww come on, windows isn't that bad, I find VS2008 or 2010 + Kiln to be a pretty good combo.

I can't stand Windows. I don't hate it out of some fanboy fetish as that's not fair. With Linux and Mac is can do pretty much anything without jumping through any hoops. As a web developer you're basically dealing with Linux on the server in most cases and most open source tools are built with Limix in mind as the final destination. Setting up a development environment with just about anything is very consistent and…

Honestly, I like the Mac because of its hybid GUI/command line nature. However, I also feel like it is the most restrictive OS that I have ever used. What I mean is that it actively stops me from doing things that I want to do. That is not to say that I cannot do them, just that the OS makes it harder. Some examples include showing folders like /usr in Finder and updating command line tools like autoconf (the easy way would be the linux way: with apt). I am making an application which will be primarily on Windows (where the market is) but making it cross-compatible with Mac for the singular purpose of using Valgrind. In any case, the project is entirely Makefile based and works on both Mac and Windows (with the help of cygwin).

Re: My Recent Development Stack: OS X Tools

#46
post #19

I've found that when it comes to GUI tools the Mac is your best friend. Even a good majority of command lime stuff is really a joy to use. I'll never abandon the Mac but I must say that the deeper into my programming journey I get the more I'm reaching for my Linux machine. Last week I caught myself thinking of dumping the Mac altogether! But that's heresy and I quickly banished those thoughts. The Mac gives you a re…

I was going down the "Maybe I should ditch Mac" thought process last night when I had to recompile PHP on OSX Server (10.6) so that I could enable GD and FreeType. I wish Apple would just leave the sources in the same folders you find them in on linux as I had to hunt through my build flags to figure out why each one could not find the dependencies. At 2AM I finally was able to do my sudo make install and everything…

PHP's build system has an awesome feature: every one of the included extensions can also be built stand-alone. There is no difference between an external and a bundled library.

So to add a bundled library to the mac's PHP, you download the PHP sources (most of the time, not even the version has to match) and you extract them.

Then you cd into ext/ and type phpize, followed by configure and make install.

Now you can enable the freshly built and correctly installed extension in your php.ini.

No need to replace the system PHP with something home-grown.

Re: My Recent Development Stack: OS X Tools

#47

Can anyone recommend a good GUI on Mac for Postgres? Sequel Pro is amazing, but it unfortunately only supports MySQL.

There is always pgAdmin (http://www.pgadmin.org/) which is very close to the Postgres core development and thus is always updated to support the latest features of Postgres.

It suffers a lot from the has-to-work-on-all-platforms UI design issues though (even though it uses wxWidgets).

Personally, I hardly ever use the GUI tool (the exception is explaining really big query plans) because the command line psql client is really, really good. It has an awesome line editor and so many convenience features like always shelling out into $PAGER for big result sets, or the very handy \x mode.

And it offers tab-completion not just for internal commands, but even for the SQL queries you are typing.

Re: My Recent Development Stack: OS X Tools

#49
post #8

Earlier quoted context omitted.

Out of curiosity, what were you missing from Linux? That's not to say I don't miss things from Linux (/proc, XMonad to name two), just nothing all that much.

I missed apt-get a teeny tiny bit but Homebrew is amazing. I'm not really into customizing my system all that much either so it wasn't that either. It's Lion that has me a little upset. First off, Lion has replaced GCC with LLVM which for the most part is fine but I was doing some work with Ruby that I started on my Linux machine then when I cloned it on my Mac (which is where I do the majority of my work) I had prob…

AFAIK Xcode still ships with gcc, even though llvm-gcc is default. I regularly use "brew install --use-gcc" for things that don't work with llvm-gcc.

I believe rake should allow you to specify a C compiler on the command line. Even if it doesn't, you can temporarily change your CC environment variable to point to the gcc binary instead of llvm-gcc and things will probably work. Probably.

Re: My Recent Development Stack: OS X Tools

#50
post #29

Earlier quoted context omitted.

Can't you run XMonad on a mac? I'm pretty sure a couple people I know do just that. (There might be some wrangling and virtual machines, but I doubt it.)

You can run XMonad on a Mac, but it will only tile X11 apps, not standard OS X apps, which unfortunately makes it fairly useless for me. And of course, working in a VM with it is always an option (and I have a VM setup with it for when I want to drop back into linux).

Does that include Chrome? Because I've definitely seen them use Chrome, and it looked Mac OS-y. Of course, the people I'm thinking of probably have a different outlook on OS X: they like it, but not the UI. (That's a paraphrase from one of them:)).
Post reply on HN