Fuck Xcode

Two years ago, Brent Simmons introduced ded: a handy little alias to deal with Xcode quirks

alias ded='rm -rf ~/Library/Developer/Xcode/DerivedData'

It has been useful, but since recently it was not enough. Sometimes, Xcode will complain about not being able to use the simulator, even if it’s not running.

Screen Shot 2014-10-15 at 14.02.21

Or things will just fail randomly and often, leading to frustration and anger.

Eventually, ded was not enough, so here’s my replacement:

alias fuckxcode="pkill -9 -i 'ios simulator|xcode' && rm -rf ~/Library/Developer/Xcode/DerivedData && open http://www.calm.com/breathe"

And I’ll quote Brent again on Bugs:

In the old days, programmers spent hours and days and weeks working very hard, and sometimes brilliantly, on difficult things that no one had ever done before.

These days, programmers spend hours and days and weeks working very hard, and usually unsatisfactorily, on getting around bugs in their platform.

Impossible debugging

If your first reaction on witnessing a bug or seeing a bug report is “that’s impossible,” you are plainly wrong. Don’t waste a single neuron on the train of thought that begins “but that can’t happen” because quite clearly it can, and has.

From The Pragmatic Programmer

I should print that and hang it on my wall because some days one needs to be reminded there are no impossible bugs, even when things just don’t make any sense.