0:00:00Hello, and welcome to Developing Perspective.
0:00:03Developing Perspective is a near-daily podcast discussing the news of Note and Apple, iOS,
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 18, and today is Monday, August 29, 2011.
0:00:18The format of Developing Perspective is that I'll walk through a handful of articles and
0:00:21links, things I've found interesting since the last show, then move over to a more general
0:00:25discussion towards the end.
0:00:26The show will never be more than 15 minutes, so let's get to it.
0:00:30All right, first, just a little kind of a fun link
0:00:32that I saw over the weekend, which
0:00:34is probably the most interesting tribute to Steve Jobs
0:00:37that I saw in an amount to all the things about him resigning.
0:00:41Joseph Tame went on a run in Tokyo.
0:00:44And basically in 21 kilometers, he ran the Apple logo
0:00:50and reported it back with Runkeeper.
0:00:52It was just kind of a cool thing to see,
0:00:54and I just thought it was kind of fun.
0:00:56Next, I just did something.
0:00:58I discovered a page on GitHub that is just kind of super cool.
0:01:02So if you go to github.com/languages/objectivec,
0:01:05or you'll find the link in the show notes, which is just
0:01:08if you look at the body of the podcast,
0:01:10all the links are there, which any good podcasting tool
0:01:13will be able to get you.
0:01:14Or you just go to developingperspective.com/ whatever
0:01:17the show is.
0:01:19But anyways, if you go there, you'll
0:01:20find this very interesting list, essentially,
0:01:22of all what's going on essentially within the iOS
0:01:26Objective-C Mac developer community.
0:01:30It shows you what's been watched today, this week, this month,
0:01:33all time.
0:01:34And it's just actually kind of interesting.
0:01:36I found a lot of really cool repositories
0:01:38there that I hadn't seen.
0:01:40And you can see some fairly topical things too.
0:01:42So for example, there's a thing for generating unique device
0:01:45identifiers in iOS 5.
0:01:47There's a new change in iOS 5 where the device had
0:01:51unique ID for each device who's no longer programmatically
0:01:54going to be accessible at some point.
0:01:56There's also a really cool framework called Quick Dialog,
0:01:58which lets you make user entry forms very, very easily
0:02:02and saves a lot of the hassle and grunt work of that.
0:02:06There's just a couple of examples of even just poking
0:02:08through.
0:02:09I've definitely bookmarked this site,
0:02:10and I think I'll be checking back on a regular basis
0:02:13just to see what's going on, what's new,
0:02:15what's happening right now in the Objective C community.
0:02:20Next, I just wanted to point out that today, the third part
0:02:24of the What's New for Developers in macOS Lion,
0:02:27Ole Bergman's amazing description of change notes
0:02:32in Lion, was published over the weekend.
0:02:36And it doesn't disappoint.
0:02:37It continues to talk about some really cool stuff,
0:02:40specifically things like Core Data's new concurrency model.
0:02:44And probably the thing that I saw in it
0:02:45that I hadn't seen before but is very cool
0:02:48is the new send asynchronous request queue completion
0:02:52handler method on an SURL connection.
0:02:55Which, if you're not a developer,
0:02:56that's getting a little bit into shop talk.
0:02:58But basically, it's a really neat way
0:02:59that they have for wrapping up in a block-based way
0:03:02sort of network communications, which
0:03:04I was pretty excited about.
0:03:06And see, next, over on bjango.com,
0:03:10they posted a great article on exporting from Photoshop.
0:03:14So if you do any kind of mock-up work in Photoshop--
0:03:17We're not even going to do mock-up work.
0:03:19But if you're building your UI in Photoshop
0:03:21and then transferring that into iOS,
0:03:23inevitably at some point you're going
0:03:25to have to take that interface and split it up
0:03:27into the different sort of sprites and widgets
0:03:30and then import that into iOS.
0:03:32And there's a lot of different ways that you can do that.
0:03:34He talks about the way that I think most people do,
0:03:36which is just sort of copy merge.
0:03:38You select what you want to export,
0:03:41and essentially you're just copy, pasting it
0:03:42into your document, save the document.
0:03:44But he talks about some more advanced ways to do it.
0:03:47for example, exporting layers as files,
0:03:49or introduce something that I had never even encountered,
0:03:52but is actually very cool, which is Photoshop Slice Tool.
0:03:56And essentially what this does is lets you break out
0:03:59your whole PSD into sub-PSDs that you can export sort
0:04:04of in a batch in group fashion, which is just kind of cool.
0:04:08I mean, I haven't played around with it too much in Photoshop
0:04:10itself, but knowing what I know about these guys
0:04:13and their prowess with design, that's
0:04:15is something that I think is pretty cool and worth checking
0:04:18out.
0:04:20All right, so that's it for today's links.
0:04:22And for today's general discussion,
0:04:25I recently got an email asking me
0:04:28to talk a little bit about the books
0:04:30that I found most helpful in learning programming.
0:04:33And it's kind of an interesting question,
0:04:35because I could probably spout off a couple of good books.
0:04:38And by good books, typically what I mean
0:04:40is by good authors, like the pragmatic books about it
0:04:44by Bill Dudeney and Chris Adamson.
0:04:51Anyway, that book is a great book.
0:04:53I think I've tech reviewed it a little bit.
0:04:56And I mean, it's a great book.
0:04:58But honestly, I don't find programming books
0:05:00to be very helpful.
0:05:01I've been involved in writing a chapter for one of them.
0:05:04And I've kind of explored what it
0:05:06would be to write a larger book before.
0:05:08I've done a lot of tech reviewing for books.
0:05:11But the thing that I find is, for me,
0:05:14developing is about developing a base set of skills.
0:05:19And for me, I developed those in college.
0:05:21I had a pretty good CS degree or CS program where I went.
0:05:26And that develops a base set of understandings
0:05:30for how to do things.
0:05:32And it's not so much language-oriented or
0:05:36platform-oriented, those types of things.
0:05:38It's just how to structure an efficient algorithm, how
0:05:41to use recursion, how to use good data structures,
0:05:45good algorithms, clean code, those types of things,
0:05:49how testing works, why it's important,
0:05:51what does test coverage mean.
0:05:53And those types of things, I think, are important.
0:05:56And those things are reasonably good to learn from a book,
0:05:58because they're abstract and theoretical.
0:06:02But for actually learning to program--
0:06:04and so, for example, the classic question
0:06:06that I would say I get is, I'm looking to learn iOS.
0:06:08I want to write iPhone apps.
0:06:10How do I get into that?
0:06:11It's like, well, if you have that basis in programming--
0:06:14which if you don't, it's a harder thing.
0:06:16I'm not sure at this point what books to recommend for that.
0:06:19In many ways, I think the best place for that is to get some
0:06:22kind of formal education, just because that structure that
0:06:26that brings is very helpful in kind of making sure you cover
0:06:29the whole breadth of what you really should know.
0:06:32But once you have a basic level of understanding,
0:06:36the next level I find is you just
0:06:38need to start building things.
0:06:40And the language shouldn't matter too much,
0:06:41because if you have a basic understanding,
0:06:44a lot of the rest of it is just learning how things work.
0:06:48For example, with iOS, I wrote my first iOS app
0:06:52while I was on vacation with my family at the beach.
0:06:54I'm not a big beach person, so I just
0:06:56stayed in a little bit and wrote my first iPhone app.
0:06:59And to start with, it was a mess.
0:07:01I mean, if I look back at that code now, I'm like,
0:07:04what are you doing?
0:07:05That's horrible.
0:07:06But I just kind of started with it.
0:07:07You kind of just go into Xcode, new project.
0:07:11That kind of template looks vaguely like what I want.
0:07:15And it built an app that had a table view in it.
0:07:17And so I just started kind of extending that
0:07:18and playing with it and doing a lot of looking for blog posts
0:07:22and articles on Stack Exchange and all the different places
0:07:25that I can kind of get hints and tips and kind of piecing it
0:07:28together.
0:07:28And after a little while, you kind of start learning.
0:07:31What I did there, that was wrong.
0:07:33I should do that better.
0:07:34What I did wrong over here, and so on.
0:07:37And for me, that's the only way that I've learned.
0:07:39I have a lot of programming books on my shelf.
0:07:41I've bought a lot of programming books.
0:07:43And recently I've been trying to cut myself off from doing that because inevitably I find
0:07:49that I don't really read them.
0:07:50I'll read a chapter here or two maybe.
0:07:52I have a few little nuggets maybe that are somewhat helpful, but I never get through
0:07:56them.
0:07:57I never, and not even just in the sense that I don't cover to cover, read them.
0:07:59I just-- that doesn't really--
0:08:03all it does really is I'll get slightly into a topic
0:08:06and then be like, oh, let me try that.
0:08:08Let me go build it.
0:08:08And I'll just go off and build it and forget entirely
0:08:11about the book.
0:08:12And so I think that's what I would recommend most.
0:08:14If you're a developer who's thinking, hey,
0:08:16I want to get into this.
0:08:17I want to write iPhone apps.
0:08:18It's like, just start writing iPhone apps.
0:08:21And just start.
0:08:22Just start.
0:08:23And look for templates.
0:08:24Look for examples.
0:08:25A great example is to go to GitHub.
0:08:28A lot of applications that have frameworks
0:08:30have examples with them too.
0:08:32So if you're looking for-- I'm going
0:08:34to write a thing with Twitter integration.
0:08:36If you go to-- I think the best one is the MG Twitter engine.
0:08:39You look at that library, it also
0:08:42includes an example that does some basic stuff.
0:08:44And you can kind of get a sense of how
0:08:45people who've been doing this for a while do things.
0:08:48And that's a great way to get at it.
0:08:49Another thing I'd also recommend is looking up your local chapter
0:08:52of NS Coder Night, which they typically meet on Tuesdays.
0:08:57And these are just sort of local groups
0:08:58where a couple of developers get together and code.
0:09:01And they're very informal.
0:09:02It's not typically something like a Cocoa Heads, which
0:09:05if you're not familiar with is more of a sort
0:09:08of a presentation style typically,
0:09:10where someone's going and talking.
0:09:11And it's much more kind of formal.
0:09:13NS Coder Night is just a bunch of guys, like my local one,
0:09:15they get together at a coffee shop.
0:09:17And they just code and talk.
0:09:20And almost always, if you show up there with a desire
0:09:23to learn and you've put in some preparation,
0:09:25you have some questions, you've, you know, it's not just like showing up and say, "Hey,
0:09:29can someone teach me how to program?" You're coming up and saying, "Hey, I've been brand
0:09:32new to this. Here's the five things that I've been trying to do and I can't. Here's the
0:09:37five places I'm stuck." Almost certainly someone there would be like, "Sure, no problem. You
0:09:41know, set up your MacBook right next to me and we'll walk through it." Because that's
0:09:44what they're there for too. I mean, that helps, you know, experienced people stay sharp and
0:09:48it helps, you know, new people get sharper. And so that's definitely, I think, a far better
0:09:53I think you'd be far better served putting in that kind of time.
0:09:57I mean, I think sometimes it's always nice people think, oh, it's like the quick fix.
0:10:02What can I buy?
0:10:03It's like that $20 that I can spend that gets all the benefit that I want.
0:10:08I'm not sure if that really exists.
0:10:10The best thing is to just start writing apps and write apps that you are excited about,
0:10:15that interest you, that are fairly simple.
0:10:19You just kind of go from there.
0:10:20I mean, I didn't have a sort of a major success with one of my apps for after, till after
0:10:25I built probably four or five actual apps.
0:10:28I mean, and that was fine.
0:10:30That was sort of the learning process and I got better and better.
0:10:33And now when I look back on those, I'm kind of embarrassed and that's good.
0:10:36It means that I'm getting better at my craft.
0:10:39That's kind of the way that I'd recommend learning how to do iOS development.
0:10:42And then the last thing I'd say about it, which is a little bit sort of off from what
0:10:47I was talking about is the WWDC videos are an excellent resource. Watching those, you're
0:10:53very rarely sort of be wasting your time. But I would say it's good for you to have
0:10:59some kind of basis before you start getting into those or a lot of it will go over your
0:11:03head and you will kind of miss a lot of what makes those really cool. So definitely check
0:11:08those out. They're really worthwhile. And then another thing I would say is if you're
0:11:12looking for a structured way to learn iOS specifically, I can really recommend the Pragmatic
0:11:18Studios course. It's put on by Mike Clark and a couple of really good instructors. I
0:11:25think it varies around a little bit. But those guys really know their stuff. And if you want
0:11:30a structured way to go and spend a week, and at the end of the week, be sort of, if you
0:11:34imagine the spectrum from beginner to intermediate to advanced, I would say after a week of that
0:11:39course I took it back when I was starting, you really are sort of solidly in that sort
0:11:44of early intermediate phase where from there you can, it's like a launchpad, from there
0:11:49you can really kind of dive into stuff at a higher level.
0:11:52And again there that's very hands-on practical sort of learning environment.
0:11:56So definitely recommend checking that out.
0:11:58That's just PragmaticStudio.com I think.
0:12:02All right, so that's it for today's show.
0:12:06that is helpful and interesting. As always, if you have any questions, thoughts, corrections,
0:12:11complaints, hit me up on Twitter. I am @_DavidSmith. And otherwise, if you enjoy the show, make
0:12:19sure you tell a friend, tell two, tell three. It definitely helps me and keeps me motivated
0:12:25in making the show. Alright, otherwise, have a good day and happy coding.