0:00:00Welcome to Under the Radar, a show about independent iOS app development.
0:00:03I'm Mark O'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 after a couple of weeks of having topics that are a bit more conceptual and a little
0:00:15bit more topical, I thought it would be fun to dive into something a little bit more technical.
0:00:19Not too technical, don't be afraid if you're, if you listen to the show but you're not a
0:00:22programmer, but something a bit more in the weeds.
0:00:26And specifically, I kind of wanted to talk about code reuse.
0:00:31And the degree to which it makes sense to take aspects of our programs and turn them
0:00:39out and sort of cut them out and put them into libraries.
0:00:42So you know, take a functionality and rather than having it be tailor-made for a particular
0:00:47app, try to make it sort of somewhat more generic or reusable.
0:00:52And specifically, this is something that I've been really, I would say, struggling with
0:00:57recently as I've been working over this summer with my app updates.
0:01:02Because I'm now in a position where I have a bunch of different apps that largely do,
0:01:07they have very similar aspects to them at their core, but are very different in their
0:01:13actual use.
0:01:14You know, so but most of my apps now, all these health and fitness apps, all the plus
0:01:17plus apps, use health kit in one way or another, for example.
0:01:23And I keep finding myself going back and forth on whether or not I should take my, all my
0:01:30sort of my health kit management and front-end code that deals with, you know, pulling data
0:01:35in and out of health kit and authorizing things, and I should pull that out and turn it into,
0:01:39you know, some grand unified library to deal with health kit.
0:01:43Or if I should do what I have been doing right now, which is taking the approach of learning
0:01:49lessons each time I kind of implement it, but ultimately having custom tailored solutions
0:01:55for each of my apps.
0:01:57And I feel like this is one of those things where ultimately there's probably not a right
0:02:01answer.
0:02:02It's sort of like a Vi and Emacs kind of a problem where there's just different ways
0:02:08to do it.
0:02:09Because both sides, you always have these pros and cons.
0:02:12If you take something and make it super generic and like this is a great library that's super
0:02:18reusable, that's great in concept and can sometimes give you some great benefits in
0:02:23terms of, you know, if you find a bug, you can fix it for lots of different places.
0:02:27But then you also have the downsides of now you have all these other complexity to manage
0:02:33in terms of if you make a change in your library, it could potentially affect all your apps
0:02:37at once and in ways that you aren't expecting.
0:02:40Maybe one of the apps is expecting that bug to be there because it's sort of had coded
0:02:44around it or against it.
0:02:46And it can make things really complicated, but intellectually or academically, it seems
0:02:50like that's a better thing to not repeat your code or similar code in multiple places.
0:02:56Or you can be super pragmatic and say like each of these apps has the tailor-made solution
0:03:02for it.
0:03:03And in some ways that seems really good.
0:03:06And so I keep going back and forth about it.
0:03:08And ultimately, I think I tend to almost always go on the side of just tailoring a custom
0:03:15solution to each of my applications and just giving myself permission to be okay with the
0:03:20fact that that means that I have in my code base at large, there are bits of code that
0:03:25are repeated and just say like that's okay.
0:03:30That's not theoretically or academically the best, but that kind of works for me.
0:03:33But I was curious to hear what you do, Marco, because obviously you don't have as many different
0:03:37apps as I do, but you have built a number of apps for long enough that I imagine you
0:03:42have a lot of things that you could kind of turn into libraries and reuse them.
0:03:47And how do you tend to approach doing that?
0:03:50I mean, so you're right.
0:03:52I don't really face it as much as you do because I just don't have very many apps I'm working
0:03:57on at any given time.
0:03:59But I do build up common libraries, frameworks, things like that just over time.
0:04:06I think many programmers do this, if not most.
0:04:10I hesitate to say all because who knows what everyone else does, but I would guess this
0:04:13is very, very common that everybody kind of builds up their own kind of personal collection
0:04:17of utilities and things that they like to use.
0:04:21There's always, as you said, there's always this kind of balancing act where if you try
0:04:25to make something that is generic and reusable and stable for use in multiple apps and everything
0:04:32and it handles all the various edge cases that any kind of different use could have,
0:04:37it is a lot more work to make that thing.
0:04:39To make whatever component that is, it's more work and you might never save that work.
0:04:46You might never reap the benefits of that because you might put all this effort into
0:04:49making something reusable and then never reuse it.
0:04:51Or reuse it in one other place where a copy paste would have been fine or re-implementation
0:04:56wouldn't have been that much work or whatever else.
0:04:58So there's the whole angle there of whether you make something reusable and generic at
0:05:04all or not or whether you just kind of stick it into your app in some kind of semi-orthogonal
0:05:09way that is semi-generic and just kind of hope for the best and just keep going and
0:05:14get your work done.
0:05:15And so I find myself doing this with a small collection of things.
0:05:19So in Overcast what I do is, I have my public collection of open source utility things called
0:05:28FC utilities for my company Full City Utilities.
0:05:33And we'll talk about open source a little bit later.
0:05:35I've actually debated pulling it down and closing the source again just because maintaining
0:05:39it is kind of a pain in an open way.
0:05:42But we'll get to that.
0:05:43So I have FC utilities as like this kind of separate collection of generic utilities.
0:05:49And then in Overcast I have a private, just a folder, like a group in Xcode, just a folder
0:05:55of files that I call FC utilities extras, which is like components that I make that
0:06:01I think might be reusable someday.
0:06:03It's kind of like a staging area before they go into the main library of my open source
0:06:08and shared components.
0:06:09Kind of like a staging area of things that, you know, I'm making this code that this might
0:06:14be useful.
0:06:15I might reuse this.
0:06:16I'm going to write it in a way that it could be reused.
0:06:18I'm going to write it in that kind of generic, reusable, edge case compatible way of a level
0:06:24of quality that I would expect from that.
0:06:26But I might never release it.
0:06:28Or I might never use it anywhere else.
0:06:29So I kind of had this kind of middle area that helps me decide or that gives me a place
0:06:33to put things like that that are kind of, you know, in the middle or in a gray area
0:06:36or underdeveloped in that way.
0:06:39And I do find myself needing to reuse things between Overcast and occasional other things.
0:06:48So occasionally it might be something else in iOS, although that's rare because I don't
0:06:51usually do multiple iOS apps at once.
0:06:55But I do have now, as I mentioned last episode, I am making a Mac MP3 kind of toolkit app
0:07:04for putting chapters in podcasts and stuff.
0:07:07And so I am dealing with a lot of the same kind of low level audio handling, MP3 handling,
0:07:13reading and writing of chapter metadata, stuff like that.
0:07:16I am having a lot of things now where I need code reuse.
0:07:20And I have faced this dilemma multiple times.
0:07:22Do I consolidate, you know, Overcast tag reading thing into this tag reading thing and make
0:07:27it one thing?
0:07:29Or do I share this low level audio reading code or not?
0:07:33And then when I do want to share it, what are the mechanics of that?
0:07:38Do I just copy the .c and .m file over?
0:07:40Or the .h and the .m file over?
0:07:44And copy it into the new directory?
0:07:45And that has a lot of advantages in simplicity and in lack of any kind of external dependency.
0:07:52But that also kind of sucks from a version control standpoint where if you then improve
0:07:57it in one place, the other one doesn't get that improvement.
0:08:00Or if you fix a bug, the other one doesn't get that bug.
0:08:01And you have to either just not backport it or manually switch it over or copy it back.
0:08:07And obviously we try to avoid those kind of hacks in programming these days because we
0:08:12know as a practice that's generally a bad thing.
0:08:17So then do I make a library?
0:08:20Do I make an actual, like...
0:08:24Do you actually use dynamic libraries in iOS?
0:08:29I never have, no.
0:08:30Like you can talk about things in, like, when you build stuff with Carthage or you could
0:08:34build them manually.
0:08:35Like, I've never gone down that road.
0:08:37Because I always find myself thinking, the inertia I have to overcome before I was like,
0:08:42"Okay, this is worth going through this process."
0:08:45Where now suddenly it's this whole, like, building my app is not just as simple as hitting
0:08:49build in Xcode.
0:08:50Like, there's dependencies I need to manage and version control that I need to keep track
0:08:54of.
0:08:55And if I want to rebuild a particular version of my app, that's now a more complicated question.
0:09:01It's not just like, check out of Git, the tagged version for that release, and say,
0:09:07like, this is the code.
0:09:08And I also then need to make sure that it's pulling in the right dependencies and all
0:09:11that kind of stuff.
0:09:13So I've never gone down that road.
0:09:14But I know what you're talking about, where you turn it into something that's a much more,
0:09:18you know, into a concrete version of that dependency and say, like, this is the library
0:09:25that I'm going to add into my project.
0:09:27Yeah.
0:09:28I mean, I generally have a kind of allergic reaction to any kind of overhead of fighting
0:09:35with my tools on things like module management and, you know, submodules, libraries, any kind
0:09:44of, like, dependency managers.
0:09:46Like, these things can so often become such massive time sinks and such pains in the rear.
0:09:52And a lot of times, I don't feel like the benefit I'm getting by dealing with that is
0:09:58worth all that pain.
0:09:59You know, a lot of times, I feel like I'm just fighting the tools for, like, an hour
0:10:03or more to just do something simple, like, okay, I want to reuse this code in a way that
0:10:07is, like, you know, academically sound, like, that is, like, principally sound.
0:10:13You know, so maybe it's a Git submodule or a subtree or maybe it's, you know, just requiring
0:10:20a second checkout that's, like, in parallel with this one, like, you know, at the top
0:10:24level directory.
0:10:25Like, oh, just include dot dot slash utilities slash whatever and just require you to always
0:10:30have that checked out, which is also a terrible solution.
0:10:34And then you have, you know, whether you build it as a library or whether you just link it
0:10:38all in as, you know, from source files into every app that uses these things.
0:10:42And there's all these kind of, like, technical and management different decisions you can
0:10:46make about how you incorporate code from other places, whether you just copy it in, you know,
0:10:52just copy the files in or whether you do it, quote, properly with some kind of submodule
0:10:55or subtree or library kind of system.
0:10:58And, again, it's just so much overhead.
0:11:01And I just so often when I do that, I feel like I'm just fighting the tools and moving
0:11:06paper around.
0:11:07I mean, it feels like administrative work.
0:11:09It doesn't feel like I'm actually producing much.
0:11:12And so often that work is not worth it because it brings on such an incredible level of complexity
0:11:18and just fiddliness and fussiness and fragileness or fragility, whatever the word is, to just
0:11:24something simple.
0:11:25Like, okay, I want to check out everything required to build this app from the source
0:11:29repository and then I want to build it.
0:11:31How hard is that?
0:11:32How many steps does that take and how many ways can that break?
0:11:36And so often when you get into some of these systems, it just gets unwieldy.
0:11:39Sure.
0:11:40And even you start to think about things where you say, oh, like, I don't actually do that.
0:11:44I mean, this is the kind of thing that I say to myself a lot.
0:11:46Like, I'm one developer.
0:11:48I don't have to deal with, like, a lot of the usual complexity even of if I have to
0:11:53check this out and get a building.
0:11:56Because when you have a larger team, keeping everybody in sync is a much more difficult
0:12:02problem.
0:12:03But I certainly run into this situation a lot where, say, I'm going out of town for
0:12:09a week or for a couple weeks, or I'm going to WWDC or something like that.
0:12:13I want to make sure that I can build my main apps when I'm on the road in case something
0:12:19comes up.
0:12:20You never know.
0:12:21I've done release builds to the app store while I was on vacation because some weird
0:12:26situation occurred.
0:12:27Like, that's not what I try to do, but that's certainly something I want to be able to do.
0:12:31And the worst thing that you can run into that situation is when you're doing that kind
0:12:34of work, and then all of a sudden you're like, oh, I don't have that file that I need from
0:12:39my main Mac because it wasn't checked into the main repository or something.
0:12:46And even just being a one-man shop, I'll still run into that problem.
0:12:50And so I always find it's this weird tension too.
0:12:53I feel like in so many things in programming you have this tension between doing it the
0:12:59right way.
0:13:01And the supposed benefit of doing it the right way is that it's like in aggregate or over
0:13:12the course of the whole development project, you'll end up better.
0:13:15And you'll think yourself two years down the line when you've saved yourself all this time
0:13:20or hassle or saved all these bugs or issues.
0:13:24That's the promise that all this work is paid off by.
0:13:29But it's the weird thing of that it sounds good when I was learning computer science
0:13:35in college or something, where you get into design patterns.
0:13:39And it's like, well, what you really should do is have this really generic system by which
0:13:44you can have a factory that creates observers that are loosely coupled to your actual model
0:13:51objects and then you can dynamically change that in and out if you change database backends.
0:13:57You can invent all these systems that sound academically really cool and have these abstract
0:14:03benefits that are tangible and sound sweet.
0:14:08But I was so rarely--maybe there's a slight selection bias to it, but I don't think that's
0:14:15actually the case.
0:14:16And I think more often than not, I've never really reaped those benefits down the road.
0:14:21I don't look back and be like, "Oh man, I'm so glad I went through all this effort to
0:14:25put all these armatures in place to make my app work better rather than just coding and
0:14:33just putting it together."
0:14:34And certainly there's some amount of that.
0:14:38It's probably kind of like if you're a chef or something like that, where if you watch
0:14:44cooking shows and you watch chefs cut vegetables with ridiculously sharp knives, ridiculously
0:14:49close to their fingers, it's not the way that you teach your kid to cut vegetables in the
0:14:57kitchen.
0:14:58For them, you're like, "Hold the carrot way on the other end and keep the knife far away."
0:15:04And maybe that's what you would need to do.
0:15:07And when you're starting out programming, everything's safer, everything's a bit cleaner.
0:15:13But as you get good at it, after you've been a professional developer for a long time,
0:15:18I feel like I kind of have more of an intuition for these types of problems, where I look
0:15:23at it and sometimes I will make things more abstract, or I'll pull things out.
0:15:27And sometimes I'll just copy-paste the same function twice, sometimes even in the same
0:15:33project.
0:15:34I'll have this basic, very similar functionality repeated a couple times, and it's like, "I
0:15:38could take this and make it generic, but if I did that, I'm aware of all of the downsides
0:15:44of that and all the issues that are later going to come and bite me."
0:15:49And often those issues are more direct and practical, rather than the kind of abstract
0:15:53benefits and things that I'm avoiding by being abstract.
0:15:59And I feel like that intuition is the thing that's so unsatisfying to me about this, because
0:16:03I wish I could put it into a rule.
0:16:05I wish I could say, "When you're doing this, if you're writing code that would..."
0:16:12I try to come up with rules like, "Would this make sense if Apple released it as an addition
0:16:18to Foundation or an addition to UIKit?"
0:16:21And if they would, if I could imagine Apple adding something like that, then maybe it
0:16:26makes sense as a library.
0:16:28I run into this with date comparisons or things like that.
0:16:31A lot of my apps have a concept of, "What's the start of today?
0:16:36What's the end of today?"
0:16:37Very basic date operations that I do a lot for, in pedometers, saying, "Which range of
0:16:43steps should I display?"
0:16:45It's like, "Well, it's from the start of today till the end of today."
0:16:48And I have pulled those into a bit of libraries because I would be entirely reasonable if
0:16:53NSDate had a function on it that said "Start of date" or "End of date."
0:16:58And so that seems like that makes sense, but anything that wouldn't make sense that isn't
0:17:04like...
0:17:05It's almost like you need...
0:17:06Maybe the better rule is to say, "In order for it to make sense to have a generic solution,
0:17:10it has to be a generic problem rather than a generic solution to a specific problem,"
0:17:17or something like that.
0:17:18Maybe that's kind of where I'm ending up as I'm talking this through, for turning something
0:17:23into something that's a generic reusable thing only makes sense if it is a truly generic
0:17:28problem that it's trying to solve.
0:17:29Yeah, I'd say that's a very good rule, and we'll get into open sourcing and how that
0:17:33plays in in a second.
0:17:35But I also just want to add a little bit, just to clarify a point you made a few minutes
0:17:38ago, which is I think we put in all this work to make things correct, the correct way to
0:17:44do things, or the professional way to do things.
0:17:47A lot of this work of avoiding duplication and trying to make things reusable and making
0:17:51things modules and all the work that goes into that, it is kind of like to avoid this
0:17:57boogeyman of future bugs or future inconvenience even, future manual labor.
0:18:04We are all so averse to that that we're willing to put in a large amount of work now upfront
0:18:11to prevent possible future work down the road.
0:18:15But a lot of times the amount of work required that we're doing upfront is not worth it,
0:18:20because we might have to put in lots of work now to avoid a potential future inconvenience
0:18:27or bug that in reality will probably never happen.
0:18:31And we have to always keep in mind, what is that balance?
0:18:37Is what we're doing really demanding, or is the work we're putting in now really
0:18:44worth it compared to the problem that we're going to avoid down the road?
0:18:48How bad will that pain be if it comes?
0:18:51And is that worth doing all this work now and spending all this time now?
0:18:56Anyway, our sponsor today is CocoConf.
0:19:00The upcoming March 20th to 23rd CocoConf will be returning to Yosemite National Park for
0:19:05its third Yosemite event.
0:19:07Man, I hear great things about these, I hope I can go this year.
0:19:10This event will be held again at Yosemite Lodge at the Falls in Yosemite National Park.
0:19:15Speakers include Ashley Nelson Hornstein, friend of the show David Smith, Andy Anotko,
0:19:22Matt Drance, Jamie Newberry, Brent Simmons, and Daniel Steinberg.
0:19:26That's a great lineup.
0:19:28Sessions run in the mornings and evenings.
0:19:30Afternoons will be spent exploring Yosemite National Park with activities including ranger-led
0:19:35hikes, a bus tour of the valley, and a photo walk led by TED photographer James Duncan
0:19:39Davidson, also a great person.
0:19:41There will be music by James Dempsey in the Breakpoints, another great person.
0:19:45And Jonathan Songadayman, man, this is a great lineup.
0:19:48You can use the code UnderTheRadar, that's once again code UnderTheRadar to save 20%
0:19:53on your tickets to Yosemite.
0:19:54Head on over to CocoConf.com/Yosemite to register.
0:19:59Man, that's a great event, great lineup.
0:20:02Anybody who can go to this should go.
0:20:04CocoConf.com/Yosemite, code UnderTheRadar for 20% off.
0:20:08Thank you very much to CocoConf for sponsoring UnderTheRadar.
0:20:12So I want to talk a little bit about the role that open source has in common functionality,
0:20:19open sourcing your common libraries, things like that.
0:20:21I have a little bit of experience with this, not a lot really, but a little bit with things
0:20:26like my database layer FC model, which is kind of like an alternative to core data that
0:20:31uses SQLite more directly.
0:20:33I also have, as I mentioned, my open source utilities, FC utilities.
0:20:38One thing that's changed a lot for me recently is when GitHub recently switched their pricing
0:20:44model for private repositories.
0:20:45And it used to be that you could do as many repositories as you want in the open for free,
0:20:51but they had these paid plans and they were tiered based on how many private repositories
0:20:57you needed, plus a few other things that didn't affect me.
0:21:00So it's like you could pay X dollars a month for five private repositories, and then if
0:21:04you wanted six, you had to jump up to another price tier.
0:21:07So it basically had this incentive to not create very many private repositories.
0:21:11And they recently changed that so that now it's basically like if you pay them at all,
0:21:15you can create as many private ones as you want.
0:21:17So what I've been doing recently is for these kind of small utility libraries and things
0:21:24like that, I've just been creating private Git repositories and then using submodules.
0:21:30And I mentioned earlier, submodules can be a big pain, but every alternative that people
0:21:35have told me to use over the last few months as I've been exploring this kind of functionality,
0:21:40I find every alternative to be either the same or worse in complexity.
0:21:44So here's my top tips for using submodules.
0:21:47Number one, use Git Tower.
0:21:49It is an app, it's a GUI app for Mac and I think soon to be Windows.
0:21:54It's called Tower or Git Tower, depending on what page you look at.
0:21:57It's something like, I don't know, 60 bucks.
0:21:59Just get it.
0:22:00It is so much better than dealing with command line for submodule management.
0:22:04Second thing that I recommend is, so use it to add your submodules.
0:22:08For any Git repository that you have any control over whatsoever, whether it's a fork of some
0:22:15public one or whether it's one of your own, always connect to it using the Git SSH URL.
0:22:21Don't use the HTTPS URL.
0:22:23If you do those things, if you use Git Tower and always use the Git SSH checkout URLs,
0:22:29then you get this amazing balance of functionality where you have all these submodules in your
0:22:34project.
0:22:35You can easily check them all out at once using Tower because for some reason Git doesn't
0:22:37do that by itself because I don't know why because Git is just obtuse and hard to use
0:22:42by itself.
0:22:44But then you can, so you have like version stability because it's part of your checkout
0:22:48is what version of all these things you're using and then if you want to work on one
0:22:53of those submodules from that checkout, from within the app that is using it, you just
0:22:58change the file.
0:22:59You just make the edit and you just go into Git Tower, go into that submodule and commit
0:23:02it and you can do all that without having to like, all right, first back out to my main
0:23:06checkout of this thing and do the edit there and then copy it back or whatever.
0:23:10It's so much better and I've tried so many other ways to do this and believe me, the
0:23:13other ones are mostly terrible.
0:23:15If you're doing a lot of code reuse, especially if it's mostly your own code and especially
0:23:19if it's a private code, Git submodules with private Git repositories managed by Git Tower
0:23:24is fantastic.
0:23:25>> Whoa.
0:23:26>> Yeah, sorry.
0:23:27>> Yeah, no, that's, it's, I've, my only experience with submodules has always just been I try
0:23:36it for like a couple hours to try and get something to work and then I just give up
0:23:40and like check it out, copy the files over and move on with my life.
0:23:43>> Yeah, I mean just never touch the command line when it comes to Git submodules.
0:23:46Like and you know, I am command line heavy with so many things.
0:23:50Like I mentioned before, like I always use MySQL, MySQL, I always use that through the
0:23:54command line.
0:23:55I never use, you know, GUI apps to do MySQL stuff.
0:24:00I will use the command line for almost everything that can be done by the command line but I've
0:24:04slowly converted over to using Tower for any kind of Git operation and it is just, once
0:24:09you just give in and just do it for everything, it's so much nicer.
0:24:12It's really great and for the submodules thing, do as I said before and it's great.
0:24:17Open sourcing, we have a few minutes left about this.
0:24:20Have you done any open sourcing?
0:24:21>> I've never open sourced anything, not a thing.
0:24:25So as I mentioned, I've only open sourced a couple things.
0:24:29I've had mixed success.
0:24:30I would say FC model, my database layer has been the most successful open source project
0:24:35and it doesn't even have that much external contribution or external bug reporting.
0:24:42As far as I can tell, there's only a handful of people even using it.
0:24:46The main challenge with open sourcing things is that there is a cost to doing it.
0:24:51You are adding work for yourself by open sourcing things.
0:24:54You are exposing yourself to possible liabilities of weirdness of legal stuff or functionality
0:25:00stuff or hacking stuff.
0:25:01That's not too much of a concern for most people but it's mainly you're just adding
0:25:05work for yourself.
0:25:07You also might be giving advantages to your competitors but that's also kind of not really
0:25:10a concern for most people for the kind of things you'd be open sourcing.
0:25:14I have found that the value you get out of open sourcing of oh, you'll have other people
0:25:18contributing improvements and fixing bugs and maybe facing security problems, that only
0:25:23happens if you're open sourcing something that a lot of other people will need and use.
0:25:29For most stuff that you're going to be open sourcing, that just doesn't happen.
0:25:32I open sourced my FC utilities utility library as I mentioned earlier and one of the reasons
0:25:37I thought about closing it back down is just because I don't really get anything out of
0:25:41that.
0:25:42Almost no one else uses it but occasionally I get a pull request to change something and
0:25:45usually it's a change that I might not even need and so this is just more work for me
0:25:49or adding functionality that I wouldn't do or that I don't need or that is done in a
0:25:55way that I wouldn't have done it.
0:25:57And it's just kind of like what's the value there really and most people don't need your
0:26:02personal utilities.
0:26:03Most people have their own personal utilities and so it only makes sense if you're going
0:26:08to be open sourcing something that a good number of people will use.
0:26:13Otherwise the benefit to you as the person doing the work and taking the risk of open
0:26:18sourcing it is really small to non-existent.
0:26:21And so I found that generally speaking like most of the stuff I write would not benefit
0:26:28from being open sourced.
0:26:29And that's also why like completely open sourcing an application is not incredibly useful for
0:26:34most people.
0:26:36You know it's just like there's lots of nuance to like what makes a good open source or what
0:26:40makes a useful open source project.
0:26:42And it's not always what you think and it mainly comes down to like am I open sourcing
0:26:47a component that a lot of people will actually need and that they will find and choose to
0:26:51use mine.
0:26:53And if the answer to that is no, if you have like limitations on your time and stuff it's
0:26:58probably not worth it.
0:26:59But when the answer to that is yes it is pretty nice.
0:27:03And you know for the most part you do have the risk of like you're going to get pull
0:27:06requests you're going to have to deal with them.
0:27:08You're going to like it is going to add work but hopefully it's also going to add some
0:27:13kind of value if you get enough people to use it.
0:27:14But as I said that's a huge if and of the I don't know five or ten things of open source
0:27:21of open source so far only one of them has really gotten that and only just barely.
0:27:26So it's a mixed bag.
0:27:29Yeah because I think the biggest reason that I've never really gone down the road of open
0:27:33sourcing things is that tension of if it's unique enough to be useful to someone else
0:27:41then there's a good chance it's something that I wouldn't want to open source.
0:27:47Like it's something that's kind of unique to what I the way that I approach things or
0:27:51is part of what makes my app special.
0:27:54And so it's like say I'm imagining something like your smart speed system in overcast right
0:27:58would I'm sure there would be many people who would love to use that in their applications
0:28:03if it were open sourced.
0:28:04But the nature of open sourcing it like completely diminishes the value of it to your own application.
0:28:11And so that weird tension in open source is like if it's super cool and interesting and
0:28:15other people would want to use it then you may not want to then give it to them because
0:28:21it's special and unique and kind of something you want to hold on to a little closer like
0:28:26it's more of a trade secret in that way.
0:28:28And then the things that are not that special are not that unique to yourself that you then
0:28:34would be fine to open source maybe aren't as useful like you're if you're adding you
0:28:40know it's like hey I have this way that I do like HUD pop ups like great but there's
0:28:45also like 10 of those already and that's a weird process circular problem that you kind
0:28:50of run into at least any time I've ever thought about it and so usually I just say you know
0:28:54that's that's not for me and I don't really use much open source in my apps I just tend
0:28:57to just kind of like write it myself and it works for me.
0:29:00Yeah it's always a balance of strike and you know just like just like any kind of you know
0:29:04code reuse situation like there's a balance of strike here there is no one answer all
0:29:09the time and that's incredibly useful information I'm sure for everybody.
0:29:14The answer is it depends.
0:29:16It depends but hopefully you can make a slightly more informed decision about exactly why it
0:29:21depends.
0:29:22Exactly.
0:29:23All right we're out of time this week thank you everybody for listening and we will talk
0:29:26to you next week.
0:29:27Bye.
0:29:27Bye!