Podcast Search

Developing Perspective

#102: Sharpening Your Skills.

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. Developing Perspective is a podcast discussing

0:00:05news of note in iOS development, Apple, and the like. I'm your host, David Smith. I'm

0:00:09an independent iOS developer based in Herne, Virginia. This is show number 102, and today

0:00:13is January 3rd, 2013. Developing Perspective is never longer than 15 minutes, so let's

0:00:19get started.

0:00:20So the topic I decided would make sense for today is vaguely related to kind of a new

0:00:25new you kind of thing. But specifically, what I was going to talk to is how do you continue

0:00:31to get better and better at your craft? How do you become a better developer? How do you

0:00:36become a more skilled, you know, actual practitioner of what we do over time? This is something

0:00:42that's often easy to kind of find you fall back on, or you just sort of stop becoming

0:00:48better. I find this happens to lots of myself, I get stuck in a rut, I start solving, you

0:00:52You know, every problem the same way.

0:00:54The classic thing of, you know, if all you have is a hammer,

0:00:56everything looks like a nail.

0:00:58It kind of becomes that way.

0:00:59You end up with these, I don't know,

0:01:01like pigeonholing yourself into a technology stack,

0:01:03or an approach, or a style that may not necessarily

0:01:06be what you want.

0:01:07And that can be problematic.

0:01:10And so here's kind of a few steps of things

0:01:12that I find to be pretty helpful for me to kind of try

0:01:14and keep my skills sharp, to keep my abilities fresh,

0:01:19and to not sort of fall into those problems.

0:01:22And so the first thing, and this is probably the most--

0:01:24I guess probably is fair to say, most of what

0:01:26I'm going to talk about is assuming that you're working

0:01:28in the Apple ecosystem.

0:01:29So you're working with Objective-C,

0:01:31you're working in Xcode, you're working in either AppKit, UI

0:01:33kit, it's that kind of thing.

0:01:36Some of them will apply generally,

0:01:37but specifically if that's what you do.

0:01:40So the first thing you want to do

0:01:41is I think it's important to make sure

0:01:44that you try new technologies, and especially

0:01:47language technologies.

0:01:49This is something that I think Apple

0:01:50has put a tremendous amount of effort

0:01:52and a tremendous amount of focus in over the last couple

0:01:55of years is they are trying as best as they can to make

0:01:58Objective-C better and better and better and better

0:02:01and to make the way that we interact with it better

0:02:03and better and better.

0:02:04Some examples of this, there's the obvious ones,

0:02:06things like ARC.

0:02:08There's things like subscripting, automatic synthesis

0:02:12of properties.

0:02:13These are all recent things.

0:02:15All of the improvements that they've

0:02:16been doing in LLVM in terms of some of the static analysis

0:02:19and all those kinds of things that they keep adding in.

0:02:22And often I'll hear from people--

0:02:24and this is especially people who've

0:02:25been developing for longer or do this as they have been doing

0:02:28it as their profession for longer--

0:02:30one of these new things comes along,

0:02:32and they'll kind of pass it off.

0:02:33And they'll be like, well, I don't know.

0:02:35I don't know.

0:02:35Maybe it's not ready for prime time.

0:02:37Maybe it's not quite there.

0:02:39And more often than not, whenever

0:02:40Apple ships something, in my experience,

0:02:42it's very ready for prime time.

0:02:43If it wasn't ready, they wouldn't ship it.

0:02:45And so putting it off is just kind

0:02:48of delaying the inevitable and often not really in a productive way.

0:02:52This is, in many ways, I think people who talk about ARC is something that often comes

0:02:57up this way where a lot of, I've talked to many developers, I've talked to or heard of

0:03:00many developers who kind of just ignore ARC and say, "Well, I can do retain release in

0:03:07my sleep, and so why would I bother picking up this new technology?"

0:03:12The reality is, I think you do yourself a disservice, even if you're not going to use

0:03:18it in your main production app, to not have experienced it,

0:03:21to not play with it, to not get an understanding of its

0:03:24benefits and its pros and its cons,

0:03:26I think you're doing yourself a disservice.

0:03:28And you're doing your code a disservice.

0:03:30One of the things that I like about most

0:03:32of the modern changes that they've been making to Objective

0:03:35C is that they reduce the amount of code, physical code,

0:03:38the number of characters per file, that I have in my apps.

0:03:42Arc was a great example of this.

0:03:43Subscripting does this.

0:03:44Automatic synthesis does this.

0:03:47There's huge swaths of code that I've

0:03:49been able to recently go through and just delete, just

0:03:51get rid of.

0:03:52And for many of those, I think it's made my code better.

0:03:56Not necessarily because the replacement technology

0:04:02was better.

0:04:02And many of them, they're just identical.

0:04:04They're just happy-- you know, compiler tricks and things.

0:04:07But moreover, the less sort of cruft that fills up my code,

0:04:13the better.

0:04:13Like having these long functions--

0:04:15the classic for me was in the old days, was having these big D,

0:04:19you know, sort of having to have these comparatively large

0:04:23dealloc blocks that are just boilerplate that are just to me

0:04:26sitting there going through and as I get deallocated me going

0:04:29through and deallocating all the other or you know, releasing all

0:04:31the things that I used to reference and all this kind of

0:04:34stuff that, you know, is great that arc is doing and in my

0:04:37experience, I've been using arc basically since it was released

0:04:40with no problems. I think I've once had one of the weird gotchas

0:04:45that happens with Arc, but other than that, not a single problem.

0:04:49And the weird problem I had was just one of these weird things

0:04:51where if you move between a CG color and a UI color,

0:04:56you can have some weird behaviors where

0:04:57it gets released before it gets used.

0:05:00But it was basically very easy to solve and fairly obvious

0:05:02in terms of what the problem was.

0:05:03It was a very immediate crash, and I was pretty localized

0:05:07to where the problem was.

0:05:08So in general, I've been very, very pleased.

0:05:10And I think it's important that you do that.

0:05:12And whether that is just create a new project

0:05:15and try it out.

0:05:16I'm a big fan-- I have tons and tons of projects

0:05:20that never get shipped that aren't intended to be shipped.

0:05:23It would just be something like, huh,

0:05:25I wonder what it's like to use the new Twitter API to download

0:05:30a timeline and display it in a basic UI table view.

0:05:34It's just kind of like an afternoon project.

0:05:36And the purpose of that is to practice.

0:05:39It kind of reminds me a little bit of-- I think

0:05:42there's actually a movement on software development

0:05:45this, which I'm not really getting into exactly. But if

0:05:47you've ever done any martial arts, which I've done a little

0:05:50as a kid, but not a whole lot recently, there's a concept of

0:05:53what I think is called a kata, though my Japanese is not

0:05:56particularly good. But basically, it's a, it's a

0:05:59rhythmic pattern, it's a pattern or a series of movements that

0:06:03you do over and over again to get better at them. And so often

0:06:07when I think in development, there's a similar kind of thing

0:06:10that we have to the more often you're doing something often the

0:06:13the better at it you get. And you can just kind of getting used to the process of creating

0:06:18things, I think ultimately will make you better as you go. And then that's that's kind of

0:06:24how you embrace new technologies and improve your skills that way. And then the second

0:06:28thing or the next area that I wanted to talk about is learning from others. And it's an

0:06:34interesting thing in the way that the iOS community works, I would say it's a fairly,

0:06:38it's a very friendly community, in terms of it's a kind of place where if you have a problem,

0:06:42and you post it somewhere online,

0:06:43a lot of people will like to help you.

0:06:44You can go on Stack Overflow.

0:06:46There's tons of help.

0:06:46There's a lot of people talking there.

0:06:48And also, I would say it's really great to see

0:06:50the amount of people who post code on GitHub.

0:06:54And now that's a dangerous thing if you

0:06:56want to go and learn from somebody,

0:06:57because it has the presumption that what you're learning from

0:07:00is worth learning from.

0:07:01But that's just a question of, in my experience,

0:07:04of looking at the right people's code.

0:07:07And a great example of this is if you're not

0:07:10If you're not familiar with him, you definitely should be.

0:07:12But Matt Thompson, whose GitHub repository

0:07:16is github.com/mattt.

0:07:19And he is, I would say, probably without much exaggeration.

0:07:23He seems to be one of the best iOS engineers

0:07:27that I know of in terms of just quality code and output.

0:07:31He's developed a huge number of open source libraries.

0:07:35He works for Heroku, the cloud hosting company.

0:07:39it seems like basically his job, which is pretty awesome, is just to take interesting

0:07:45problems and solve them in open source libraries with, I imagine, the broad goal that a lot

0:07:51of these things are going to be backed up on Heroku, or I don't even know why Heroku

0:07:55pays him to make this awesome stuff, but they do. And going through and looking at a lot

0:07:59of his projects, you'll see just some really clean, elegant code. And it's just one of

0:08:05those important things if you can kind of learn a lot from that. He also actually has

0:08:08as a blog, NS Hipster, which I'll also be-- the links

0:08:11to all of this will be in the show notes--

0:08:13where he talks about specific areas of the language,

0:08:17different constructs, and often will teach you things

0:08:20that you may not know that are just part of the language

0:08:23and will help you write better code.

0:08:24And so I think learning from people like that is great.

0:08:27It's not like you want to be going into GitHub

0:08:29and just kind of like willy-nilly going crazy,

0:08:31kind of looking at people's code and understanding it.

0:08:33But I think you would definitely benefit from sitting down--

0:08:36and I have to do this every now and then--

0:08:37I'll just go down and pick, say for example, one of Matt's

0:08:40projects.

0:08:40And I'll just sit down and I'll just go through file by file,

0:08:43just reading it and seeing how he structured it

0:08:45and looking at how he created nice clean APIs

0:08:47for a lot of what he does.

0:08:49And it's kind of cool to kind of pick that up.

0:08:52And then often even better, which I don't do nearly as much

0:08:54as I wish I did, but it would then

0:08:56be to go and try and sort of re-implement

0:08:58a lot of what he's doing, learning

0:09:00on those from those same lessons.

0:09:02And then the next area, which is very similar to that,

0:09:05there's a great page, github.com/languages/objectivec,

0:09:10which is a page that's just kind of one of their--

0:09:13I don't know what you call it-- dashboard pages,

0:09:15where GitHub posts what different people are

0:09:17doing in the community, what's most forked, what's most

0:09:20starred, those kinds of things.

0:09:23But it isn't necessarily as interesting in terms of--

0:09:26like from a leaderboard perspective of, oh,

0:09:27which repositories are hot and interesting?

0:09:30But I find it is a really good way to filter through kind

0:09:33of the overwhelming sort of volume of Objective-C code,

0:09:37and be able to kind of sit down and see

0:09:39what people are talking about, what's interesting, what

0:09:41technologies or frameworks or things are people discussing

0:09:44and using on GitHub, which is a pretty good proxy, I imagine,

0:09:47for in general use.

0:09:49So you'll see for the classic simps,

0:09:51I think actually maybe where I learned about AF networking

0:09:54back in the day, which has since developed and grown

0:09:57and done a lot of interesting things.

0:09:59But it's one of those places that I often--

0:10:02I'll just go there maybe once a week, just

0:10:04see what's going on.

0:10:06And I found that it's almost like going

0:10:07to reading the industry magazine or the old-- I don't know,

0:10:11the trade publications back in the day.

0:10:14It's just a place to kind of get a sense of what's going on.

0:10:17Where are people going?

0:10:18How are people writing code, and what are they doing?

0:10:21The next place that you definitely want to be plugged in,

0:10:24if you want to be constantly improving your skills,

0:10:26is to be connected to the community.

0:10:28And the best places for me that I found that

0:10:31is Twitter is probably number one. I think there's just a really vibrant iOS community

0:10:35there. I'm not sure. It's kind of a funny thing when I am aware of how Twitter is this

0:10:40wide vast ecosystem, but my use of it is very narrow. Almost everyone I follow or interact

0:10:47with there is in my ecosystem or whatever you call it of making apps and doing Apple

0:10:55development. And the result of that is that it's a really rich environment for me to learn

0:11:01a what's going on in the industry, as well as technically, you know, it's like following

0:11:05people like Mike Ash is a great example of someone who will often be talking about interesting

0:11:11topics. Or Peter Steinberger actually is the author of PSPDFkit, another fantastic person

0:11:17to follow online on Twitter to get a really good sort of technical sense that they're

0:11:21They're often just talking about really low-level interesting problems that I often find I really

0:11:26learn a lot from.

0:11:27RSS feeds is a similar kind of place.

0:11:29There's a lot of interesting ones.

0:11:30NS Hipster I mentioned before.

0:11:34And then a lot of it, the rest are going to be tailored to however you are and whatever

0:11:38you like.

0:11:39And the best way to do that, as I find, is Twitter is a great place for collecting and

0:11:43filtering the content of what I want to know.

0:11:47And then these people are linking to blog posts, they're talking about things, and from

0:11:51From there, I'll develop what sites I like and what feeds I then subscribe to in my RSS

0:11:56reader.

0:11:57And lastly, the best thing I can say for honestly, for me, I know it's for developing my skills

0:12:03is every year going to WWDC or as a first approximation, watching the WWDC videos.

0:12:10There's something that's really well thought out in the way that those presentations are

0:12:15put together.

0:12:16That if you sit down and really are trying to learn, you can learn a ton of stuff.

0:12:20not just here's this new framework, here's this, the new stuff in Iowa 6 or this year

0:12:26in Iowa 7. There's a lot of just technology that you can really learn from just watching

0:12:31a pro, the person who implemented the framework, using it. The classic example I always think

0:12:37about is every year, I think they do a mastering UI scroll view talk, I think is what it's

0:12:43usually called. It's something like that. If you look in WWDC videos for UI scroll view,

0:12:48you'll almost certainly find it.

0:12:50And every year, they do roughly the same talk.

0:12:52It's often very similar in something like,

0:12:55let's swipe through a set of scalable images

0:13:00or something like that.

0:13:01It's basic, just photo viewer.

0:13:02But you learn so much about architecting code well.

0:13:05You learn a lot about structuring,

0:13:08about how to use the Apple technologies in the way

0:13:11that they're intended to be used.

0:13:12And I think you derive a lot of benefit from that,

0:13:15that you can really learn how to make your code better.

0:13:18And I guess the last thing-- and this

0:13:20is kind of the meta point that I'll bring up--

0:13:21is that in order for you to get better at what you do,

0:13:24and hopefully you want to, hopefully you're

0:13:26not happy with your current level of skill,

0:13:29but in order for you to get better,

0:13:31you have to want to get better.

0:13:32It has to be something that you think about,

0:13:34that you're doing activities whose purpose is not

0:13:37necessarily directly related to what it is that you're

0:13:39trying to accomplish that day, that there are things

0:13:41that you're doing whose purpose is just self improvement. And if you don't have those areas

0:13:46or those projects or those side things, I think it's very hard to get better. And you're

0:13:51ultimately I think you're going to be stuck and it's kind of in a in sort of a slightly

0:13:58overbearing way, you're going to get kind of lapped by other people who have been putting

0:14:05in that effort. And so it's something that I really try and do to stay fresh. And it's

0:14:09difficult when I have large amounts of existing products and existing code that I need to

0:14:13update and manage and work on.

0:14:15But overall, it's something that has been paid off a lot from a lot of these small side

0:14:19projects that I've been working on whose purpose is to improve my skills and the way that I

0:14:24work.

0:14:25All right, that's it for today's show.

0:14:26As always, if you have questions, comments, concerns, or complaints, I'm on Twitter @_davidsmith.

0:14:30I'm on AppNet @davidsmith.

0:14:33The email for me is on the website developingperspective.com.

0:14:36Otherwise, I hope you have a great weekend.

0:14:38Happy coding, and I'll talk to you next week.