Podcast Search

Developing Perspective

#14 - My Setup

Select a time to play from there. The line being spoken is highlighted as the audio plays.

0:00:00Hello and welcome to Developing Perspective.

0:00:03Developing Perspective is a near-daily podcast discussing the news of note in iOS, Apple,

0:00:07and the like.

0:00:08I'm your host, David Smith.

0:00:09I'm an independent iOS developer based in Herndon, Virginia.

0:00:12This is show number 14 and today is Tuesday, August 23, 2011.

0:00:18The format of Developing Perspective is that I'll handle a handful of links, articles,

0:00:21things I've found interesting since the last episode, and then move over into a more general

0:00:26discussion towards the end.

0:00:27The show will never be more than 15 minutes.

0:00:29Let's get started.

0:00:30All right, first link I have today is to a tool that I use and have used for years and

0:00:36years and recently just realized I never actually talked about it on the show.

0:00:40It's called Size Up.

0:00:41It is essentially a window manager for Mac.

0:00:44And what it allows you to do is to set up a variety of different templates for how you'd

0:00:48like your windows organized on your screen.

0:00:51I use a fairly large screen and actually two very large screens.

0:00:56And so it's something that is often very important for me is to say, "Okay, I'm going to use

0:00:58these two windows side by side, both using, say for example, half of the screen left and

0:01:03right or top and bottom or quarters or those types of things. What this application does

0:01:08is lets you set up keyboard shortcuts to say, "Move this window to exactly the top left

0:01:12corner or exactly the left side or fill the entire screen or move it to the other screen

0:01:18and do those types of things." And it's become muscle memory for me for how I can organize

0:01:23my windows and it really just saves a lot of time and effort. Some of this is a little

0:01:27less relevant if you are using a single monitor setup in Lion and you really like full screen

0:01:34apps, maybe it wouldn't be as useful. But if you're using a smaller screen or two screens,

0:01:39then it's definitely something worth checking out. I think it's like $10 or something. It's

0:01:43a fairly inexpensive tool that I've just really found really helpful. Next, there's a repository

0:01:49over that's actually managed by GitHub itself. So it's github/gitignore on GitHub. Basically,

0:01:56Basically, it's a really interesting project that they put together collecting useful .git

0:02:02ignore templates.

0:02:03And so if you use Git as your version control system, your gitignore file typically in the

0:02:08root directory of your project tells Git what to exclude from the project.

0:02:14So these are typically things that are either something you wouldn't want versioned, so

0:02:19maybe it has your local development database or something like that, your local preferences

0:02:25and settings that aren't really part of the project, that if you have 10 people working

0:02:30on a particular project, say, a small to medium sized team, and you committed that, you're

0:02:36constantly going to be overwriting each other's preferences and choices, and that can be very

0:02:41frustrating. And so this is just a great way to--great collection that they've put together.

0:02:45They have a template file for almost every language or project you could imagine. So,

0:02:51For example, one that's especially relevant for me is an Objective-C Git ignore file,

0:02:56which includes all kinds of things.

0:02:57So your build directory, your PBX user file, your project files, the different perspective

0:03:02things.

0:03:03Some things that I probably wouldn't have actually even known that I could exclude or

0:03:08should exclude.

0:03:09So definitely worth checking out.

0:03:11There's also ones for, for example, Rails or Ruby files, WordPress, all manner of things.

0:03:18Drupal, C++, lots of interesting things there.

0:03:22Definitely worth checking out if you use Git,

0:03:24and definitely just a big help that I recently found.

0:03:27I was like, oh, I recently created a new project,

0:03:29so I'm like, oh, what should I put in my Git ignore file?

0:03:32So it's just worth looking at that.

0:03:35Next, there's a really interesting article.

0:03:38So if you're not familiar with Why the Lucky Stiff,

0:03:40who was a kind of a legend in the Rails community

0:03:42back in the day, a couple years ago,

0:03:45he sort of dropped off the radar intentionally.

0:03:48I think he just sort of had enough with kind of the persona and perspective that he had,

0:03:54especially given that he was an online persona rather than a person.

0:03:58He was just sort of called Y and he was famous for some of the things that he'd done.

0:04:02But there's a really interesting article or I guess it's a post someone wrote, which publishes

0:04:06an email that he got from Y back in the day talking about sort of how he developed and

0:04:16why he made some of the choices he did.

0:04:18It's just a really interesting thing where he talks a lot about, he often shuns the predominant

0:04:25styles of coding and things because what he really enjoys is experimentation, kind of

0:04:31mucking about and trying to make interesting things.

0:04:35And he focuses on that far more than he does on design patterns and protocols and procedures

0:04:41and things.

0:04:42wants to do is make interesting things.

0:04:44And he says the best way to do that is to kind of push

0:04:47the boundaries, to kind of be playing around

0:04:49and playing fast and loose with things to get it to work.

0:04:52Now obviously that's advice that works in certain contexts.

0:04:55It's not something that you want to do.

0:04:57If you're necessarily working on a large team of 30 developers

0:05:01working on something, there's a certain amount

0:05:03that's necessary.

0:05:04But it was just a really encouraging thing

0:05:06to kind of read and think about, especially

0:05:08for small slide projects, things where really the goal is

0:05:12to experiment and learn something.

0:05:14So it's not as important to be unit testing all your code,

0:05:17to be writing lots of comments, those types of things.

0:05:20And it gives you much more flexibility to say, hey,

0:05:22I'm going to experiment with this.

0:05:23I'm going to play with it.

0:05:24If it works, it works.

0:05:25If it doesn't, it doesn't.

0:05:27But it's kind of freeing in some ways to think in those terms.

0:05:29So definitely worth reading.

0:05:31And lastly, there's a site-- it's patterns.com,

0:05:34but with all the vowels missing.

0:05:36And essentially, you may have come across this before.

0:05:40every now and then it seems to just kind of be rediscovered.

0:05:43But it's a really interesting site

0:05:45that shows you patterns in iOS development.

0:05:48And so say, for example, you're creating a comments entry

0:05:54screen.

0:05:55It'll have dozens and dozens of ways

0:05:57of displaying comments screens.

0:05:59Or for example, you have a search screen,

0:06:02or you have a recipe display, or a settings screen,

0:06:06or a share panel.

0:06:07Whatever those kinds of things are,

0:06:09It has a collection of different examples of it.

0:06:11So for example, I opened up the recipes area.

0:06:13It has one from all recipes, Martha's Everyday Food, Eataly,

0:06:17and Epicurious.

0:06:19And it's just a really interesting way

0:06:21to kind of get some inspiration.

0:06:22If you kind of get stuck, you're like, huh,

0:06:25how should I show this calculator?

0:06:27How should I show this about screen?

0:06:29What could that look like?

0:06:30And so it's a really nice way to kind of just capture

0:06:32that in a way that gives you some inspiration

0:06:36and gives you some kind of thoughts through.

0:06:38So examples from other people who've thought through the same problem that you're encountering.

0:06:42So just worth checking out.

0:06:43All right, so that's it for today's links and discussion area.

0:06:48Now I'll be moving into our general discussion for today.

0:06:51And for that, I'm going to be talking about my computer setup.

0:06:55So I work outside of my home in a small office that I rent just a mile from my house.

0:07:00And that's where my primary office setup is.

0:07:02And that's where I sort of probably do 90% of my work.

0:07:05The machine that I use most part here is a late 2009 iMac.

0:07:11It's a pretty beefy machine at the time.

0:07:13I think I got pretty much the fastest iMac that you could at the time.

0:07:17It's now probably not too impressive, but it's an i7 processor which has, I believe,

0:07:22eight virtual cores.

0:07:23I think I maxed the RAM.

0:07:25I think I sort of got up to something like 8 or 16 gigabytes.

0:07:29It's quite a lot.

0:07:31Those parts aren't especially interesting.

0:07:32It's a 27-inch model, which is nice to have a nice big screen.

0:07:35And then what I find probably the most interesting part of my configuration there is I boot from

0:07:39an external solid-state drive.

0:07:41So this is just an other world computing solid-state drive that comes in a bus-powered FireWire

0:07:48800 enclosure.

0:07:49The advantage of what I found about that is A, the iMac that at the time when I purchased

0:07:54it was, in order to get a solid-state drive, was a very, very expensive upgrade on it for

0:07:58not a lot of capacity.

0:08:00And so I left the normal spinning disk drive

0:08:02as the internal drive.

0:08:04And then I boot from the external solid state drive.

0:08:06Now you get a lot of the performance gains

0:08:08that you would get from an internal solid state drive

0:08:10from that.

0:08:11You get a lot of-- for your sort of random seeks

0:08:13and those types of things, you get a lot of benefit from that.

0:08:16The unfortunate downside is that I

0:08:18am capped at the bandwidth of FireWire 800.

0:08:23So if I'm doing large transfers and things,

0:08:25you'll notice that a little bit.

0:08:26But since most of what I do is doing very small reads, the performance benefit is definitely

0:08:31significant.

0:08:32I found that it's in the range of 20 or 30 percent faster than the internal disk when

0:08:36I have done some benchmarking between them.

0:08:39Another advantage of leaving my boot drive to be external is that when I'm on the road,

0:08:44it's very, very easy for me to pick up and put down my work.

0:08:50So if I shut down my iMac, unplug that FireWire drive, plug it into my MacBook Pro, which

0:08:55which is just an old MacBook Pro, I think it's two or three years old, it boots right

0:08:59up, all my files are there, everything's set up exactly like how I like it, and I don't

0:09:03have to keep the two machines in sync in that regard.

0:09:06It's just literally the exact workspace that I was using otherwise.

0:09:10I can move easily between the two machines.

0:09:12It has a few artifacts that you usually run into, some of the display configurations and

0:09:16those kinds of things get kind of confused.

0:09:18But generally so far I've been doing it for about two years now, and it's been a great

0:09:23configuration to be able to have my external drive that is movable between my machines.

0:09:28So for example, when I go to WWDC, I just take my MacBook Pro, Firewire 800 drive, and

0:09:36off I go and I can be just as productive.

0:09:38I don't have a situation where, "Oh, I've left something on my iMac back at the office."

0:09:44So that's part of the configuration.

0:09:47Connected to my 27-inch iMac, I also have a 27-inch cinema display.

0:09:51So it's kind of an absurd amount of desk space.

0:09:54And it certainly is more than I need.

0:09:55That's one thing that I-- it's kind of a-- unfortunately,

0:09:58these displays only come in increments of 27 inches

0:10:01these days.

0:10:02I would have probably opted for a slightly smaller setup

0:10:04if they had same-day displays in that size.

0:10:08But the advantage I find is I like having two screens.

0:10:11I think that's definitely worthwhile as a developer

0:10:13to have-- essentially, what I typically end up with

0:10:15is Xcode running full screen, or not in an alliance sense,

0:10:19So I'm taking up the entirety of my main display

0:10:23directly in front of me.

0:10:24And then to my side, I have any external things that I need.

0:10:27So documentation, the simulator, mail, Safari,

0:10:30those types of things are running on the screen

0:10:32on the right, the way that I prefer it.

0:10:35And what I find is that I'm generally

0:10:37using one and a half of my monitors.

0:10:39So I'm using the full main monitor and then half

0:10:41of the other one.

0:10:42Beyond that, it gets too far out of your vision.

0:10:44You're almost having to turn to look at it, which I don't

0:10:47find especially comfortable.

0:10:49Let's see, other parts of my setup and configuration

0:10:52are that I run--

0:10:54I have a dock for my iPhone and a dozen or--

0:10:58probably not a dozen, but I have several dock connectors

0:11:00coming out the back of my computer,

0:11:02because that's one thing of being an iOS developer,

0:11:04is you're always constantly plugging and unplugging

0:11:06different devices.

0:11:07I think in my office, I have about six or seven

0:11:09iOS devices of various kinds, ranging

0:11:12from second generation iPods and--

0:11:15And iPhone 3G all the way through to the iPad 2 and iPhone 4, those types of things.

0:11:20And so it's very convenient to have just a lot of dock connectors.

0:11:24I also have an extra MagSafe connector plugged into the back, or available from the back

0:11:29of my machine.

0:11:30So this is also helpful sometimes where, for example, right now I'm running the iOS 5 betas

0:11:34on my main machine as Xcode.

0:11:37And then I have on my MacBook Pro, it also has an internal bootable drive that I can

0:11:42use and that's where I run my current 4.1 which is sort of the main shipping version

0:11:48that I need to use for submissions to the App Store now.

0:11:50I run on that and when I'm connecting that, when I'm actually doing those builds, I can

0:11:55easily plug the display port from the cinema display into that and then you still have

0:12:02that massive screen real estate that I'm used to even though I'm using a much slower machine

0:12:06to make that happen.

0:12:08One thing that's also kind of fun with this setup and using an external drive as your

0:12:12primary drive is it's very easy to have backup.

0:12:15So every night this super duper clone is made of my external FireWire drive to the internal

0:12:20drive of the iMac.

0:12:22And the advantage of that is A, I can easily, I have a backup of all my work that's at no

0:12:29more than one day old.

0:12:31The other advantage is it means that my iMac can boot without my main boot drive connected

0:12:36to it.

0:12:37So if I unplug my FireWire 800 drive, I can still boot the iMac, and it's essentially

0:12:41a snapshot of my yesterday's work.

0:12:43You have to be a little careful with that so that you don't end up overwriting files

0:12:46that you want when the next time you do the backup.

0:12:49But often that's been helpful for me if I'm away or something like that and someone needs

0:12:54to use the computer.

0:12:55They still can.

0:12:56They can boot it up, open up Safari, do whatever they need on it.

0:12:59It's just a fully working computer.

0:13:01It's just my computer a day ago.

0:13:05That's essentially my configuration.

0:13:07The other little things that I always like is I'm a big fan of the Microsoft natural

0:13:11split keyboard.

0:13:12It's this kind of strange habit I've gotten into.

0:13:15I've been using a Microsoft natural keyboard for years and years now.

0:13:19I think probably since I was a – first could choose my keyboard when I was at a job where

0:13:24that was something I could do and I've just grown used to the muscle memory for where

0:13:29all the keys are.

0:13:30Everything is just perfect and I've never had any problems with RSI, carpal tunnel,

0:13:34anything like that.

0:13:35It's just a very very comfortable machine.

0:13:38I use a Logitech keyboard, mouse, just the standard $9 laser mouse that just feels right

0:13:44in my hand.

0:13:45It's the right size, it's the right sort of sensitivity and speed.

0:13:49I've tried using a magic mouse but for me it's too small and the lack of physical button

0:13:54and kind of just feel of it just doesn't, never quite felt right.

0:13:59And then I also have a magic trackpad that I use primarily for gestures and things like

0:14:03that to play around with, but it's not something I use very often. I often use that too when

0:14:07I'm recording shows like this or other recorded things because it doesn't have a clicking

0:14:11sound when you make a selection with the mouse. And that's essentially my setup. And then

0:14:18of course I'm recording this on a Rode Podcaster microphone. I have a big set of Princess Leia

0:14:22headphones that, by Princess Leia I mean the big over-your-ear sort of two buns stuck on

0:14:28side of my ears looking set up and that's about it.

0:14:33I have a little printer and I'm just looking around my desk with an old printer scanner

0:14:39that I primarily just use for scanning but that's my setup.

0:14:42That's where I make my money.

0:14:43That's how I make my living.

0:14:44So anyway, I hope that's interesting and that's it for today's show.

0:14:47I'll talk to you tomorrow.

0:14:49Happy coding.