Podcast Search

Developing Perspective

#207: Irresistible Complexity

Select a time to play from there. The line being spoken is highlighted as the audio plays.

0:00:00Hello and welcome to Developing Perspective. Developing Perspective is a

0:00:03podcast discussing news of note in iOS development, Apple and the like. I'm your

0:00:08host David Smith. I'm an independent iOS developer based in here in Virginia.

0:00:11This is show number 207 and today is Saturday, January 10th. Developing

0:00:16Perspective is never longer than 15 minutes, so let's get started. Okay, so for

0:00:20the purposes of today's episode, I wanted to wade very carefully into the

0:00:26kind of hullabaloo that had blew up this last week regarding the quality of Apple's software.

0:00:31And as I always try and do on the show, rather than addressing it directly, rather than just

0:00:37kind of weighing in, as it were, which, you know, is certainly a valid thing to do, but

0:00:42for the purposes of what I try and do on the show isn't particularly relevant, because

0:00:46it is only slightly helpful. What I want to do is instead take a step back and think about,

0:00:52Well, what are the fundamental pressures going on

0:00:54that are causing this?

0:00:56And then as a result, what of those pressures

0:00:59could apply to myself or to someone else

0:01:02or to anyone making software?

0:01:03Because while it's interesting and certainly relevant

0:01:06to talk about whether the quality of Apple's software

0:01:08is diminishing over time, whether that is true

0:01:11or whether it's not, the degree to which that is happening

0:01:14and the reasons why it may be happening,

0:01:16talking about the software quality of one

0:01:20of the largest companies in the world

0:01:22and how their giant, massive engineering organization,

0:01:25compared at least to mine, is functioning, is interesting.

0:01:28But that really won't help me make better software.

0:01:31But I think there are a lot of lessons that we can be thinking

0:01:34about that are the pressures and the reasons why

0:01:37Apple is in the situation they are in that are relevant

0:01:40and that are helpful more generally.

0:01:42And so what I'm going to talk about today

0:01:45is this concept that I've been-- all week,

0:01:46I kept coming back to, which is the concept

0:01:49of irresistible complexity, that over time, software,

0:01:53it's like its natural state is to get more

0:01:58and more complicated.

0:01:59In some ways you could think about this almost as entropy,

0:02:02which is like the concept in thermodynamics

0:02:03where a system will always become more and more chaotic

0:02:06unless it's acted on actively, and it takes energy

0:02:09to keep something unchaotic.

0:02:11Left to itself, it'll become more and more chaotic

0:02:14just on its own.

0:02:16And that same thing seems to always apply to software, which is in some ways kind of

0:02:21weird.

0:02:22You know, software shouldn't in some ways be simple and clean because it's completely

0:02:28an artificial construct.

0:02:29It's something that is entirely man-made and doesn't, in theory, then wouldn't have all

0:02:35of the natural pressures of something like thermodynamics on it.

0:02:39But the reality with software is that in many ways it is perhaps one of the most quickly

0:02:45complexity gathering things I'm aware of.

0:02:48It's incredibly hard to avoid complexity

0:02:51in both the creation and the actual execution of software.

0:02:54And I kind of ended up with three reasons

0:02:57why I think that's the case.

0:02:59And a lot of why, and I bring,

0:03:01just to loop that back quickly to why I'm bringing it up

0:03:03in relation to Apple's software quality questions,

0:03:06is I think a lot of what Apple is facing

0:03:08is this overwhelming increase in complexity over time

0:03:13and how it becomes ever more difficult to keep ahead of it.

0:03:17That there are processes you can put in place,

0:03:19there are-- you can adjust your timeline,

0:03:22or your engineering talent, or all these things

0:03:24to potentially address that kind of a question.

0:03:26But why are you having to fight back this giant wave

0:03:30in the first place?

0:03:31And so the first thing, of my three points about complexity,

0:03:34the first kind of complexity that I

0:03:36wanted to talk about is what I'm going

0:03:37to call marketing complexity.

0:03:40And this is something that isn't really

0:03:43intrinsic to the software itself,

0:03:45but is nevertheless one of the stronger driving forces

0:03:48in the software's creation in the first place.

0:03:51Because in the kind of software we're talking about,

0:03:53whether it's software Apple's making,

0:03:54or software I'm making to sell in a store,

0:03:56or software you're making for a company or for yourself,

0:03:59usually the motivation is that you are writing code

0:04:03for the purposes of selling it.

0:04:05The same thing applies even if you're a consultant.

0:04:07Like what you are doing is selling something,

0:04:09And you need to, therefore, have a market

0:04:13who is willing to buy whatever it is that you are selling.

0:04:17And so it's a little bit complicated,

0:04:19because you build something.

0:04:21You build version one.

0:04:22It's awesome.

0:04:22It's great.

0:04:23Maybe you have a few bug fixes, and no one's perfect.

0:04:26You end up with this nice, stable version.

0:04:28You've got version 1.1, 1.2, whatever it is.

0:04:31Nice and stable.

0:04:33Now, the challenge becomes-- and this is in many ways driven

0:04:36by the kind of business models that a lot of software

0:04:40app products have is that you then

0:04:42you start to think about, well, how can I sell this again?

0:04:46It would be great if you could just

0:04:48continue to sell version 1.2 over and over and over again

0:04:51forever at the same rate and at the same quantity.

0:04:55That'd be awesome.

0:04:56But that's not the reality, because people look at it

0:04:58and say, OK, that's great.

0:04:59But if I'm going to pay more money,

0:05:01if I'm going to do something else,

0:05:02if you're stuck into that kind of the old school paid upgrades

0:05:05model, then it gets really hard to be like, well, what have you given me recently?

0:05:11Why is it worth me doing?

0:05:12And so you kind of have to, in some ways, make something better.

0:05:17And that definition of better is pretty loose because typically what ends up happening with

0:05:22this is you keep adding features.

0:05:25You know, you kind of want to be able to say, in this version we had this, and now in this

0:05:28new version we have this plus all this other stuff.

0:05:31We want to be able to put up a big slide that says it has 72 features and 1500 new APIs

0:05:36or whatever.

0:05:37Like this is the pressure that we always have because people like the thought of that.

0:05:42Whether or not that's actually good for them.

0:05:44I think most people like the thought of, "Ooh, this is better.

0:05:46This is different.

0:05:47This has stuff that I didn't have before."

0:05:50And necessarily in some ways, everybody I know who uses something can always have an

0:05:55opinion about it, right?

0:05:56You always can think of like any piece of software, you probably have a list of things

0:06:00that you would have done differently. And you're telling the software creator about

0:06:04that. I get constant emails from people making suggestions about how I could improve my software.

0:06:11And for that user, it may improve it for them. But in the scope of all of what I'm doing,

0:06:16that may actually not make my software better. It just might make it more complicated. But

0:06:20this is always the pressure. That there's always this pressure to, in order to keep

0:06:24your business viable, that you have to add features. That selling the basic thing for

0:06:30for the long term only sometimes works.

0:06:33And that's a bit of a tragedy, but it's sort of the reality.

0:06:36And you can fight it a bit.

0:06:37Some of my products are kind of famous for their simplicity.

0:06:40And that's great, but it gets really complicated for me

0:06:43when my competitors are everything I do plus all

0:06:46this other stuff.

0:06:47And how do I compete with that necessarily?

0:06:49Because not everybody would appreciate the fact

0:06:51that using pedometer++, for example,

0:06:54is probably easier to use than something

0:06:56that did the basic pedometer functionality plus all

0:06:59other stuff. And also of course, the simpler you are, the easier you are to be copied.

0:07:03And so that has all kinds of other business implications. And so there's always this marketing

0:07:07pressure to add more complexity, to add more features, to add more stuff to your software.

0:07:13And that kind of dovetails into the next type of complexity, what I'm going to call intrinsic

0:07:17complexity. And this is just something that I've always noted about software that makes

0:07:22it kind of unique from a lot of other disciplines where you're making something, is that because

0:07:29Because software isn't limited by the constraints of the physical world, where I'm not saying

0:07:36that building a bridge is easy, building a bridge is ridiculously complicated, but the

0:07:40bridge is operating in an environment where with a very known set of interactions and

0:07:46there's only so many dimensions by which something can interact.

0:07:50There's only so many physical dimensions that something can work with.

0:07:53Whereas with software, you can build systems that interact in so many different directions

0:07:58and in so many different ways at the same time.

0:08:00And that sort of like multi-dimensionality of it,

0:08:03it makes it really complicated as you add anything

0:08:06to a piece of software.

0:08:07It doesn't just sort of linearly grow

0:08:10in terms of its overall complexity.

0:08:12It tends to grow much quicker than that.

0:08:14This reminds me in some ways of like the handshake problem,

0:08:17which is that sort of math thing you may have done

0:08:20in grade school where you kind of have to think about

0:08:22if you have n people in a room

0:08:24and they all want to shake hands with each other,

0:08:27how many handshakes are exchanged, which by the way, in case you're curious, is n times

0:08:31n minus one over two, I believe.

0:08:34But that same thing applies to software, where if one more person walks into that room, the

0:08:41number of handshakes doesn't go up just by one.

0:08:44It goes up by the number of people who were already in that room before they walked in.

0:08:50That is where it gets really, really complicated, because anything you add doesn't just exist

0:08:55on an island on its own.

0:08:56It has to interact with all kinds

0:08:58of other parts of your system.

0:08:59And so every little change you have,

0:09:02it creates this ever-increasing volume of complexity

0:09:07that you have to manage in your software methodology,

0:09:11in your testing, in everything you do,

0:09:13because now there's this other angle by which something

0:09:15can fail.

0:09:15Now there's this other angle by which

0:09:17something can have a problem.

0:09:18And this is difficult. This is just

0:09:20sort of the intrinsic problem of if you take the marketing

0:09:22complexity that you have to keep adding features as a given,

0:09:25then your software will necessarily have this weight constantly growing on it and growing

0:09:31in a way that isn't just sort of linear and easy to manage.

0:09:34It grows, I'm probably using the term, but it grows exponentially.

0:09:38It becomes harder and harder to do.

0:09:41And this gets especially tricky too because hardware is also always advancing.

0:09:46And at least in the way that most people deal with hardware compatibility is you can't just

0:09:51say this new thing only works on the current version of whatever

0:09:55it is.

0:09:55Maybe you can get away with that if you don't have a huge

0:09:57install base.

0:09:58But if you're Apple or you're an app in the App Store,

0:10:01you want to at least have fairly wide compatibility.

0:10:04And so now there's this other dimension

0:10:05by which you have to keep track of everything

0:10:07and be doing all your testing and weird different stacks

0:10:10and different devices.

0:10:11And even if you didn't have the marketing complexity saying

0:10:15that you needed to add features, you at least

0:10:17have to support the new hardware.

0:10:18That Moore's law is putting this new stuff into you

0:10:21and you have to deal with that. And so there's this intrinsically difficult problem that

0:10:26to solve in software that you there's just no way around. You can't if you add and add

0:10:30anything to a piece of software, it is going to make it much harder down the road. If you

0:10:35think about iOS, it's eight years now or something that that it's been under development, I'm

0:10:39sure there is a tremendous volume of interaction and coupling between components on the system

0:10:44matter how clearly and cleverly you engineer it, it is going to be really hard to add anything.

0:10:50especially in recent times when the features that they've been adding are so pervasive.

0:10:53And lastly, I wanted to talk about what I'm going to call personnel complexity or personal

0:10:58complexity.

0:10:59You know, either way, however one way you wanted to spell it is actually valid.

0:11:03But this is the complexity that I see in myself and I see probably in a company like Apple

0:11:08that you always have the difficulty of if you have good engineers, if you have good

0:11:13people who are smart and talented and driven building your software, they are always going

0:11:18to be wanting to solve not only hard problems, but interesting problems.

0:11:24And making something stable is not necessarily an interesting problem, at least not for myself.

0:11:30And I know a lot of really smart engineers for whom that's difficult.

0:11:34I've met some amazing engineers who love maintenance.

0:11:37And if you ever come across one of those, like just wrap your arms around them, give

0:11:40them a big hug, because they are amazing and awesome and people who help make software

0:11:46actually work in the real world.

0:11:47But by and large, a lot of the best engineers

0:11:49I've known in real life don't like maintaining software.

0:11:53They like building something.

0:11:54They like doing something new and interesting and awesome.

0:11:57And so it gets really hard to then either retain talent

0:12:01in an environment that is focused on stability, that

0:12:04is focused on cleaning things up and making them bug free.

0:12:08It's easier to keep those people engaged

0:12:10when you're doing something new, when you're

0:12:12working on something completely fresh and interesting,

0:12:14a new feature, a new device, a new platform, whatever it is.

0:12:17That's a much easier way to get and attract those people.

0:12:21And so there's always this pressure inside of a software

0:12:24engineering project to tackle a new problem, in some ways

0:12:27just for the purpose of attacking the problem,

0:12:29whether or not it's actually making the software better,

0:12:31whether or not it's actually making it better.

0:12:33And I see this all the time in my own software.

0:12:35I often see myself wanting to add a feature,

0:12:38not necessarily because-- or honestly, for me,

0:12:41it's I want to create a new app because I

0:12:42have a problem with that.

0:12:44But you often-- I see I want to do that because it's

0:12:46interesting.

0:12:47Not, and it's much harder to keep myself motivated about saying, let's just keep working on making

0:12:52this better and better, more and more bug free.

0:12:54And you see this and you can kind of imagine it as I think about any large software company

0:12:57and you know, for the purposes of today, I imagined at Apple, that the best engineers

0:13:01at Apple at this point in the development cycle, once they probably locked down most

0:13:05of the really grievous bugs in iOS, you know, I'm sure they're eager and you know, they're

0:13:11they're chomping at the bit to get at the new features to get at the new stuff to work

0:13:15on the hot new feature, whatever it's going to be in iOS 9.

0:13:18And so it's really hard to keep that focus back

0:13:21and to avoid this pressure to keep

0:13:25adding new and more complicated things,

0:13:26because that's the way the human mind works.

0:13:28So these are the pressures.

0:13:30These are the things that, in our software development,

0:13:32are putting a pressure on us towards making

0:13:34our software more and more complicated,

0:13:36and with our complexity, likely bringing with it

0:13:38more and more bugs, less and less stability.

0:13:40And we have to fight these.

0:13:41I think the first step, and why I wanted to do this show,

0:13:44was to make sure that we're aware of this.

0:13:46That the first step in being able to effectively fight

0:13:49this complexity and this tendency in our software

0:13:51is being aware of it and thinking about it critically.

0:13:54That when I'm adding a feature, am I doing it

0:13:55for a marketing reason?

0:13:56Am I doing it in a way that is respectful

0:13:58of the intrinsic complexity this will add to my software?

0:14:01Am I doing it just for my own reasons,

0:14:02for personal or personnel reasons,

0:14:04to keep things interesting?

0:14:05And if I am, I probably need to be thoughtful about that.

0:14:08I mean, you need to be doubly cautious about it

0:14:10to make sure that I'm taking these other considerations

0:14:12into account as I'm doing it.

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

0:14:16As always, if you have questions, comments, concerns,

0:14:18or complaints, you can email me, david@developingperspective.com.

0:14:21I'm on Twitter @_davidsmith.

0:14:23Otherwise, I hope you have a great week.

0:14:24Happy coding, and I will talk to you later.

0:14:27Bye.