Podcast Search

Under the Radar

Under the Radar 22: Version Control

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

0:00:00welcome to under the radar a show about

0:00:01independent iOS app development I'm

0:00:03Marco Arment and I'm David Smith under

0:00:05the radar is never longer than 30

0:00:07minutes so let's get started so today we

0:00:09wanted to talk about version control and

0:00:12this is this is a great collaboration

0:00:15tool and therefore the two of us who

0:00:19work by ourselves are going to tell you

0:00:22drawing on our vast experience about

0:00:25using version control with all the

0:00:27clever things you hear about with like

0:00:29git and you can have merging and

0:00:31branching strategies and rebasing and

0:00:33all the things that thankfully I never

0:00:35have to deal with because I tend to just

0:00:37work by myself and I'm collaborating

0:00:39with myself and so thankfully things

0:00:41typically and like merge conflicts not a

0:00:44big problem for me it turns out Hudson's

0:00:46but still I think version control is a

0:00:48very important part of like the

0:00:50discipline of software engineering and

0:00:52so it seemed like it was something that

0:00:54was we worth discussing

0:00:55even if obviously you know jokingly some

0:00:57of some of them are collaborative parts

0:00:59of it aren't as relevant for us I mean

0:01:01for me like I have most of the same

0:01:03situation in that I'm mostly

0:01:05collaborating with nobody but there

0:01:07there have been times where I've seen a

0:01:09lot of the value of it Ferns I mean you

0:01:10know I used to work at normal jobs where

0:01:12I've had other people working with me so

0:01:13we would do things there but that was

0:01:15that was back in the subversion days and

0:01:17it was much simpler and it was still

0:01:20very small teams and these days you know

0:01:24I mostly you know don't do any kind of

0:01:27elaboration however I do have a couple

0:01:30of open-source projects that I run and

0:01:32and most of them get no activity

0:01:35whatsoever but a few of them do get

0:01:37third-party contributions and I have

0:01:39done you know get-get pull requests and

0:01:42merges and stuff like that and those

0:01:44things so I have minimal experience

0:01:47there and you and I actually just

0:01:50started accidentally collaborating on on

0:01:52something and I don't think that's even

0:01:53worth mentioning what it is it's it's a

0:01:55very very narrow need that both of us

0:01:57happen to have and almost nobody else

0:01:59does I committed to your codebase the

0:02:02other day and that was like the first

0:02:04time I've ever committed to someone

0:02:07else's iOS codebase and I thought and

0:02:10you said that was ever the first time

0:02:11that anyone's ever committed to yours

0:02:12right

0:02:13it's been a very long time since like

0:02:152011 2012 I think was the last time I

0:02:19had I had any kind of collaboration so

0:02:21yes it's it is very much a rare thing

0:02:23but it was kind of fun like I was like

0:02:25someone else it's like I have to do a

0:02:26fetch and have like a pool rather than

0:02:28just to push this is novel and exciting

0:02:31yeah I don't know how I would deal with

0:02:33that in my ABS I probably fix all the

0:02:36all the style differences which is like

0:02:38the huge faux pas to like restyle

0:02:40someone else's commit but like version

0:02:43control like there is a definitely

0:02:44collaboration is an important part of

0:02:46that and there are lots of different

0:02:48ways to deal with that like obviously

0:02:50like we're saying for us we don't do as

0:02:52much from a collaboration perspective

0:02:53but I've you know I've worked in

0:02:54companies where it's an important thing

0:02:55and there's lots of great mechanisms for

0:02:59this now like this is something that I

0:03:00think back to I think my first my first

0:03:01version control system was CVS I think

0:03:04yep and then I went to subversion and

0:03:06then to get and in every time like the

0:03:09tool itself gets better and less awkward

0:03:11and less cumbersome and I think about

0:03:14the things that are even things like

0:03:16github or bitbucket or there's lots of

0:03:18kind of these online backs or front ends

0:03:21for the repository which makes them any

0:03:25of these things so helpful and well I

0:03:27don't do a lot of it whenever I've had

0:03:28to do something like that where you have

0:03:30like you submit a pull request and you

0:03:32can have notes in code review and a lot

0:03:35of these things are nice and clear and

0:03:36obvious rather than just kind of sitting

0:03:38there at the command line trying to work

0:03:41out what's going on when someone else

0:03:43submits code and it crashes into yours

0:03:46and things are horrible and broken and

0:03:49so you know can you can do some pretty

0:03:50powerful things too like I remember back

0:03:52with Mayor Lee it is a version control

0:03:54where you had to like you would check

0:03:56out specific files that you were going

0:03:58to change and things like that that

0:04:01would be very cumbersome and you'd be

0:04:02like every now and then you'd go down

0:04:03the hall and you know like ask Jim down

0:04:05the hall hey are you done with that

0:04:07header because I need to add something

0:04:09to it for my part of the you know of

0:04:11this app and things like that which you

0:04:13know most modern version control systems

0:04:16can just deal with in terms of Bill you

0:04:18know you feel that if you add at the top

0:04:19and he had it's the bottom it just goes

0:04:21and that's fine and you know the

0:04:22concerns be problematic if he's changing

0:04:24something in one way and you're changing

0:04:25it or another but

0:04:27you know by and large collaboration is

0:04:29much easier from a version control

0:04:31perspective than it used to be because

0:04:34you can just you have these nice visual

0:04:35tools and you know mechanisms by which

0:04:38you can you know each share and share

0:04:41access into a repository yeah I mean

0:04:43it's it is so nice to have you know

0:04:46modern modern conveniences with these

0:04:48things and modern advancements I mean

0:04:50you know I - I never did the systems

0:04:52where checkouts are exclusive to one

0:04:54person but just basics of like

0:04:57versioning and merging from it all these

0:04:59systems are great and you know and

0:05:01especially like branching became a lot

0:05:03easier with git and then the DVCS model

0:05:06and these things I mean it just it just

0:05:08helps so much when you're working on a

0:05:10team and also when you're working by

0:05:11yourself and I think that's what we

0:05:12gonna talk about too is like even when

0:05:14you're working alone these systems

0:05:16provide invaluable help and and I think

0:05:19every developer this is actually I know

0:05:22that not every developer who works for

0:05:25themselves

0:05:26does version control and I think not

0:05:28doing it as a huge mistake

0:05:29yes I don't even know how I mean that

0:05:31just seems like that's like the wild

0:05:33wild west where like are you like

0:05:34copying folders like any time you know

0:05:37like it's when you have like version 1

0:05:38version 2 version 3 like that's that's

0:05:42chilling yes use version control

0:05:44whatever it is it doesn't like its 20s

0:05:46it doesn't really matter which one you

0:05:48choose like if you're a get person and

0:05:50mercurial person if you want to use

0:05:51subversion if you want to do something

0:05:52else like that's fine but you have to

0:05:54use something because I think at you

0:05:57that's like the thing that you also can

0:05:58keep in mind with version control is

0:06:00like it's a powerful like development

0:06:02tool like in the way that you and I like

0:06:04we probably spend most of our

0:06:05development time in Xcode or in some

0:06:08ways and like textmate or something for

0:06:10doing like web programming but the tool

0:06:15it's the tool of version control is

0:06:17pretty powerful one in terms of it being

0:06:20a part of your development process and

0:06:22allowing you to do things that would

0:06:24otherwise be really awkward like I love

0:06:26and get having like branching of being

0:06:28able to be like I have this idea for a

0:06:32way to kind of restructure something or

0:06:34do a big refactor or take like take some

0:06:37code and you know take it in a different

0:06:39direction

0:06:39and I can just branch off from like my

0:06:42main thing try it for you know a few

0:06:45days and if I end up it turns out to be

0:06:47just this complete dead end I can sort

0:06:50of just like throw that away and go back

0:06:52to where I started from in a way that is

0:06:54nice and clean and reliable and isn't

0:06:57going to break something or if I need to

0:06:58want to just like cherry-pick part of

0:07:00that in I can do that in a controlled

0:07:02way and also just to look at what I've

0:07:05been doing like sometimes all you know

0:07:08it's being able to look at the like in

0:07:11some ways you'd think like the blame

0:07:12part of version control if you work by

0:07:17yourself and if you're not familiar like

0:07:18blame in most version control systems

0:07:20you can look at any line of code and see

0:07:22who created it and when that was created

0:07:25in the history of your project you know

0:07:27and so this is the classic like if

0:07:28someone breaks the build you can run

0:07:30blame on it and see who broke it but

0:07:32even for myself like when the names are

0:07:34always me it's often really helpful to

0:07:36be able to look back and be like why am

0:07:38I doing this this way and I can go back

0:07:40and see that comment interesting I added

0:07:42this as you know at you know two years

0:07:44ago when I was working on X feature and

0:07:46that's often really really really

0:07:48helpful to be able to look back and to

0:07:51understand my own code even better and

0:07:54even more so if it's you're

0:07:55collaborating with with someone else and

0:07:58even just to be able to like one thing I

0:08:00always do F as it have in my development

0:08:02cycle is I look I take the last commit

0:08:07that like the version that I just

0:08:09released and whenever I'm getting ready

0:08:11to submit to the app store like the very

0:08:13last step in before I hit like actual

0:08:15archive and submit to the app store is I

0:08:18always go and run a diff between the

0:08:21last submitted version and my current

0:08:22version of the code and I just go

0:08:24through like sort of line by line in all

0:08:26the changes and make sure that there's

0:08:28nothing in there that jumps out it to me

0:08:30is like whoa why is this still in here

0:08:33that are like that doesn't seem right

0:08:35and I've caught several bugs in my

0:08:37development in my process that way by

0:08:39having using version control as a tool

0:08:41to help me write better code yeah I mean

0:08:44that's the biggest value of it as

0:08:46independent is that it's it's it's

0:08:48giving you a tool that can show you what

0:08:51you've changed and when you changed it

0:08:53and possibly why you changed it but

0:08:55that's like just knowing what has

0:08:57changed whether it's what did I do

0:08:59today to this one file so I know whether

0:09:01to even commit this change or not or you

0:09:04know what's that you know what has

0:09:05changed in the entire app between this

0:09:09version which I know worked in this way

0:09:11and the current version which keeps

0:09:13having this weird bug that I can't

0:09:14figure out why it's happening you can go

0:09:16you can see all right well here's

0:09:17everything that's different between

0:09:18these two so the bug is because of some

0:09:20part of this you know and like it's it's

0:09:23so it's so useful to know that stuff

0:09:24everyone can get value out of that you

0:09:27know it also it helps it helps even if

0:09:29you have to work on multiple computers

0:09:30or if you're working on you know for

0:09:32like if you have a deployment on your

0:09:34server and one locally and your

0:09:35computer's you keep those synced up

0:09:37properly and in a sane way I mean it's

0:09:40it's just so great I I'm I'm still sure

0:09:43I'm shocked that anybody still doesn't

0:09:45use it but fortunately most people do

0:09:47use I think most people have come around

0:09:48to do it now so we're mostly mostly

0:09:51saying in that way in an industry that's

0:09:52insane and so many other ways we're

0:09:54mostly saying in that way yeah and it

0:09:56really helps in that regard that it's

0:09:59also becomes so much easier to do like I

0:10:02think of in Xcode like it has like

0:10:04full-on version control built into it

0:10:06like in terms of e not even like it's

0:10:08weird snapshotting thing that it always

0:10:09asks me when I'm refactoring a project

0:10:11and it asked me do I want to make a

0:10:13snapshot and I don't really know what

0:10:14that means I really don't think I do but

0:10:17it has it built in like it all of my

0:10:19projects whenever I'm changing something

0:10:21like it's really helpful in Xcode to

0:10:23just see what's changed and like once I

0:10:25change something it gets a little M icon

0:10:27next to it that says it's modified or

0:10:28for the additive fried file to it it's

0:10:30there and so there's no reason not to be

0:10:33aware of this type of thing

0:10:34because the tooling in is in place to

0:10:37make that just so easy and streamlined

0:10:40that they could be a fool not to yeah

0:10:44and what you know whether you do it on a

0:10:45hosted service like github or bitbucket

0:10:47or whether you do it just locally like

0:10:49you know you can almost all these

0:10:51systems you can have a local server if

0:10:53you want to and not have it significant

0:10:55like you know remote slash paid web

0:10:57service but I recommend if if you can

0:11:00swing it for you know regulatory reasons

0:11:02and for for money reasons I recommend

0:11:05just putting it on github or bitbucket

0:11:07like put it put it on one of the big

0:11:08hosts because it just it outsources a

0:11:11class of problems that you don't need to

0:11:13deal with anymore and also you get a

0:11:14whole lot of convenience for having that

0:11:16be on a hosted system you have the nice

0:11:18web gooeys you have the ability to

0:11:20access it from anywhere multiple

0:11:22computers you have kind of this built-in

0:11:23backup so it's yeah definitely hosts it

0:11:27if you can and please please use version

0:11:30control yeah and that's guessing too I

0:11:32think then another kind of interesting

0:11:33aspect to version control which is the

0:11:35like the backup portion of it yeah like

0:11:38both in terms of like what you're saying

0:11:40where like it's another physical backup

0:11:41like in the same way that you should

0:11:43have probably a clone of your main

0:11:45development harddrive running all the

0:11:47time and like backup in that sense of

0:11:48like being able to you know not have if

0:11:51my computer dies that's suddenly like

0:11:54I'm out of luck and that's it like the

0:11:56only copy of my code was sitting on that

0:12:00machine like that that that's terrifying

0:12:03like you have to have it backed up in a

0:12:05lot of ways because like the funny thing

0:12:08about being doing the kind of work we do

0:12:10like there's no sort of tangible the

0:12:14only tangible outcome of our work is

0:12:16like a collection of sort of like text

0:12:18files and images sitting on our hard

0:12:20drive and so like the amount of time and

0:12:22energy and money that goes into creating

0:12:24those we have to treat them like

0:12:26incredibly carefully like if we were

0:12:29it's like we were at coca-cola and we

0:12:31have to keep you know I imagine like the

0:12:33recipe for coca-cola is very well

0:12:35protected and backed up and guarded to

0:12:37make sure that they can keep making it

0:12:39because if somehow like it got lost and

0:12:41they didn't know the recipe anymore that

0:12:43would be hugely problematic and so as

0:12:45developers like our source code is that

0:12:47thing like even if we have a binary you

0:12:51know an old binary of our app like that

0:12:53doesn't do us any good we can't change

0:12:55that and so it's important to back it up

0:12:57both in terms of that kind of backup and

0:12:59then something else then I find it I've

0:13:01found it so helpful for many times to is

0:13:04it's having this like being able to go

0:13:07through like so thick you have this

0:13:09little time machine that you can go back

0:13:10in time and say what was my Apple like

0:13:13at a particular time and like you were

0:13:15saying earlier this is great for

0:13:17identifying bug like weird

0:13:20and bugs worth like it worked in version

0:13:22two but it doesn't work in version 3

0:13:24like why is that and you can actually go

0:13:27back and LOL it'll often end up doing is

0:13:30you know exports the project from my

0:13:33version control at a particular you know

0:13:35milestone and you know change the bundle

0:13:37identifier and i can run them both at

0:13:39the same time and i can kind of go back

0:13:40and forth and I can see why things are

0:13:43different and that kind of snapshotting

0:13:46is really helpful to be able to look

0:13:49back and then even one of the things

0:13:50that I've it's kind of more silly but I

0:13:52love sometimes being able to go back to

0:13:56like the verb like version 1 of a

0:13:57product after it becomes very mature

0:13:59both to kind of laugh at myself I just

0:14:02kind of look at it but also just kind of

0:14:04for nostalgia reasons of kind of looking

0:14:06at it and it's kind of nice to have a

0:14:07sense of like wow I've really come a

0:14:09long way you know this app used to be so

0:14:12simple and now it's it's it's so much

0:14:13more robust and I like that's kind of

0:14:15fun to have this backup of it that sort

0:14:19of never goes away in that way like I

0:14:20always like this is why I also version

0:14:22control all my screenshots that I submit

0:14:24to the app store yep you don't like like

0:14:26they're in there for that same reason

0:14:27that I sometimes is really fun or useful

0:14:29or like I'm doing a retrospective post

0:14:31you know like an app has the you know

0:14:33and when one of my apps hits a milestone

0:14:34like it's been you know it's oh it's

0:14:36five years old like if it's hitting a

0:14:38milestone it's kind of fun like do a

0:14:40blog post or something like that to kind

0:14:42of talk about it and show screenshots or

0:14:43the icon from a long time ago like

0:14:45version control is a great place to keep

0:14:47those things so it's all in the same

0:14:49place and it you know as time marches on

0:14:51you can keep a nice accurate record of

0:14:54what's changed alright our sponsor this

0:14:56week is Braintree Braintree is code for

0:14:59easy online payments they are a

0:15:01full-stack payment platform and you know

0:15:04why make payment integration more

0:15:06difficult than it has to be brand tree

0:15:08allows you to accept nearly any type of

0:15:09payment from any device with just one

0:15:12integration they support pave how

0:15:13bitcoin venmo Apple pay Android pay

0:15:16cards and they will support whatever is

0:15:18next all with that one integration it's

0:15:20flexible to your systems needs and

0:15:22supports most programming languages so

0:15:24whether using Java Ruby or Python you

0:15:27will always have a range of server-side

0:15:28and client-side SDKs available

0:15:31the Braintree client code supports

0:15:33Android iOS and

0:15:34script and all this takes just ten lines

0:15:37of code to implement Braintree makes

0:15:39payments and your job a whole lot easier

0:15:42learn more at Braintree payments comm

0:15:44slash radar once again that's Braintree

0:15:47payments comm slash radar thank you very

0:15:50much to Braintree for sponsoring our

0:15:52show and all of relay fm

0:15:54so I think what might make sense for the

0:15:56rest of the episode is to kind of talk

0:15:57about how this actually what we would

0:16:00like what we do in practice like what

0:16:02the actual tools that we use what that

0:16:04like goes around because I think there's

0:16:07there's certainly a degree to which

0:16:08version control can become a very like

0:16:12personal thing and some people like

0:16:13mercurial some people like it some

0:16:15people maybe even still love subversion

0:16:17or there's something new and fancier

0:16:18that I'm not aware of but like the you

0:16:21end up with these kind of preferences

0:16:22and at least I know for myself like I

0:16:23have kind of workflows and things that

0:16:25I've built up over time and that are

0:16:28part of this that maybe are helpful or

0:16:30if you're looking for a different way of

0:16:31doing it or different tools for it might

0:16:33be helpful to discuss so what is your

0:16:35typical like how do you actually

0:16:37interact with your version control

0:16:38system so on the server I just do it all

0:16:41by command line and I use git and I

0:16:43hooked on github which I would imagine

0:16:46github is probably one of the biggest

0:16:48reasons why people choose git and why

0:16:50it's so popular because github is is

0:16:52just so convenient in many ways and so

0:16:54good in many ways and it is it isn't

0:16:56perfect but it's it's very good I use

0:16:58github again private everything I pay

0:17:00for it it's fine it's it's been very

0:17:02secure for me and totally fine and

0:17:04honestly if somebody steals my source

0:17:07code somehow I don't really worry about

0:17:09that because source code is not very

0:17:11valuable like if you get somebody's

0:17:13source code to their entire app what do

0:17:15you do with that like you can upload it

0:17:17but that's illegal and they can easily

0:17:19get it taken down so like you know you

0:17:21can make your own app again also illegal

0:17:23from that you can get it taken down so

0:17:25like the actual value of stolen source

0:17:28code isn't particularly high for

0:17:30somebody's random iOS app so anyway back

0:17:33to how I use it I use the command line

0:17:35for almost everything I do in general in

0:17:38development so MySQL I use the command

0:17:41line interface to that if I'm doing

0:17:43development with other server-side

0:17:46demons like memcache or

0:17:47Redis I will use the command line to

0:17:50interface with those to set them up to

0:17:52to do administrative tasks if I need to

0:17:54ever get I usually don't do that anymore

0:18:00git is so complicated on the command

0:18:02line and so tedious on the command line

0:18:06that I usually just use git tower as my

0:18:10GUI which is a it's a Mac app it's some

0:18:14price it doesn't matter it's worth

0:18:16whatever price they charge it's worth it

0:18:18I think it's like 50 bucks whatever it

0:18:19is totally worth it yet because git is

0:18:23incredibly complicated and it doesn't

0:18:26need to be most in most use you can get

0:18:30by and it's it's totally fine and you'll

0:18:32be fine but sometimes you have to do

0:18:34something crazy with it or you have a

0:18:36weird error that you have to overcome

0:18:38and anything involving branching merging

0:18:42of branches certain advanced operations

0:18:44like committing only part of what you've

0:18:46changed or or discarding only part of

0:18:49what you've changed you can do all these

0:18:51things in the command line but it's so

0:18:54obtuse to figure out how to do that on

0:18:56get and many times things can be

0:18:58multiple commands and many times they're

0:19:00very error-prone if you do them manually

0:19:01and you and you could actually do some

0:19:03damage if you do it wrong so typically

0:19:06now I just use get tower on the Mac and

0:19:09I just don't do any kind of operations

0:19:11like that on the server I'm exactly the

0:19:13same I use guitar for pie like 99% of my

0:19:16get it just sort of it works it's very

0:19:19reliable it's straightforward and like

0:19:22the way that they present it to I've

0:19:24always found seem kind of works with my

0:19:26head like sometimes I've tried some

0:19:29other get clients and they can get very

0:19:32like they're showing me too much like

0:19:35they can get has all kinds of crazy

0:19:37information and metadata and things

0:19:39about especially when you have lots of

0:19:41branches like things that are going on

0:19:43and I they just hurt my head and like I

0:19:46likened the way that I used the way that

0:19:47I use get tower like it it's pretty

0:19:49straightforward like I open it up I open

0:19:51our repository it's like here's the

0:19:52things that you've changed and would you

0:19:54like to commit them and that's like most

0:19:56of my process is that and if I want to

0:19:58make a branch I just like pick the

0:20:00commit I want to branch from

0:20:01give it a name and now it's created and

0:20:04so it does a very good job of showing

0:20:06that to me in a way that's yeah it's

0:20:09like it's completely it's one of those

0:20:10essential tools like if I'm setting up a

0:20:12new computer there's a like in that

0:20:14first like five things that I will I

0:20:16will download onto it one of them is

0:20:18going to be good tower because I really

0:20:20can't work productively without it which

0:20:23is probably saying a lot yeah yeah I

0:20:25mean again like I I really do try to

0:20:28avoid GUI tools for for developer stuff

0:20:30where there is a perfectly suitable

0:20:32command line version but this is one of

0:20:34those things where it's so worth it it's

0:20:36it's it is so you know not only does it

0:20:38save me a lot of time and it makes

0:20:40certain operations you know less

0:20:41error-prone that are complex but also it

0:20:44just gives me a really good view of

0:20:46what's going on like you know at most

0:20:48what we mentioned before like a lot of

0:20:49what we were talking about is like how

0:20:51source control can can it can can show

0:20:54you and help you track what you're

0:20:56changing what you know what has changed

0:20:58over time how things used to be or how

0:20:59things are now and get tower is they

0:21:03just do a really nice job of showing the

0:21:06diffs showing the various commits and

0:21:08what was in each commit showing branches

0:21:10and letting you do that and it isn't I

0:21:12mean there are certainly there's

0:21:13something room for improvement in

0:21:14particular i I think the sub-module area

0:21:18is it could use some improvement but

0:21:20that's most of the most of the areas

0:21:22that I think tower could be improved

0:21:24including sub-modules I think are at

0:21:27least partially or or even mostly

0:21:29because the underlying get feature is

0:21:32itself complicated and finicky like

0:21:35sub-modules suck everything about get

0:21:38sub-modules is horrible and so I can

0:21:41understand why the implementation of the

0:21:43mint hour is also a little bit odd and a

0:21:45little bit finicky but ultimately I

0:21:47think if I'm going to be using git this

0:21:51is the way to do it

0:21:52yeah I agree and I think it's also

0:21:55probably worth contrasting to you I do

0:21:57use the version control integration in

0:22:00Xcode quite a bit but it's for like

0:22:02totally different things like like I use

0:22:06the so a it's just useful to be able to

0:22:09see what's changed and often what I'll

0:22:11end up doing is if in the US I called

0:22:13the Navigator view

0:22:15like the bottom left part of the Xcode

0:22:18browser you can say like show me only

0:22:20files that have changed that have like

0:22:23an active version control status and

0:22:25that's really helpful often I find when

0:22:27I'm like working on something and I can

0:22:28kind of just see the files that are sort

0:22:31of I've been working on and both it

0:22:33collapses a big project into a nice

0:22:34small list and it's also kind of just if

0:22:37I see something that doesn't look right

0:22:38like often I'll find like a nib file

0:22:40that has changed for some reason that I

0:22:43don't understand like I don't feel I

0:22:45opened it up once and touched it and

0:22:47then horrible things happen and being

0:22:49able to be aware of that earlier in the

0:22:50process it's helpful but most of what I

0:22:53do is they're very helpful like version

0:22:55control I don't even I'm sure they said

0:22:58have fancy names but like where you can

0:23:00compare inside of Xcode your current

0:23:03version to a past version so it's like

0:23:06if you're in the in the top right corner

0:23:07of Xcode there's like the three views

0:23:09there's like the regular view the

0:23:10companion view and then the version

0:23:12control view and in that I'm so often in

0:23:15there when I'm like looking at code and

0:23:17trying to see like what's changed how is

0:23:19this different how did I used to do this

0:23:22like if I have a problem that I used to

0:23:23solve once before I go in there and

0:23:26compare them and then like I was saying

0:23:28earlier right off I would you know

0:23:29surprisingly often for working just

0:23:31myself I'll use blame so let's switch it

0:23:33into blame mode and look through the

0:23:35source file and say like you know when

0:23:38did this change when do when did I start

0:23:40doing it this way what was that around

0:23:42and those kinds of tools and having them

0:23:45like built right in to Xcode is really

0:23:49useful like I go to tower regularly but

0:23:52it's when I'm done with something or

0:23:53when I'm getting ready to do a release

0:23:55or like in these kind of big strategic

0:23:58operations I love that Xcode has

0:24:01integration at the tactical level we're

0:24:03like I'm actually actively coding and in

0:24:06that process I don't have to contact

0:24:08switch to some other app to like look

0:24:09this up I can very easily just be like

0:24:11huh you know why am i doing it this way

0:24:13when did this change and that sort of

0:24:16thing and so I use those tools in Xcode

0:24:18a lot but I hardly ever commit or any of

0:24:20those types of operations you know from

0:24:22Xcode it has them like I'm sure they're

0:24:24there and you know it I'm glad they

0:24:26exist in some way so that like out of

0:24:28the box you can do

0:24:29version control but in Xcode I find it

0:24:32really helpful at that like basic like

0:24:34the actual line of code level and then I

0:24:37go to tower whenever I want to do like

0:24:39actual operations like things that I

0:24:41would go to a command line and type you

0:24:42know get clone get branch get merged get

0:24:45whatever I don't actually know what half

0:24:47of them are because I just used Tower

0:24:49instead so I didn't even know this

0:24:52version view was here I just open it up

0:24:55now and I'm like my mind is blown like

0:24:57oh my god this is so useful yes so

0:24:59someone has not been watching what's new

0:25:01and developer tools sessions index WDC

0:25:04for the last few years I think I think

0:25:06we just discovered that live on air does

0:25:08that surprise anybody I didn't read the

0:25:11manual this is great this is this is

0:25:13amazing all I would all I ever really

0:25:15use an Xcode was the little M indicators

0:25:17on the sidebar don't know what I've

0:25:18changed well there you go now you know

0:25:20that you can do some of these basic

0:25:22operations live at Xcode and like I said

0:25:25they're really helpful they're nice

0:25:28it turns out turns at all right anything

0:25:33else this week no I think that's it

0:25:35mostly I guess just to say make sure

0:25:37you're using version control please

0:25:38please please make sure you're using

0:25:39version control it's one of those things

0:25:41that if you're not for and like

0:25:43inversion everything like I version

0:25:45stuff like I mean there's I don't do a

0:25:48lot of like Photoshop work but when I do

0:25:50like I just mean I just put my PS DS

0:25:52into version control oh yeah and it

0:25:54doesn't do all the cool fancy dipping

0:25:56it's not fancy in that way but like I

0:25:58don't care I I can always go back in

0:26:00time I can always snapshot things like

0:26:02whatever you're doing try and version

0:26:04control it like I've version control my

0:26:05blog I version control anything I can

0:26:07because once you get into the discipline

0:26:10and the habit of doing it like it's just

0:26:12so much better and it's probably worth

0:26:14saying I'm terrible about commit

0:26:15messages because I'm just working by

0:26:17myself

0:26:18and it's hilarious like I in most of my

0:26:21commit messages are often just like

0:26:22stuff kind of works now yeah mmm this

0:26:25seems to be better fix fix fix okay

0:26:28that's enough like it cuz I'm still

0:26:31creating snapshots like I'm not

0:26:33necessarily communicating as well to my

0:26:35future self which is maybe you know like

0:26:38problematic too you know in some ways

0:26:40but just having it

0:26:42like just putting random gibberish in

0:26:44there and just like you'd be better off

0:26:46if you just say had get take a you know

0:26:48take a commit snapshot once an hour

0:26:50would be you know even if you didn't

0:26:52want to do anything like having just

0:26:54some kind of resource to be able to go

0:26:56back in time is so valuable and I think

0:26:58can make you such a better developer

0:27:00especially when you use the Xcode

0:27:02integration tools to understand how yes

0:27:04if you watch the videos you can really

0:27:06do some powerful things so I highly

0:27:08recommend them all right thanks a lot

0:27:10that's all the time we have this week so

0:27:12thanks for listening everybody thanks to

0:27:14our sponsor Braintree and we will see

0:27:15you next week bye

0:27:19I can't believe you didn't know those

0:27:20were there how did you not know there

0:27:27yeah that's there's a lot of Xcode I

0:27:30haven't explored yet like there's only

0:27:34there's only like in the default navbar

0:27:37like there's only like six buttons

0:27:39I just never click on those - yeah the

0:27:42one nice - semi circles the Venn diagram

0:27:44one the assistant editor I don't know

0:27:45what that does either that one is mostly

0:27:48just like useful for if you have an Abe

0:27:50in one view and like the related file

0:27:52and the other one okay like it's

0:27:54designed to have two things compared to

0:27:56like next to each other so that's useful

0:27:58if you like dragging outlets or things

0:28:00you know from who dragging outlets from

0:28:03India file into a source file I use the

0:28:04companion one but yeah I know there's

0:28:07this whole world the version of version

0:28:09control that's been waiting for you this

0:28:11is this whole time I'm so glad we

0:28:15captured that on