Podcast Search

Under the Radar

120: Productivity by Inefficiency

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 independent iOS app development.

0:00:04I'm Marco Arment.

0:00:05And I'm David Smith.

0:00:06Under the Radar is never longer than 30 minutes, so let's get started.

0:00:10So today we wanted to kind of talk through -- when I was first looking for this topic,

0:00:16I think it was sort of like calling it like tips and tricks or like things that we use,

0:00:20like little approaches or unusual things that we may use that could be useful to share.

0:00:25But I think as we thought about it more, it's just there's some interesting approaches

0:00:28that are being made possible now or things that we have done in the past that I don't

0:00:33necessarily would say are best practices, aren't things that I would necessarily recommend,

0:00:38but are things that nevertheless I think we found that we do in our apps that has been

0:00:42useful or productive or allowed us to do stuff that, you know, just lets us get on with things.

0:00:49And I always like kind of sharing these types of little things, not so much that they'll

0:00:54necessarily apply directly to you or your application, but they can kind of get your,

0:00:58you know, they can get you thinking.

0:01:00Or later when you encounter a problem that is similar or adjacent, you know, you can

0:01:06have something in the back of your mind as maybe like, you know, here's this different

0:01:09approach or this alternative way to look at a problem that might be helpful.

0:01:14And I think the first category of these that I think is fun to talk about are things that

0:01:19we can now do in our applications because the hardware has just gotten so fast that

0:01:26there is certain things that in the early days of iOS development where, you know, on

0:01:31the first, you know, the original iPhone or the 3G, 3GS, like back in those days, like

0:01:35there was a period of time really before the A series chips is probably a good way to say

0:01:40it, like where you're for the performance of your code was very directly tied to the

0:01:47quality of your user experience.

0:01:49I mean, these are back in the days where I remember where like Lauren Brikter's crazy

0:01:54tricks for making UI table views scroll quickly in Tweedy was like magic.

0:01:59And like that was the kind of level of things where you were really optimizing for every

0:02:04little thing.

0:02:05And that's what it took to have a well-performing, good user experience type of application.

0:02:11But thankfully, that's not really the case now.

0:02:14I think for the most part in most of my applications, like the baseline performance that I have

0:02:19to, you know, deal with is iPhone 6 or equivalent, which is surprisingly capable, which is surprisingly,

0:02:27you know, able to do a lot of things pretty quickly.

0:02:31And so, you know, it allows you to do stuff that isn't necessarily the most efficient

0:02:37way to do it but will still work just fine, will not really hit the user with a lot of

0:02:42delay, but allow you to write code either that is very clear and straightforward for

0:02:48you as a developer or maybe very reliable.

0:02:51And as an example, like so the first one I was just going to talk about is a recent

0:02:55thing that I did in Panometer++ where I wanted to make it so that you could transfer your

0:02:59steps from one phone to another.

0:03:02And there's a lot of crazy ways you could do that.

0:03:04I could take the actual, you know, SQLite database and move it over and do some kind

0:03:07of merging thing.

0:03:08Instead, what I did is I just had the, you know, on the sending device, you can just

0:03:14export all of the data into a giant JSON blob.

0:03:18I take that and compress it to, you know, it's reasonably small and because it's, you

0:03:23know, text, it compresses very, very well.

0:03:25And then I just send it over to the new phone.

0:03:28And then on that side, I basically simulate as though that was core motion data coming

0:03:34into my regular step management system and it processes it and imports it into the system.

0:03:41And because the core motion system is already designed to make sure it doesn't duplicate

0:03:46data, making sure that it doesn't lose data or have any weird things happen, like that

0:03:50is the core of the app, I know it's reliable and it's slightly inefficient.

0:03:55Like it's a really, you know, round tripping data through text and all these types of things

0:04:00that is probably not very efficient, but even on a 6S or a 6, you know, an import of all

0:04:06of the data that in my database, which is the most data that any one user could have

0:04:10because my database goes back to the first day the app was created, it still takes like

0:04:16a second.

0:04:17And so it's fine.

0:04:18And it's kind of fun to just be able to like do this.

0:04:20And I'm now very confident that this works because it's all it's very straightforward

0:04:25and there's nothing clever going on.

0:04:26I'm not doing some crazy, you know, file encoding that I'm coming up with myself to,

0:04:31you know, do my own binary file encoding.

0:04:34It's just a JSON file compressed and then uncompressed and then pushed into one of the

0:04:40most tested part of my applications.

0:04:42And it works.

0:04:43And I can do it because hardware has gotten so fast.

0:04:46In many ways, JSON usage itself has exploded in the world of programming in part because

0:04:53everything is so fast.

0:04:54Like, you would never have a format like JSON being as dominant as it is today even 10 years

0:05:01ago because the hardware, like, all the effort to serialize and unserialize the JSON blobs

0:05:08would have been not worth it.

0:05:09You know, you'd have something more like what I've never used protocol buffers, but

0:05:12I think it works more like a binary format.

0:05:15And you have, you know, a few other different ways to do binary formats where like, you

0:05:19know, you don't need to be reading like a text readable serialization of the data.

0:05:24You can like actually use binary encoding and make things way faster.

0:05:27But these days, it's so fast to decode and encode JSON and then gzip it for size.

0:05:34Like, it's so fast to do that that you don't need anything as low level optimized as something

0:05:40like a protocol buffer.

0:05:41Like, you can just use JSON.

0:05:43Even the idea of when you process large blobs of JSON, you know, old formats used to be

0:05:50defined so that you could stream process them.

0:05:53Like, even the first XML processors, they were called SACS processors.

0:05:57And like SACS libraries would basically stream the XML nodes to the processing app.

0:06:02So you wouldn't need to be holding an entire DOM in memory.

0:06:05So if you had like a large XML document, you wouldn't have to hold the whole thing in

0:06:10memory as you're processing it.

0:06:11With JSON, I'm not aware of any streaming JSON processing libraries.

0:06:16With JSON, you just decode the entire thing into memory, no matter how big it is.

0:06:21And, you know, computers are so fast and memories are so large these days that that's rarely

0:06:26a problem for anybody.

0:06:27It's just one of those little luxuries that like, you know, we are able to be far more

0:06:31productive these days than we used to be just because we don't have, like, there are things

0:06:36like that that used to hit limits or be too slow.

0:06:39And these days, that almost never is the case.

0:06:42Yeah, and it's just such a lovely little thing.

0:06:45What I love about it too is so many of these things that we're going to talk about, I think

0:06:49what I love about them most is that they make the development process, it's like, I think

0:06:55it was a phrase often in the early days of Rails was used there, it was like developer-oriented

0:06:59programming, where it's making it easy to write a good app by making it so that it's

0:07:06easy to understand the process.

0:07:08And what I love about this is, like, it's, you know, if I'm, as I was testing it and

0:07:13as I was evaluating it, if at any point I want to, like, see what's in the, you know,

0:07:16see what's in the transfer file, well, I can open it up in a text editor and look at it.

0:07:21There's nothing complicated about it.

0:07:23And any time I, you know, like, by making it so straightforward, that really just helps

0:07:28things go so much more quickly.

0:07:30Or, you know, even in the debugging process, like, I can, at any point, you know, as it's

0:07:34importing, I can very quickly just see exactly where we are in the giant array of step data

0:07:39that's coming into it.

0:07:40And, like, by rather than trying to optimize for absolute efficiency, you know, it's optimizing

0:07:47for clarity and reliability in terms of I'm very sure that it's, you know, it's going

0:07:53to work, because it's so simple that I'm reducing a lot of weird edge cases and problems that

0:07:59I might run into if I tried to do it in a more sophisticated or complicated way.

0:08:04- Oh yeah, and this applies also to a few topics we've covered before, like, I believe

0:08:08we talked about design by programming, or design by programmers, or design by math,

0:08:12which is basically like procedural image generation or procedural colors and things like that.

0:08:18And the whole reason that you can have, like, you know, like what Overcast does is almost

0:08:23every icon or image in the entire app is drawn on demand.

0:08:28So there aren't a bunch of image files in the bundle, like there's actually, almost

0:08:31all of them are drawn upon request by just helper functions in my appearance manager

0:08:36class, and, you know, the app requests, you know, the download icon with this number of

0:08:42downloads at this size with this color, and this function generates that.

0:08:46And, you know, in the olden days, not even that long ago, just like in the first few

0:08:50iPhones even, that would have been too slow, like the app would have taken too long to

0:08:54launch or taken too long to go between screens because it had to draw all the icons.

0:08:58These days, everything is so fast that that is worth doing on every launch because you

0:09:06just don't even notice it, and it saves me the work of having to manually render out

0:09:11images every time, like, there's a new phone size or something else, although there is

0:09:15one area where that's not the case for me, and that is the watch.

0:09:19And that's actually probably not even true anymore, like the Series 3, but like the

0:09:23original Series 1 watch was so slow that WatchKit was based a lot on the use of static

0:09:29images instead of dynamic generated things or animations, and as you know very well,

0:09:34I'm sure, and so, you know, there is one area in my app where I do generate the images

0:09:40for the watch, and it's just a preprocessor macro that I set for this file that's not

0:09:46usually included, and when I set that, upon launch in the simulator, it creates a

0:09:51folder on my desktop full of all the images that I need, and it just calls the dynamic

0:09:55rendering functions that the rest of the app is using with the parameters that the

0:09:59watches will need and the two sizes for the watch and in whatever resolution they need.

0:10:04And it's so funny, like, I launch this on my computer, I just, you know, hit this

0:10:07preprocessor flag, hit build and run, and the second the app launches, this folder is

0:10:13on my desktop with like 40 images in it, they're all done.

0:10:16It just takes so little time to do this stuff now, especially on a desktop, but

0:10:20that's the only place in my app where I ever really have like static images, the

0:10:24rest of it is all dynamic, and not only that, I also do dynamic color manipulation,

0:10:30and this is a little trick that I suggest everybody do if you build apps this way.

0:10:36The way Overcast does its themes, and the reason why I was able to make the black

0:10:42OLED theme during a single airplane flight and have it be pretty much done is because

0:10:49Overcast, in my appearance manager, I define a small handful of like base colors,

0:10:56and then all the other colors that are in the theme are dynamically generated from a

0:11:01category that I write on UIColor, and in fact this is publicly available in my

0:11:05FC utilities library. UIColor, I have these categories that basically you can,

0:11:10on an existing color you can call, you know, FC_modifyHSBA, modify the hue,

0:11:17saturation, brightness, and alpha of any color in a little simple block that you pass

0:11:22to the function, and the HSBA are all passed as in-out pointers, so you just call

0:11:28the block, it can have one line, it can be like, you know, star A equals 0.5, and then

0:11:33the resulting color will be whatever color you pass to it with the alpha set to 0.5.

0:11:37And so I, in my appearance manager, on every launch of the app, or every time you

0:11:42change the theme even, I have all the colors being generated dynamically based on

0:11:48the like three or four base colors of that theme, and so all the other colors are

0:11:52like, alright, take the base color, but set the saturation, you know, cut the

0:11:56saturation in half and increase the brightness by 25%, like stuff like that.

0:12:00That's how the entire theme is generated, so for me to make a new theme, it takes

0:12:04almost no effort at all, which is kind of funny since I've only ever made three,

0:12:07but it's all this work, all this dynamic generation, so that I can save myself

0:12:14small or big amounts of work down the road, and it seems wasteful to do it that

0:12:19way on the phone, to be like rendering these colors and images on every launch

0:12:23of the app, but in fact it's so fast, it really doesn't matter.

0:12:26Yeah, and I mean, it's another thing it reminds me of is how like I'm sure there

0:12:32are OpenGL-based graphing libraries that exist, like for like graphing data,

0:12:38and I'm sure they're incredibly efficient. I'm guessing at that, but I'm sure

0:12:43they exist, but a lot of my applications involve graphing, and I just do all the

0:12:47graphing and core graphics, and it's fine, and like you want to do dynamic colors?

0:12:51Great. You want to animate them? Sure. Like it's core graphics itself, like

0:12:55what you're saying, like you're generating sort of assets, and I'm generating

0:12:59charts, but a lot of that stuff is still just like, yeah, it's fine, and I mean,

0:13:03maybe from an energy consumption perspective, it's not ideal, like in theory

0:13:08it could be using less, but it's one of these things that in practice it doesn't

0:13:12seem to really, it's not, it doesn't really matter in practice, and it makes

0:13:18the process of developing and the usefulness of the application increase so

0:13:22much that like it's a shortcut that I think is justified in taking.

0:13:26Oh yeah, I mean, you know, it's important to, like if you're, as you're coming up

0:13:32with something, or as you're faced with a problem, you know, a lot of people when

0:13:36faced with the issue of how do I efficiently draw, you know, this big image,

0:13:40or even like, like when I was doing my visualization of the frequency graphs in

0:13:44the overcast, like play bars thing in early version of overcast, or even now,

0:13:48when I do the kind of peak level metering in the pause button icon in overcast as

0:13:53things are playing, it's, I tried OpenGL first, because I thought for sure this is

0:13:59not going to be fast enough if I just use the, you know, the quartz drawing

0:14:02commands, like UI Bezier path and stuff like that, or even then you think like

0:14:06maybe I shouldn't use the objective C wrapper, maybe I should just go right to

0:14:09the raw C functions, and it turns out everything is so fast that it didn't

0:14:13matter, and I made the OpenGL prototype, and I made the quartz prototype, and

0:14:19they ran at about the same speed, because quartz is really fast and optimized

0:14:22anyway, and the hardware is so fast that it really didn't matter, so I, I rendered

0:14:26the whole thing in quartz the whole time, because it saved me the trouble of

0:14:29dealing with OpenGL. It was wonderful, and, and like, and there was, there was

0:14:33also a situation where, so for reading all the binary formats that I read in my

0:14:39apps, so overcast when it reads file data to see like, you know, to determine

0:14:44whether something is an MP3 or an AAC file, when it reads like the, the, the

0:14:51QuickTime mauve format to, to see like, can I stream this file or not without

0:14:56having downloaded the whole thing, or even like, you know, when forecast

0:15:00generates ID3 or reads ID3 tags, there's a lot of processing of binary data that

0:15:06I do now in my apps, and you can do this by like raw C functions, and it can be

0:15:13really fast, but you're gonna have a lot of bugs, a lot of crashes, and potential

0:15:17security problems if you do that with like, you know, with C functions, I mean

0:15:20almost every like security bug that's found in like file format parsing or

0:15:24things like that, like if oh, you pass a bad JPEG to this library, and you get

0:15:27root access or whatever, like that's almost all because of mistakes in low

0:15:31level C code, and so today we have hardware that is just so fast, and the

0:15:38Objective-C libraries that are just so good, that I, I wrote my own entire class

0:15:43for parsing and writing small binary data formats like that, that uses NS data

0:15:49blobs for everything, and it's ridiculously inefficient, because it's

0:15:53like it's using Objective-C primitives and Objective-C types and arrays and NS

0:15:58data and NS dictionaries and stuff, and you know, it's like to read a byte, I'm

0:16:02calling an Objective-C method that reads like a one byte NS data blob, converts it

0:16:07back to an integer or whatever, and then advances the pointer by one and creates

0:16:10a new NS data or whatever, like it's completely inefficient in like raw low

0:16:15level programming terms, but it allows me to read and parse and write binary

0:16:20formats, which is something that's traditionally been sort of hard to do, in

0:16:24a really easy way, with very little of my time, and in a way that's almost

0:16:29completely bug free at, for like low level memory bugs, like I can't overrun a

0:16:34buffer, I can't like try to read a void, like a pointer that's past where it

0:16:38should be or anything, like I can't do that, because it's using Objective-C

0:16:42primitives instead of raw C calls everywhere, and it's just really nice, and

0:16:47you know what, it's fast enough, it doesn't matter at all, like the ways I'm

0:16:52using this and the hardware I'm running this on, it's so fast that I can do it

0:16:55in this inefficient way using these like relatively high level objects and APIs,

0:17:01because that saves me time, and it doesn't really matter what the computer is

0:17:06doing under it, because it's so fast the computer barely even notices.

0:17:09Yeah, and it's lovely too that it's, I think, I will say that I have noticed

0:17:13that over the last few years, I have less problems with things like with

0:17:18crashing bugs and, you know, weird esoteric like application errors and

0:17:24problems, and I think in many ways, a lot, I think there is a correlation between

0:17:29a increase in performance and so a less of a requirement to drop down the levels

0:17:36of abstraction to squeeze out every inch of performance, and instead I'm able to

0:17:41work at a higher level of abstraction where the problems are easier to

0:17:44understand and the types of problems I'm going to run into are more conceptual

0:17:49rather than technical, and I think it's definitely helped that most of my

0:17:53applications now are like 99.9% crash free, like if I look at my stats, and

0:17:59overall, I'm sure most users care way more about that, and that's a much better

0:18:03impact on their overall use of the application, you know, than trying to

0:18:07squeeze every ounce of performance out.

0:18:11We are sponsored this week by FreshBooks. To all the freelancers out there, you

0:18:15know how important it is to make smart decisions for your business. Our friends

0:18:19at FreshBooks can save you hundreds of hours with their cloud accounting

0:18:22software for freelancers. It is ridiculously easy to use. By simplifying

0:18:26tasks like invoicing, tracking expenses, and getting paid online, FreshBooks has

0:18:30drastically reduced the time it takes for over 10 million people to deal with

0:18:34their paperwork. FreshBooks does amazing, smart things to help you save time.

0:18:39So for instance, they automate late payment email reminders so you can spend

0:18:43less time chasing down payments and more time doing your actual work. And when

0:18:47you email a client an invoice, FreshBooks can show you whether they've seen it,

0:18:51which puts an end to the guessing games and the awkward conversations. And they

0:18:54have all sorts of new features, like a new projects feature to share messages

0:18:57and files with your clients, and there's so much more with FreshBooks. Check it

0:19:01out today. If you are listening to this and not using FreshBooks yet, now is the

0:19:05time to try it. FreshBooks is offering an unrestricted 30-day free trial for

0:19:09listeners of this show with no credit card required. All you have to do is go

0:19:13to FreshBooks.com/Radar and enter "Under the Radar" in the "How did you hear

0:19:18about us?" section. We thank FreshBooks for their support of this show.

0:19:21So another kind of trick or thing that we can do in our application are the

0:19:26kinds of little tricks we can do because most users won't notice or care about

0:19:32a change. An example of this I can think of is in the early versions of

0:19:39Pedometer++, I had a tip jar where users could give voluntary donations, I guess,

0:19:46to me for using the application. And I structured that as a consumable in-app

0:19:51purchase because I wanted to allow people to make multiple tips if they were so

0:19:57chose. But the awkward thing about that is there's no way to restore an in-app

0:20:04purchase that is consumable. Like, in the concept of the in-app purchase system,

0:20:09you can restore and kind of get a receipt and a transcript of all the users'

0:20:14past purchases if they're non-consumable. But if it's consumable, they don't come

0:20:19back. When they get a new phone and they set it up, there's no way to know that

0:20:25they did it. And it's a slightly awkward situation. You know, someone who has

0:20:31chosen to give me money, I want to give them the best situation. And so this is

0:20:36slightly different now in the application because of some changes around what

0:20:39Apple required. But in the old version of the app, there was a button that said

0:20:43"Restore past purchase." And when you pushed that button, it just assumed that

0:20:49you had previously made a purchase and unlocked the--or removed the ads from the

0:20:53application and said "Thank you." It didn't actually do anything. There was no

0:20:57validation. There was no check. It just--if you pushed--if you were, as a user,

0:21:00thought to push that button, it removed the ads and assumed that you had made a

0:21:04purchase. And it was like that for a couple of years. And it was never a

0:21:09problem. And like, you know, every now and then I'd have someone who's, you know,

0:21:14writes in a support email and asks about--you know, it's like, "Oh, I purchased

0:21:18before. What did I do?" And I'd just push the button and it'll come back. And

0:21:21honestly, not even that many people would ask that now, but it's one of these

0:21:25things of I made the choice that there's--it's possible that at some point

0:21:29someone may push the button who didn't actually buy anything. That certainly is

0:21:34a possibility. But the reality is most people aren't going to notice or care.

0:21:38And it's way better in this situation to just say that, you know, more likely

0:21:43than not it's going to be fine and I'm going to end up way better by making my

0:21:47best customers, the people who have chosen to give me money happier is way

0:21:53better for me than to do it the other way around. Now it's slightly more

0:21:57complicated because Apple had a policy change where things like TipJars had to

0:22:02not use consumable in-app purchase. And so now I have a--or at least not

0:22:06initially. And so now I have this two-phase thing where your first purchase

0:22:10is a non-consumable in-app purchase that I can then restore. And then your

0:22:15subsequent ones are consumable but that doesn't matter because I still know you

0:22:19have one. But it's just--initially I didn't want to make that complexity. So I

0:22:23didn't. And it was fine. And for years it was great. And so, you know, it's like

0:22:29one of these little tips and tricks where you can kind of look at it and say,

0:22:32"Do I really care about the small chance of this being problematic versus the big

0:22:38chance of this being beneficial?" Because most of you people just won't notice or

0:22:41care.

0:22:42- Oh, yeah. Like in the Overcast app, the iPad app is pretty hard to lay out

0:22:47because I have a lot of code sharing with the iPhone app and iPad has way

0:22:51different aspect ratios for different things. One of the problems is I really

0:22:55couldn't figure out a way to lay out the ad in Overcast on the now-playing screen

0:22:59on the iPad. So I just don't show the ads on the iPad because it's only like 6% of

0:23:05my user base and I decided losing 6% of ad views is worth the benefit of not

0:23:11having to write a ton more code on this right now because it wasn't going to be

0:23:17worth it for me. You know, when money's involved, it's a little hard to do things

0:23:23like what you're saying or like not showing my ads here. But you always have

0:23:27to think about like how much of my time is this actually worth for like what is

0:23:32the actual risk or loss of not doing it here.

0:23:35- Yeah, and it's, I mean, certainly we have the wonderful situation of being

0:23:41like completely in control of these choices that we make. And we can decide

0:23:44that if we kind of want to just bypass this complexity and take a shortcut

0:23:49because like basically if the user, it's like these types of tweaks or tricks are

0:23:54just like is the user going to complain? You know, I doubt they are. Like your

0:24:00iPad user is going to say like where's my ads? I want my ads. Like if anything

0:24:04they're just not going to notice. I mean, there's always ways too that you can

0:24:08kind of similarly, like little tricks that I use that are maybe more positive in

0:24:12a similar kind of vein where like I always love keeping a kind of, I keep a

0:24:17vague metric of how much someone has used an application. And I tend to just

0:24:23like store this in a user defaults value that, you know, I increment over time or

0:24:27something like that to try and allow me to, you know, change things in the

0:24:31application based on if they use it a lot. So like for example, the first time

0:24:35you ever launch a lot of my apps, if they have ads, the ad won't show the first

0:24:40time because there's A, there's some weird complexities around that for like,

0:24:46it's you never, you know, if the app isn't working correctly, you know, say like

0:24:52they, in a lot of my apps require users to give permissions. Like I need to get

0:24:56access to your motion data or your health data. And the app will kind of be in some

0:25:01ways be kind of broken if you haven't given it permission. If that, you know,

0:25:05when the app first launches and it asks you, if you say no, the app isn't kind of

0:25:09this weird broken, that's not broken, but it won't really work correctly. And I

0:25:12don't really like the thought of like having these kind of these error messages

0:25:15and things saying, hey, you need to go to this place and, you know, turn on all

0:25:19these permissions. And at the bottom, I'm showing an ad. Like I don't like the

0:25:22feel of that. And so it's like, well, I'm just not going to show the ad until I'm

0:25:25pretty confident that the app is working and, you know, is creating an experience

0:25:29that you're going to want to come back to. Or even more similarly, like a little

0:25:33trick that I use in pedometer is as soon as you have used it enough that you have

0:25:39more than enough data that it will fit more than just a one screen of data. I

0:25:44slightly wiggle the bar graph to show that it moves to encourage you to scroll.

0:25:50And then the first time you scroll and see past data, you know, I again, I mark

0:25:54this little like total use thing to say that now they've used that. So, you know,

0:25:58stop wiggling the bars. But it that kind of these little tricks to just try and

0:26:03make the app gradually get better and better for people as they go. Yeah. And

0:26:08there's all sorts of things you can do like that. Just people might not notice

0:26:12or care about. Like, for instance, if you have an annual subscription, you don't

0:26:18have to actually write the code that tells people their subscription is going

0:26:21to expire for a year after you launch it. Yeah. Things like that. Like, and you

0:26:27know, like, and there's a couple of shortcuts that I have also taken where

0:26:30it's kind of like, let me see if I can get away with something like by basically

0:26:33like, let me try it and see if no one complains. So one of the more recent

0:26:39examples of this is Overcast basically does not support rotation on the iPhone

0:26:4410. There's a couple of bugs that will occasionally let it happen, but it

0:26:47shouldn't be happening. For most people, it's not happening. On the iPhone 10,

0:26:50rewriting all the view controllers and everything to support all the inset edges

0:26:56and stuff was such a big job that I decided, you know what, let me just

0:27:00launch my iPhone 10 update with rotation disabled only on the 10 and I'll see

0:27:05how many people complain. And it's been almost none. Almost no one has complained.

0:27:09And so I think I'm going to actually just disable rotation on the 10 permanently

0:27:13because it's, again, it's a lot of work to do and then to maintain. And also the

0:27:18rotation is really buggy in iOS 11, just in general. So like that's a lot of stuff

0:27:23that I would have to do for right now by not doing it. No one seems to care.

0:27:29So I'm probably just going to not do it.

0:27:32Yeah, and I think what's great about that is it's an example of these things

0:27:35where I feel like it's so easy, you know, when you're developing something to

0:27:40imagine all of the possibilities and the situations that people may want, all of

0:27:47the things that they could potentially think about or might possibly desire.

0:27:52And you can imagine all these scenarios and you can kind of build them up in your

0:27:55mind to be bigger than they actually are in practice. And I've had a similar kind

0:28:02of thing where people often don't notice or don't care about some of the things

0:28:07that you think they might. And so building ahead of time some of those things

0:28:11doesn't make a lot of sense. And then also it's understanding that people,

0:28:16if you build all these things ahead of time, in this case, if you did all the

0:28:25crazy work on rotation, you may not actually garner any better, more goodwill

0:28:31if a) most users don't see it and b) the users who do see it will just assume

0:28:35that of course it's there for sure. Whereas the opposite in a weird way is

0:28:40if you didn't launch with rotation on the iPhone 10 and you get lots of people

0:28:44who ask for it and then you add it, in a weird way you actually come out ahead

0:28:48because then suddenly you just gave them something they want. Which is, in a

0:28:53weird way, it's a funny way to structure it but you actually potentially

0:28:57engender more goodwill by limiting it initially and then subsequently fixing it.

0:29:03And that's a dangerous game to play but it certainly is a game that you can play

0:29:07and sometimes win as a result.

0:29:09That's awesome.

0:29:10Alright, well thanks for listening everybody and we'll talk to you next week.

0:29:14Bye.

0:29:15[BLANK_AUDIO]