0:00:00welcome back to under the radar a show
0:00:02about independent iOS development I'm
0:00:04Marco Arment and I'm David Smith under
0:00:06the radar is never longer than 30
0:00:07minutes so let's get started
0:00:09so today I think we wanted to talk about
0:00:12probably one of the most common but yet
0:00:15challenging parts of being a developer
0:00:17at least in my experience and that deals
0:00:19with unexpected complexity when you
0:00:23start off working on something and you
0:00:25have a kind of an expectation of how
0:00:27complicated it's going to be to do what
0:00:29it's going to look like the effort
0:00:30involved the time involved and then you
0:00:33sit down you open up Xcode you start
0:00:35programming and it turns out that it's a
0:00:38complete nightmare and it's going to be
0:00:39way more effort and way more work and
0:00:41that experience happens so often that I
0:00:45think having a good like process and
0:00:47mindset about dealing with it is one of
0:00:50the very important things of being able
0:00:51to ship software in a reasonable time
0:00:54and reasonable quality and I think we
0:00:56both recently had an experience that
0:00:58kind of fell into that category and so
0:01:01it was kind of it's this episode I think
0:01:03will be more of a case study style in
0:01:05terms of talking through our experiences
0:01:07and so I believe that is the experience
0:01:10that you had when you were working on
0:01:11the streaming engine for overcast am i
0:01:13right oh yeah I mean streaming as a
0:01:16feature you know so overcast as a
0:01:18podcast player and the the built-in
0:01:22Apple API is for playing media using AV
0:01:25player
0:01:25most of that stuff supports streaming
0:01:28out of the box you don't really have to
0:01:30do much to enable it or I mean depending
0:01:33on how much you want your interface to
0:01:35behave you don't necessarily have to do
0:01:36anything so it's it's very it's
0:01:38relatively easy to support streaming
0:01:41media just as well as you do locally
0:01:43played media if you're using AV player
0:01:44but one of overcast biggest selling
0:01:47features and one of the things that
0:01:48makes it most compelling at both to me
0:01:50and to many of the users is my custom
0:01:53audio engine with a feature called smart
0:01:56speed where smart speed dynamically
0:01:58adjusts the playback and and the way it
0:02:00works is it there's a processing
0:02:05function that needs to read in the audio
0:02:08samples in the middle of the processing
0:02:10stream and then
0:02:12output possibly a different number of
0:02:14them if it's speeding up the sound so it
0:02:17might it might take in 500 samples and
0:02:20then the middle of it might be silence
0:02:22as it detects silence so it might
0:02:24compress that down to 300 samples so you
0:02:27need you need the ability to inject it's
0:02:30the pressing stage a function that can
0:02:32read faster than it can output and that
0:02:35is not possible with a B player there is
0:02:37no method there's no mechanism to do
0:02:38that that I have found at all I mean
0:02:40really if anyone knows I'm really
0:02:41curious but I have looked many times
0:02:44every time there's a new SDK I look I've
0:02:46asked Apple engineers at WB DC and in
0:02:49labs and via email and it really does
0:02:51seem like it was just not possible with
0:02:52AV player so the way I do this is I
0:02:55actually just wrote the I basically
0:02:57wrote my own AV player it's it's a not a
0:02:59small task and and it's I'm writing at
0:03:02the core audio and audio units levels
0:03:04and you know custom decoding of
0:03:07everything and when you go lower level
0:03:09to enable this they're the easiest way
0:03:13to do it is something called the ext G's
0:03:16ext audio file API and that is that only
0:03:21works for for locally stored files it
0:03:24does not work for streams there's a
0:03:26separate API the audio file stream API
0:03:28that is lower level than that and that
0:03:30you can you can supply stream data to
0:03:33you still have to manage the fetching of
0:03:35the stream yourself and a lot you have
0:03:37managed a lot yourself so the the job of
0:03:40streaming was to convert from that ext
0:03:43audio file API that only does local
0:03:45files to the lower-level
0:03:47audio file stream API and also then
0:03:50build out all the UI behind it build at
0:03:53the network fetcher that the actual
0:03:54streamer that can stream things and of
0:03:56course make it all performant and
0:03:59responsible of data usage and memory and
0:04:01responsible of the CPU and also handle a
0:04:06whole bunch of weird edge cases and I I
0:04:08knew it was gonna be a big job going in
0:04:11but I didn't quite realize how big how
0:04:14many of those edge cases there would be
0:04:16how tricky some of them would be to
0:04:17solve and the biggest thing like when
0:04:20we're talking about unexpected
0:04:20complexity the biggest thing for me is
0:04:23unexpected time that it takes
0:04:26you know this is why our business is
0:04:28historically so bad at estimating time
0:04:31and chip dates and when you're
0:04:32independent I don't think we're any
0:04:34better at it you know I think in many
0:04:36ways meant be worse
0:04:37how do you do you find that you are good
0:04:40at estimating time I think the honest
0:04:42answer is that I've stopped estimating
0:04:44time or even trying to like I have found
0:04:49that it doesn't actually help for like I
0:04:52have this vague sense of like I would
0:04:53like sometimes I have that the only
0:04:55deadline I usually have is a new devices
0:04:57being shipped or a new OS is being
0:04:59shipped like there's something specific
0:05:01that like if I want to be there on day
0:05:03one of the iOS 9 launch then I need to
0:05:06you know be in this habit my app ready
0:05:08by the beginning of June of September
0:05:09like other than that I try hard to not
0:05:12think too much about timelines because
0:05:14every time I've tried to do that it
0:05:17never works like that's semantics like
0:05:19the class is the most like universal
0:05:21experience of software engineering is
0:05:22you think it's going to take two weeks
0:05:25it ends up taking four weeks and that's
0:05:27just the reality of like you're all like
0:05:30as you I mean I think it sounds a little
0:05:32bit like you have the same experience
0:05:33like you start off thinking okay maybe I
0:05:35can do this with these high-level api's
0:05:37like you know these things apples you
0:05:40know has put together their tried and
0:05:41true whatever and you start using it and
0:05:43it's like okay it does most of what I
0:05:46need but it doesn't do this one critical
0:05:48thing and you start being like how
0:05:50critical is that well it's probably
0:05:52pretty critical and so you like you step
0:05:53you take your neck next step down and
0:05:55then you take your next step down and
0:05:57then before long you're just like
0:05:58reimplemented all kinds of crazy stuff
0:06:00and you have no way of knowing
0:06:02superficially what that's going to look
0:06:05how many love stacks deep how much
0:06:07rewriting and rebuilding of stuff you're
0:06:09gonna need to end up doing to get what
0:06:11you're going to do and so then I was
0:06:12just like I don't know I'll just sort of
0:06:14hope for the best
0:06:15and like other than for ios9 things you
0:06:18know an idea for those I just tend to
0:06:19say like how much like I'll just work
0:06:21until I can't I run out of time and just
0:06:24try and structure what I'm working on
0:06:26such that I can like you know not not be
0:06:30half-finished have like half the things
0:06:32fully finished rather than all the
0:06:34things half finished but yet estimating
0:06:37time is a complete nightmare I find yeah
0:06:39and and we're lucky that when we're
0:06:42working for ourselves on our own product
0:06:45for the most part our time estimates
0:06:47aren't that important because for the
0:06:48most part you know only the users are
0:06:50demanding things if anybody it's it's
0:06:52not like you know when you're when
0:06:54you're a consultant the pressure is much
0:06:55stronger on you to meet the clients
0:06:57deadlines or when you're working for a
0:07:00company you know when you're working
0:07:01directly on your employer's product it's
0:07:04you know you have similar pressures from
0:07:06that but when you're consulting you if
0:07:08you have a whole different aspect of it
0:07:09which is that you know the client is
0:07:11often directly paying you for the time
0:07:13that you are taking and that of course
0:07:16makes you even more complex we are both
0:07:18lucky that we're not currently in that
0:07:19kind of role but certainly I would I
0:07:22would say from from just anecdotal
0:07:24evidence it seems like the vast majority
0:07:26of iOS developers are involved in some
0:07:28kind of contract work that that seems to
0:07:31be the biggest chunk of the of the iOS
0:07:34workers out there and and time estimates
0:07:37are such a nightmare there I've just
0:07:38we're both lucky that we can't really
0:07:40talk much about it because I haven't
0:07:42done it in forever and even when I did
0:07:44it I didn't do very much of it and you
0:07:46it's been a while since you've been
0:07:47consulting as well right yeah I mean
0:07:48I've the last time I did regular
0:07:51consulting was probably four or five
0:07:53years ago something like that like I
0:07:55started out as a consultant that was
0:07:56what I was doing to initially but it's
0:07:59been a long time since that made up any
0:08:00kind of significant portion of my
0:08:02business and I Helen very quickly when I
0:08:05was doing consulting though to not
0:08:07commit to time estimates and as much as
0:08:11I could because you're always going to
0:08:13run into that there's always some kind
0:08:14of complexity that you're not expecting
0:08:15and if you don't plan for it if you
0:08:18don't look at a problem and say like
0:08:20whatever you it's like the old rule of
0:08:21like whatever you think it's going to
0:08:22take like multiply it by three and least
0:08:25you're probably you're probably well off
0:08:27but yeah I try as best like the first
0:08:30rule like but if you definitely have
0:08:32that experience when you start off
0:08:32consulting where you start to say like
0:08:34oh it's gonna take such you know that'll
0:08:36only be like a week's worth of work and
0:08:38you commit to the client to do that and
0:08:39then it never ends up being a week's
0:08:41worth of work it's just that's just the
0:08:43reality I mean even and I mean with with
0:08:46streaming I had so many problems with I
0:08:48would I started it I think three or four
0:08:51times and I would get down a certain
0:08:53path or try to try to approach it in a
0:08:55certain way and realize that it was just
0:08:58it was just never gonna work I was never
0:09:00gonna be able to complete it in the way
0:09:02I was doing it or it just was not
0:09:04working or I had made too many mistakes
0:09:06or I had made too many subtle bugs that
0:09:09I couldn't find at the very low levels
0:09:11and so I would just scrap it and start
0:09:12over again and when when you're at a big
0:09:15time crunch you don't usually have the
0:09:18opportunity to do that and that can be a
0:09:20blessing and a curse you know if you do
0:09:22that too much then you're wasting a
0:09:24whole bunch of time and like you know
0:09:25it's never going to be perfect it's
0:09:27never going to be exactly the perfect
0:09:28design exactly what you want and so if
0:09:30you if you have too many opportunities
0:09:31to cancel it and start over again you're
0:09:34just gonna kill tons of time but if you
0:09:35don't have any opportunities to do that
0:09:37which is often the case when you're
0:09:38under time pressure from a client say I
0:09:40feel like it's hard to get good quality
0:09:42work because you really do learn a lot
0:09:45if you try to do something didn't get a
0:09:48chance to throw it away and do it over
0:09:49again yeah I think one thing that I was
0:09:51my experience like whenever I've
0:09:53encountered these kind of problems like
0:09:55where I'm trying to deal with something
0:09:57that ends up being really much more
0:09:58complicated than I think like I I start
0:10:00off with a mental model for the problem
0:10:02that is straightforward for example the
0:10:05thing that I would most recently ran
0:10:06into this with is I did a data syncing
0:10:08and merging algorithm for pedometer plus
0:10:10plus so like it takes the steps from
0:10:13your watch and your phone and make gives
0:10:15you a unified view of them in semi
0:10:17real-time which is at first I was like
0:10:19oh the mental model for this is great
0:10:21there's health kids right I can just use
0:10:22health get and you can't because that's
0:10:25not how healthy it works because it's
0:10:26not available on the watch in the way
0:10:28that shows you phone data so I very
0:10:30quickly discovered that like my original
0:10:31mental model was completely wrong and so
0:10:35then like but I might process tends to
0:10:36be I have this really straightforward
0:10:38mental model it ends up not working and
0:10:40then I end up going down these crazy
0:10:42paths of like incredibly complicated
0:10:45solutions like all of these really like
0:10:48brittle and not really gonna work
0:10:50solutions like all kinds of crazy -
0:10:52algorithms and merging schemes and way
0:10:54of throwing data back and forth and you
0:10:55get to the end and the times I'm most
0:10:58satisfied with my work though or when I
0:11:00end up after all of that with a simple
0:11:03solution again that is informed by all
0:11:06of those crazy
0:11:07paths down there down the way like you
0:11:09can learn the lesson and be like okay
0:11:11actually I don't need to do all these
0:11:13crazy things now that I understand the
0:11:15problem fully from like top to bottom I
0:11:17can say okay I don't need to worry about
0:11:20the data at all these in all these crazy
0:11:22ways I can just somehow make all these
0:11:23sort of nice simplifying assumptions
0:11:26about how it is because I've tested and
0:11:28verified that that those are those work
0:11:30and then I can build like a solution
0:11:32that's almost as simple as the one I
0:11:34started off with wanting to build and
0:11:36then now that actually deals with all
0:11:38that complexity and like whenever I'm
0:11:39able to go through that process it's
0:11:40like it starts simple
0:11:41it gets horrific ly messy and then it
0:11:43gets simple again I know I've done doing
0:11:45it right
0:11:46Hyup if ever it is having to stop in
0:11:49that middle state where it's still
0:11:50really messy like I know it's gonna
0:11:52break I know it's not gonna work like it
0:11:55needs to be something that I could just
0:11:56describe to myself in just like a few a
0:11:59few sentences or something has probably
0:12:02gone wrong what kind of system did you
0:12:05end up with to address the the watch OS
0:12:082 or watch kit to sync problem because
0:12:11you know as as you are very well aware
0:12:14and as some of our games might be you
0:12:17know with what watch kit 1 apps were
0:12:20actually fairly straightforward and
0:12:22simple to make because they couldn't do
0:12:23that much and because they were running
0:12:25on the phone in the app sandbox and the
0:12:28same sandbox is the iPhone app so that
0:12:30you could have a shared container and
0:12:31that and the iPhone app and the watch
0:12:34app could literally be reading and
0:12:36running from the same data and and
0:12:38that's how I structure the overcast
0:12:39watch app which is I just moved the the
0:12:42database file the SQLite file into the
0:12:45the app container and then the the
0:12:48communication between the watch app and
0:12:51the phone app is limited only to
0:12:52basically commands and status updates
0:12:55and all the data the watch app reads the
0:12:58data right off the database and you know
0:13:00the phone just tells the watch when it
0:13:02has changed and the watch reads it so
0:13:04it's it's actually you know very quite
0:13:06simple in that way because there is no
0:13:08sync issue if the watch can't reach the
0:13:11phone at the given moment you just can't
0:13:14use the overcast app because it's all it
0:13:16is a remote control for the phone so
0:13:19it's great with watch OS 2
0:13:21that that shared data container no
0:13:23longer quite exists the same way or at
0:13:26all really it doesn't exist at all yeah
0:13:27right so so with watch OS 2 it is like
0:13:30it you are running two separate apps and
0:13:32you need to figure out how they're going
0:13:33to communicate with each other and there
0:13:35you know there's method there's methods
0:13:36to do the basics but there is no like
0:13:39automatic magical syncing that happens
0:13:41so you have to deal with how these
0:13:43things synchronize their data yourself
0:13:45that's one of the reasons why I haven't
0:13:47made an overcast watch OS 2 app why I'm
0:13:51just key I just keep having the the OS
0:13:53one app first of all because it works
0:13:56well enough in a watch I was to improved
0:13:58watchkit reliability quite a bit and so
0:14:00it the app works well enough for the
0:14:02most part but also you know that it
0:14:05would be a major undertaking as you say
0:14:06as you discovered you know it's a major
0:14:08undertaking - all of a sudden tackle
0:14:10these two - all of a sudden take
0:14:12something that used to be a dumb remote
0:14:13and make it a full app with its own
0:14:16local storage and the problem of syncing
0:14:19both ways and so you know if you if you
0:14:21take the phone away and you have the
0:14:23watch off by itself somewhere playing
0:14:25podcast somehow which is own separate
0:14:27bag of hurt of like you know how capable
0:14:29that is right now and watch iOS 2.0 but
0:14:32if you somehow do that then you have to
0:14:35when upon reconnection to the phone you
0:14:38have to sync up that data again and
0:14:39resolve possible conflicts and it's it's
0:14:42a it's a very it's a much larger problem
0:14:45than it seems upon first glance because
0:14:47while the API is and everything are all
0:14:49very similar to what they were and watch
0:14:51oh and watch get one the the data model
0:14:54is totally different and that's where
0:14:56most of the complexity I think would lie
0:14:57and I haven't yet decided that's worth
0:15:00the investment apps for the Apple watch
0:15:02are a whole whole separate topic but I I
0:15:05have found generally that that I'm I'm
0:15:07very scared to tackle that this is one
0:15:09of the few times where I've spotted that
0:15:11that complexity ahead of time and and
0:15:14possibly wisely I don't know but
0:15:16possibly wisely I'm avoiding it yeah
0:15:19because I think what I've ended up
0:15:20having to do in watch OS 2 is
0:15:23essentially you have to build two
0:15:25completely independent can run on their
0:15:29own apps like the watch app has to be
0:15:32able to run entirely on its own without
0:15:34the
0:15:34able to like phone home to the to the
0:15:37phone the phone app obviously needs to
0:15:39be able to run without the watch which
0:15:40isn't that much of a stretch because
0:15:42that's what it does if you don't own a
0:15:43watch and then you have to do these
0:15:46funny things because the communication
0:15:48between the two is not reliable both in
0:15:52terms of sometimes the watch is just
0:15:54physically not close enough to the phone
0:15:57in order to communicate and also
0:15:59sometimes the just the api's and things
0:16:02like because I think it's because
0:16:04they're trying to do so much about power
0:16:06management and you know sometimes
0:16:08certain types of messages only go
0:16:09through if it's a good you know it's a
0:16:12good thing from a energy perspective to
0:16:13be able to do like the radios are all
0:16:15turned up and fired up so hey let's go
0:16:17ahead and send it right away if they're
0:16:18not maybe we'll wait and see if we are
0:16:20going to fire up the radio anyway for
0:16:22the next you know in the next second if
0:16:24not then maybe we'll do it and so you
0:16:26have to build the system that is very
0:16:29head makes no assumptions about being
0:16:32able to talk to the other part but still
0:16:34gives your user a consistent experience
0:16:37across both and that's where like from
0:16:40for this project that I was working on
0:16:41became like the really crazy thing
0:16:42because like a pedometer in some ways is
0:16:45very simple like both at both devices
0:16:47have a motion processor on it that tells
0:16:50you how many steps they took in a
0:16:51particular time period like that's all
0:16:53they do and that's most of what the app
0:16:54is doing and so I could run completely
0:16:57independently in terms of like if you
0:16:59just if I could just showed you the
0:17:01watch's steps on the watch app and it
0:17:03just showed you the phone steps on the
0:17:05phone app it'd be trivial but I want to
0:17:07be able to do is I've seen merge those
0:17:08together and say like which one is a
0:17:10better representation of what you're
0:17:12doing and that BK is where all the crazy
0:17:15complexity comes in because I had a
0:17:17couple of things that I was like oh so
0:17:19many of like conflict resolution
0:17:20strategies don't really work in this
0:17:22scenario because I can't just do simple
0:17:24things like who updated most recently or
0:17:26things because if I can ever for example
0:17:29make someone step count go down well I
0:17:32guess I could but conceptually I've
0:17:34always had that be like a rule for the
0:17:36app that if I ever even if it was like
0:17:38slightly an error if I ever showed you a
0:17:40step count like for example you hit your
0:17:41goal right like you got 10,000 steps
0:17:43confetti comes down from the screen
0:17:45hooray you did it I don't want you to
0:17:47then like sync up with your watch and
0:17:48say like
0:17:48actually now we think that you did 9000
0:17:51steps like that would be terrible
0:17:53right to withdraw somebody's confetti
0:17:54yeah like I'm sorry your confetti now
0:17:56goes back up to the top of the screen
0:17:57and animate it in Reverse
0:17:59it's like it I think that'd be awful
0:18:01right play like a sad trombone yeah and
0:18:04so you have to like a lot of my syncing
0:18:05stuff is about saying like what's the
0:18:07biggest number of steps that you've
0:18:08shown the user for the particular time
0:18:11period that we're looking at and syncing
0:18:14that up so that if I ever needed to show
0:18:18as sort of add extra steps I have I know
0:18:20what I need to add and also I need to do
0:18:23that but like it's not just like as
0:18:25simple as like who's shown more because
0:18:27the nature of these devices is like
0:18:29which one of them one of them is going
0:18:31to be showing you a better view of the
0:18:32user's activity probably at any one time
0:18:34like when I'm walking and pushing my
0:18:36daughter in a stroller my phone in my
0:18:39pocket is gonna be a better idea of how
0:18:41many steps I am because my wrist is
0:18:42actually not moving you know it's
0:18:43attached to a stroller pushing it along
0:18:45but when my phone is like in a backpack
0:18:48or in my or like my wife runs into this
0:18:50a lot like her phone will be in her
0:18:52purse but her watch is on her wrist so
0:18:54then her her watch is the better
0:18:55indicator of steps and so it's like
0:18:57having to work out a scheme that is in
0:18:59real-time dynamically working out which
0:19:01one based on the information we have
0:19:03which we may or may not have all the
0:19:05time looking at the two data streams and
0:19:08merging them together and like that is
0:19:10what you end up having having said like
0:19:12that's the the minimum threshold for
0:19:15having this thing work is you have to
0:19:16have built a system that can do all that
0:19:18like that was the complexity for me that
0:19:20just became like wow this is a whole
0:19:22bigger thing than I would ever imagined
0:19:24it would be yeah and this and that's
0:19:27like one of the one of the things that
0:19:29makes these unexpected complexities so
0:19:32so frustrating or so powerful is that
0:19:37again they're unexpected you have no
0:19:39idea when in a project you're going to
0:19:41hit something like this until you hit it
0:19:43and head so like you know it the more
0:19:45experience you get as a developer or
0:19:48just as a person who lives in life then
0:19:51the more experience you get it becomes a
0:19:54little bit more likely that you'll spot
0:19:56them ahead of time and and be able to
0:19:58possibly either avoid them or at least
0:19:59at least like budget for them but
0:20:02they're still
0:20:02always like stuff that you hit it's
0:20:04unexpected and it can totally throw a
0:20:07project off so like you know one thing
0:20:09that I do to manage this is if I if I
0:20:13can tell something is going to be a big
0:20:14hairy mess a lot of times I'll just cut
0:20:17the feature I'll just you know I'll just
0:20:18avoid it I'll say sorry that's that's
0:20:20not worth doing we know with overcast
0:20:22I knew streaming was going to be a big
0:20:23deal so for version 1.0 I just didn't
0:20:26include it i I couldn't ship it in time
0:20:29I thought it is tomato that it would be
0:20:31a better idea to ship the app without
0:20:33streaming than to wait another six
0:20:36months to a year to tube add streaming
0:20:39that turn out to be correct and in the
0:20:41case of my watch app now where I I have
0:20:44the watch OS one app the watch OS two
0:20:46app would be a ton of work and and would
0:20:49be different and might not be better you
0:20:51know my it might just be different I
0:20:53calculated so far that at the moment it
0:20:56isn't worth investing the time in that
0:20:57and it might never be I don't know but
0:21:00certainly right now it isn't worth
0:21:01investing with time in that when I could
0:21:03instead be doing something with the same
0:21:04amount of time I can instead be doing
0:21:06something like the Apple TV app or or a
0:21:09major new feature or a new e and even a
0:21:12brand new app if I wanted to like I you
0:21:14have to really decide what's worth
0:21:16syncing all this time into and sometimes
0:21:19it isn't the big hairy problem in front
0:21:21of you sometimes that problem is best
0:21:23off just staying unsolved that feature
0:21:26might be better off staying
0:21:27unimplemented and or that app that might
0:21:31be better off not being made and you
0:21:32might be better off spending that time
0:21:33in other ways because you can do a lot
0:21:36of low-hanging fruit in other parts of
0:21:39your app or as other apps in the same at
0:21:42a time that you could tackle one big
0:21:43hairy problem in one app and it might
0:21:45not be worth it our sponsor this week is
0:21:48need to go to need addition com need is
0:21:51a curated retailer and lifestyle
0:21:52publication for the modern gentlemen
0:21:54each week need launches new collections
0:21:56of exclusive clothing literature
0:21:58furniture and more now earlier this
0:22:01month coinciding with the company's
0:22:02second birthday need luncheon all new
0:22:04site expanding its availability into 43
0:22:06countries in Europe South America Asia
0:22:09and the Middle East
0:22:10shipping is flat rate for all
0:22:11international orders and free for all
0:22:13orders to the US Canada and
0:22:15Mexico and all returns are free no
0:22:18matter where you are all over the world
0:22:19this month Neda's launched three
0:22:21collections including their holiday gift
0:22:23guide featuring dozens of gift ideas for
0:22:25the holidays many of which are under $40
0:22:28neat is designed to be simple
0:22:29straightforward and uncomplicated
0:22:31they include prepaid return labels with
0:22:33all shipments there for 24/7 support and
0:22:36there aren't any subscriptions or
0:22:38stylists or other gimmicks to deal with
0:22:39it's just a straightforward retailer
0:22:41simply come along to neat addition com
0:22:44peruse the latest collections and shop
0:22:46or don't your choice for listeners of
0:22:49this show use coupon code read our for
0:22:5120% off that is coupon code radar at
0:22:54neat addition calm for 20% off anything
0:22:56thank you so much to our friends at need
0:22:58for sponsoring under the radar
0:23:00getting back to one thing that you just
0:23:02said that I think is probably a good
0:23:04place to do binding down this discussion
0:23:06is I think the thing that I've learned
0:23:08most like this is the like the
0:23:10battle-hardened wisdom of dealing with
0:23:12complexity is making sure that I'm
0:23:16solving the the problem for the right
0:23:19reason I think most of us who get into
0:23:22software engineering or whatever you
0:23:24want to call what we do we like solving
0:23:27problems and the problems that we like
0:23:29solving most are the most difficult
0:23:31interesting tricky problems like if that
0:23:34is I think I'm mu I'm in my element the
0:23:36most I'm the most engaged I'm the most
0:23:38excited about what I'm doing when I'm
0:23:40solving a really interesting problem
0:23:41like if I'm just writing boilerplate
0:23:43code that's not nearly as exciting and
0:23:47something I want to really like wrap my
0:23:48arms around and get you know sort of get
0:23:49up in the morning to dive into and so
0:23:52the thing that I though then always have
0:23:53to keep in the back of my mind when I
0:23:55find a problem like this when I'm
0:23:56working along on a task and I find that
0:23:58there's this big unexpected bump in
0:23:59complexity like you were just saying
0:24:02like sometimes you're just worth not
0:24:03doing it like I think I know I've had to
0:24:05teach myself some discipline with is
0:24:07that I see when I see a problem like
0:24:08that when I seize an opportunity to
0:24:10really like you'd go crazy spelunking
0:24:12like dive deep down into some crazy low
0:24:14api's and like build this crazy cool
0:24:16clever system make sure that I'm not
0:24:19just doing it like because it would be
0:24:21intellectually fun and interesting like
0:24:24sometimes there's a place for that but
0:24:25I've definitely caught myself sometimes
0:24:28just building things
0:24:29because I think it would be fun and it
0:24:32wouldn't actually make my customers
0:24:33happier it wouldn't actually make my
0:24:34products better it would just be fun for
0:24:37me to do and I end up going down you
0:24:40know these crazy rabbit holes and doing
0:24:41all these things and often the reality
0:24:44is it isn't actually as fun as I thought
0:24:45it was gonna be like it's fun for the
0:24:48first few out for the first few hours
0:24:49first few days and then you just like
0:24:51it's like you're in this point where
0:24:52like I will always want to avoid where
0:24:54it's like I started working on my car
0:24:56and I've taken it completely apart and
0:24:57like the NIF I've come to discover like
0:25:00the fun part was taking it apart the fun
0:25:03part is not putting it back together and
0:25:04now I don't have a car anymore
0:25:06like that's the part where I have to
0:25:08catch myself and be like am I really
0:25:10doing this for the right reason is this
0:25:11complexity worth the effort and having
0:25:15that kind of taking a step back from
0:25:16your work is a sort of a habit and a
0:25:19discipline that I found has been very
0:25:21helpful in me making sure that I'm
0:25:22staying on track and especially being
0:25:24like a one-man shop like there's no one
0:25:26I don't have a supervisor being like huh
0:25:28yeah yeah we're just gonna cut that
0:25:30feature that's that's too much it has to
0:25:32be something that I have the ability to
0:25:34not just totally suck down these rabbit
0:25:37holes and say like yes of course I
0:25:39needed to do this thing because it's
0:25:40really interesting and really hard like
0:25:43I need to be able to say like will this
0:25:44will look well my customers notice if I
0:25:46do this and if they won't like am I just
0:25:49doing this for myself and if I am like
0:25:52that's kind of sometimes fun but that's
0:25:55really not a way that you're gonna be
0:25:56able to reliably ship quality products
0:25:59you're just gonna end up with a lot of
0:26:00kind of like crazy half-built things
0:26:02that probably will end up making your
0:26:04app more complicated and harder to use
0:26:06for your customers in the end yeah
0:26:09that's a fantastic way to look at it and
0:26:11we all face that that dilemma because I
0:26:13mean look we've we're all geeks we all
0:26:15like interesting things we all like
0:26:17keeping our brains interested and try
0:26:19new things and approaching problems and
0:26:20new ways or doing things in better ways
0:26:22than what we did in the past
0:26:23it's not that you should never do that
0:26:25but that there's a balance to be struck
0:26:27and that that doing that has significant
0:26:29time costs that may not be worth it
0:26:32and and you know doing like a major
0:26:34rewrite of something that already works
0:26:35might also introduce brand-new bugs in
0:26:37fact it almost certainly would brand new
0:26:39bugs that you that you didn't have
0:26:42before they need to get to go facing
0:26:43and so it's just a balance you need to
0:26:46keep yourself happy
0:26:47and learning and intellectually
0:26:49satisfied but you also need to ship
0:26:51products and and it's important to find
0:26:54that balance and and that's something
0:26:55that I think mostly just comes with
0:26:57experience and and wisdom over time it's
0:27:00it's not that you can never have fun but
0:27:02that you should know when to have fun
0:27:05and when it and when it's no longer fun
0:27:07you need to get back to work yeah and I
0:27:10think ideally the best lesson I've had
0:27:11about that is it's trying to have
0:27:13customer focused development in that way
0:27:15it's like the time to do that the time
0:27:17to solve interesting problems is to find
0:27:20features or find apps or find ideas that
0:27:23solving a difficult problem will make a
0:27:27customer's life better and like the
0:27:29intersection of those two things like a
0:27:31really interesting technical problem and
0:27:33a real honest need or pain point in
0:27:36someone's life like that's where really
0:27:38interesting and fun work happens and if
0:27:41you can't sort of honestly say that it's
0:27:43both interesting to build and useful for
0:27:46a customer then you're probably not in a
0:27:49place that is actually worth building
0:27:50all right thanks life listening
0:27:52everybody please tell your friends about
0:27:54the show helps help us spread the word
0:27:56recommend us an overcast and we'll see
0:27:59you next week