0:00:00- Hyper elite web developer, I would have gone with 133+.
0:00:04That's what I would have gone with.
0:00:05- Plus, I've never seen that.
0:00:06- It's like a T.
0:00:08- Yeah, I don't know if I would have used plus.
0:00:09I can get behind the one.
0:00:10- Because you're not hyper elite.
0:00:11I understand why you wouldn't have gone with a plus.
0:00:13(laughs)
0:00:14- I mean, I get it.
0:00:15I've just never seen it written that way.
0:00:17- That's right, 'cause you aren't ready to be that elite.
0:00:20- I debated between the T and the seven,
0:00:22and I went with the T, but.
0:00:24And I can absolutely see the one.
0:00:26I'm right there with you with the one.
0:00:28But the plus, I agree with Marco,
0:00:30that came out of left field.
0:00:31- No, usually it's a seven.
0:00:32- You have both attained a new level of elite-ness today.
0:00:35- It has to be either a T or a seven.
0:00:37- That's the levels one and two.
0:00:39Plus, you go to the next level.
0:00:42It just blows people's minds like he's so elite,
0:00:43he's just a plus for a T.
0:00:45That's madness.
0:00:46(electronic beeping)
0:00:48- So if I command click on Safari,
0:00:51which one would think would, on the dock,
0:00:53which one would think would open a new Safari window,
0:00:56would you not?
0:00:57- Command click reveals it in the Finder.
0:01:00What are you talking about?
0:01:01- So maybe I'm just a moron,
0:01:02because any time I do that, I get a new Finder window,
0:01:04so I guess I am a moron.
0:01:05- No, when you hold down the Command key
0:01:07and click on the Finder window,
0:01:09Finder icon in your dock,
0:01:10it should show the Finder application in the Finder,
0:01:13or whatever, you know what I mean?
0:01:14You know what I'm saying?
0:01:15- Oh, yeah, you're right.
0:01:16Okay, well, at least I know I'm an idiot
0:01:18and it's expected behavior.
0:01:19- Command option click on a folder
0:01:22does what click should do on a folder.
0:01:24God, I wish I could change that.
0:01:25- Can I get an agreement on that, by the way?
0:01:27A single clicking with the regular,
0:01:29plain old left mouse button on a folder
0:01:31that is in your dock should open that folder in the Finder.
0:01:36- Oh, you mean rather than doing the like, explode out?
0:01:39- Rather than doing one of the other two things it does,
0:01:42neither of which I ever want.
0:01:43(laughing)
0:01:45- Why do I get a feeling that we're hearing the genesis
0:01:47of app number two or three or seven for you?
0:01:49- If only, if only I could do that type of stuff.
0:01:53- We don't know a little world where you can hack
0:01:55the dock anymore.
0:01:57- The struggle is real.
0:01:57- But do either one of you use like the springy out
0:02:00bendy tower thing or the giant grid of icons
0:02:03that you can never find anything in?
0:02:04- I use the giant grid of icons that I,
0:02:06that you are correct, I can never find anything
0:02:08for downloads and only downloads.
0:02:10And that is the only folder that is in my dock.
0:02:12- I only, I use it for downloads constantly,
0:02:15but I only scroll to the bottom and hit show in Finder
0:02:18or whatever.
0:02:19- Marco, I'm gonna give you the advanced technology.
0:02:22Just hold down command and option and click on downloads
0:02:24and it will just open.
0:02:25- Oh.
0:02:26- And then you can sort reverse by date.
0:02:28- That is very clever, I did not know that.
0:02:30- Yeah, 'cause I keep downloads sorted by date descending.
0:02:33And what has always annoyed me about those Finder,
0:02:36those folder stack things in the dock is that
0:02:38they completely ignore the settings that you have
0:02:39to sort files and also you can't like right click on them
0:02:43and get a context menu on the things in there.
0:02:46- I would suggest sorting your downloads folder
0:02:49by date added rather than date modified
0:02:51because sometimes it's possible to get things that like unzip
0:02:55and have a modification date that's in the past
0:02:57and they aren't at the top.
0:02:58So if you sort by date added descending
0:03:00and you always command option click on the downloads folder,
0:03:03it will open a Finder window.
0:03:04I think that should either be the default behavior
0:03:07or one of the choices.
0:03:08If you like the Bendy stack, fine, go for it.
0:03:10If you like the big grid, fine,
0:03:11but what if you just want the window to open in the Finder?
0:03:13That would be nice too.
0:03:14- Totally agreed.
0:03:15- I've been command option clicking on the,
0:03:17now that I used to use a drag thing dock for this,
0:03:21used to have no folders in my dock
0:03:22and I had a drag thing dock
0:03:24that was down in the lower right corner
0:03:26that had folders in it and when you clicked on them,
0:03:29they opened their windows in the Finder.
0:03:31That was cool.
0:03:32- You really had your world rocked
0:03:35by drag things disappearance, didn't you?
0:03:38- I mean, it's not that bad.
0:03:39Like putting, because the screen is so big,
0:03:42I've got a lot of room for folders in the dock now
0:03:44and I'm so accustomed to command option clicking folders
0:03:50in the dock that it is a pretty ingrained habit,
0:03:53but every once in a while, it bothers me when I remember
0:03:55that I have to keep doing that.
0:03:57- I'm sorry for your struggles, John.
0:04:00Are you, I don't remember, you're a side dock person,
0:04:03is that right?
0:04:04- Nope.
0:04:05- You're bottom docker.
0:04:06I thought you were and then I convinced myself,
0:04:08no, John wouldn't do such a barbaric thing.
0:04:10Do you at least hide it automatically, at least?
0:04:13- Nope.
0:04:13(John gasps)
0:04:14- John.
0:04:16- Hidden dock is the worst.
0:04:17I don't wanna go in there and wait for a thing to,
0:04:19what is this, iOS, I gotta drag my finger
0:04:20to the bottom of the screen and wait?
0:04:22No, no waiting.
0:04:23(John laughs)
0:04:24- Why, why, John, why, why the bottom?
0:04:27- My screen is really big, believe me,
0:04:29I'm not hurting for screen real estate.
0:04:32- Now I will allow it, but before now, no.
0:04:35- Yeah, I did it on side on laptops
0:04:37'cause they were too small.
0:04:38- Yes, yeah, on laptops, I always do left side,
0:04:41but on laptops, I do auto hide, on desktops, I don't.
0:04:43- Interesting.
0:04:44- Yeah, I don't know, Mar, you're not a lefty,
0:04:46are you, Marco?
0:04:47- No.
0:04:48- Left side is the correct side.
0:04:49- Left side dock is madness.
0:04:52- Why?
0:04:52- It's just plain madness.
0:04:55- Why, I read from left to right.
0:04:56- Right, exactly, so it should be left to right,
0:04:59top to bottom, the upper left corner is,
0:05:01especially on a small screen,
0:05:02is the most prominent location.
0:05:04The dock shouldn't be there, it's an auxiliary thing.
0:05:07It should be far away from the upper left.
0:05:10- It's not there, it's auto hidden.
0:05:11- And dock is also madness.
0:05:14- Hey, let me really piss you off.
0:05:16- Yeah, would you auto hide in the menu bar too?
0:05:18- No, no, no, even worse.
0:05:19- No, that's barbaric.
0:05:21I mean, if you had an 11 inch laptop, maybe, I guess.
0:05:23- I do have an 11 inch laptop,
0:05:24but no, I, or 12 inch, strictly speaking,
0:05:27I like the, I like Genie mode, and I like magnification.
0:05:32(gasping)
0:05:33- Magnification, I could take or leave.
0:05:35Genie is the default, right, so then,
0:05:37it's whatever I was using, unless they change it.
0:05:40- Most people are very, very angry
0:05:42when I mention that I use magnification.
0:05:45- Yeah, I don't know.
0:05:46- I quite like it.
0:05:47I mean, it doesn't actually change
0:05:49the size of the targets, really, at least width wise.
0:05:54Yeah, I could take it or leave it.
0:05:58I don't use it, personally,
0:05:58but I don't think it's so terrible.
0:06:02- You are right that I shouldn't give you too much flack,
0:06:03since you do have a monitor that's approximately
0:06:06the same size as your main television,
0:06:08but I still think left side's where it's at, personally.
0:06:12- Yeah, I got a lot of windows open these days.
0:06:14(laughing)
0:06:15Let me tell ya.
0:06:16- Speaking of your monitor,
0:06:17that's a perfect segue to begin follow-up.
0:06:19Pro Display XDR reference modes,
0:06:21would you mind telling me about this?
0:06:23- God, we can't escape this topic.
0:06:24This is one more thing, I swear, the last one.
0:06:26Last time, someone wrote in about using True Tone
0:06:29and how they endorsed it, and they mentioned this ISO spec,
0:06:32ISO 12646, well, one of the anonymous experts
0:06:37about the Pro Display XDR chimed in and said,
0:06:40"One of the reference modes for the Pro Display XDR
0:06:44"is exactly for ISO 12646."
0:06:47You can set it to this mode,
0:06:48and then it disables True Tone,
0:06:50and it sets it to this mode that is apparently super warm,
0:06:52and then if you have your room set up
0:06:54the way that ISO spec says you're supposed
0:06:56to have your room set up, there you go.
0:06:58You're all ready to do whatever the hell it was,
0:07:00soft-proofing on printed materials.
0:07:03So, boy, you can really just spend all day
0:07:06going through the 800 reference modes supported by this
0:07:09and watching each one of them and going,
0:07:11"Ugh, that looks weird,"
0:07:13probably just because your room isn't set up right.
0:07:15- I'm surprised you haven't gone full THX tune-up
0:07:18or whatever it's called on your monitor yet.
0:07:20- Well, that's the whole point.
0:07:21I bought it from them.
0:07:22It's calibrated at the factory.
0:07:23They put it on with the undercoating.
0:07:25(both laughing)
0:07:28- Well done.
0:07:30Oh, my goodness.
0:07:31All right, so no other Mac Pro follow-up?
0:07:33That's it? That's all we have?
0:07:35- I think the only other, I mean,
0:07:37if you're asked for some, I do have some.
0:07:38I continue to assess the internal storage situation
0:07:43on my Mac.
0:07:44There are many options for sticking
0:07:46every kind of storage you can imagine inside here.
0:07:48You can put, I think, six 3.5-inch hard drives in here
0:07:53if you want.
0:07:54You can put in six or seven PCI cards,
0:07:58these two of which can hold up to four M.2 SSD thingies.
0:08:03You can put in a $400 rack-mount thing
0:08:08that you can put two 3.5-inch drives in
0:08:10or two 2.5-inch drives.
0:08:13All these options are very expensive,
0:08:14and none of them I find particularly satisfactory
0:08:17at this moment.
0:08:18I would have already bought that two-drive Pegasus thingamabobber
0:08:23that Steven Hackett bought if it didn't cost $400
0:08:26and come with an eight-terabyte 3.5-inch hard drive
0:08:29that I don't want.
0:08:30- Yeah, that's fair.
0:08:31- I continue, maybe Steven will get tired of it,
0:08:33and he'll sell his old one to me.
0:08:35I'm looking for them on eBay.
0:08:36I just want the thing with no drives in it.
0:08:39I've got drives.
0:08:40I don't need your drives.
0:08:41I just want a convenient little case to mount things in.
0:08:45So I'm still waiting on that, and it's kind of frustrating
0:08:48because right now I'm backing up a time machine
0:08:51to this dinky little external 2.5-inch spinning hard drive
0:08:55that I have, and it's a pain to have to connect it
0:08:58every once in a while, let it do its thing,
0:08:59and I don't want to leave it connected
0:09:01'cause it's just weird to have it dangling.
0:09:02Anyway, I got all the room in my case.
0:09:05Still haven't filled it,
0:09:06and I'm still waiting for the new video cards to come out.
0:09:08They still haven't released the supposed W5700 XT
0:09:13or whatever it is that they've been advertising forever.
0:09:16So the wait continues, partially on Apple
0:09:20and partially on third-party people.
0:09:21I can't believe that OWC or somebody
0:09:23hasn't just come out with the $50 version
0:09:26of an empty bracket where you can stick drives
0:09:29'cause Pegasus made one, but they just insist
0:09:31on making you buy an eight-terabyte drive for 400 bucks,
0:09:34which is kind of cruddy.
0:09:36I'm so sorry.
0:09:37All right, we should also clear the air
0:09:40with regard to iPad multitasking.
0:09:42I went on a bit of a rant last week,
0:09:45moaning about how I don't care
0:09:47for the way iPad multitasking is,
0:09:49and I think all of us were moaning
0:09:50at some point or another about this.
0:09:52- Us? - I in particular,
0:09:53yeah, us, no.
0:09:54I in particular went on a bit of a rant
0:09:58with regard to how you get iPad multitasking to work
0:10:02when you are trying to load something
0:10:04that is not in your dock.
0:10:05And what I had said was you can go back to the home screen
0:10:08and then pick up an icon,
0:10:09and then it's like doing the little dancy thing,
0:10:10but you don't want it to do the dancy thing, blah, blah, blah.
0:10:12And people pointed out to me that one approach,
0:10:15I'm probably gonna get the exact order of operations wrong,
0:10:17but the idea is another approach to handle this
0:10:19is you open app one and go to the home screen,
0:10:23open app two, and then app one should be
0:10:27on the right-hand side of your dock in that recents area,
0:10:31and then you can just grab it right there
0:10:33and put it into one of these side panels
0:10:35that you would like it to be in.
0:10:36So that is a little bit better and a little bit easier,
0:10:39and I should have known that,
0:10:40but nevertheless, I still find it to be
0:10:44extremely frustrating.
0:10:45- Unless you have that disabled,
0:10:46I think I have recents disabled.
0:10:48- There is an option to disable it, I'm almost sure,
0:10:50but to be fair, I have not disabled it
0:10:52to the best of my knowledge.
0:10:53- I have disabled it, but I've used that same technique,
0:10:56like trying to launch it again to get it in the,
0:10:58like, I don't know, maybe I have a disable
0:11:00on some devices and don't on others, but yeah.
0:11:02I don't want, I have to say,
0:11:04I have recent apps disabled in my Mac dock
0:11:06and also in every iOS device
0:11:09that I could remember to do it on,
0:11:11because I don't want other stuff filling there.
0:11:13Like, I fill the bottom dock with a bunch of stuff
0:11:16and I don't want other things randomly
0:11:18hopping in there just because I used them recently.
0:11:19So that kind of kills that technique,
0:11:22but I still find myself doing it,
0:11:24like launching it the regular way
0:11:26as a way to get it available for multitasking.
0:11:29Maybe I just do that instinctively and it doesn't work
0:11:31and I just go back to the way you described the last time.
0:11:34I don't even know.
0:11:35It's confusing.
0:11:36The thing, I played with this a little bit more
0:11:38after the show to say maybe there are other obvious ways
0:11:40that I'm forgetting and it just really kills me
0:11:42that in multitasking view on the iPad
0:11:44where you see the little miniature versions
0:11:45of all your open apps that you can't just grab them
0:11:47and like drag them on top of each other.
0:11:49Like that functionality, as far as I'm aware,
0:11:51is not actually used for anything
0:11:54and it's just so obvious, like here they are.
0:11:56Do you wanna squish them together?
0:11:58Grab one and squish it together.
0:12:00I was like, nope, you can't grab them here,
0:12:01even though these are cute little pictures of all your apps.
0:12:03They're not for your grabbing.
0:12:04(laughing)
0:12:06They're just for you to view and enjoy.
0:12:08No grabbing.
0:12:09(laughing)
0:12:10Again, unless there's some weird, you know,
0:12:13three finger stand on one foot long press tongue gesture
0:12:18that I don't know about.
0:12:20- Wow.
0:12:20- We are brought to you this week by Squarespace.
0:12:24Start building your website today at squarespace.com/ATP.
0:12:29Enter offer code ATP at checkout to get 10% off.
0:12:32Make your next move with a beautiful website
0:12:34from Squarespace.
0:12:36Squarespace makes it super easy to make websites.
0:12:39It's as simple as that.
0:12:40Look, most of you have probably heard this message
0:12:41a million times.
0:12:42Let me tell you why you really wanna choose them.
0:12:44I know that a lot of our listeners, myself included,
0:12:46are able to make our own websites other ways.
0:12:49Using CMSs that other people make, that we install,
0:12:52our other services, or building our own from scratch,
0:12:56which is usually the method I take.
0:12:57But the reality is, most of the time,
0:12:59that's not worth our time.
0:13:01And Squarespace does a lot of things better
0:13:03than what we can do ourselves.
0:13:04So for instance, if I had to make like a storefront,
0:13:07a gallery, or you know, things like this,
0:13:09Squarespace does that super easily, all built in,
0:13:12way better than I could do it, and it takes me no time,
0:13:16because I didn't have to build it, right?
0:13:18If you're making a website for yourself,
0:13:20or what happens a lot to nerds like us,
0:13:22if you're making a website for somebody else,
0:13:23somebody else has asked you to, hey,
0:13:25help me make my website better,
0:13:26it's so much easier, and so much more time efficient,
0:13:29to just go to Squarespace and do it there.
0:13:31Because you can set up a website in no time at all,
0:13:33and they'll support it, you don't have to support it,
0:13:36and it's just amazing the quality you get,
0:13:39the modern features, the modern designs,
0:13:42all the wonderful layout and responsive stuff,
0:13:44all that's built in with Squarespace.
0:13:46And you don't have to build it yourself,
0:13:47you don't have to support it.
0:13:48So check it out today, squarespace.com/atp.
0:13:52Anybody with any skill level can go there,
0:13:55start a free trial site, and make an awesome to use site
0:13:58in no time at all.
0:13:59When you wanna sign up for Squarespace,
0:14:01go back there, squarespace.com/atp,
0:14:03and use offer code ATP to get 10% off your first purchase.
0:14:07That's squarespace.com/atp, code ATP.
0:14:10Thank you so much to Squarespace for sponsoring our show.
0:14:13Make your next move with a beautiful website
0:14:15from Squarespace.
0:14:16- May I, gentlemen, go a little bit off plan for a moment?
0:14:24Are you willing to bear with me on this?
0:14:25- Sure.
0:14:26- I'm always willing to go off the plan.
0:14:28- Marco doesn't know the plan, so as far as he's concerned,
0:14:30everything is off the plan.
0:14:31(laughing)
0:14:33Everything is on the plan.
0:14:34- All right, if you wouldn't mind,
0:14:36would you please make sure your Skype windows are visible?
0:14:39- I got a lot of windows open.
0:14:42- Marco, would you mind describing to people
0:14:44what you're looking at, which is actually my screen?
0:14:46- Well, I see Casey's screen being shared,
0:14:49being his former discovered four quadrant layout.
0:14:54- Patented.
0:14:55- He has Skype taking up a quarter of the screen.
0:14:58Colloquy IRC on the other corner,
0:15:01and the other column is a Safari window
0:15:03and a code editor of some kind.
0:15:06Looks like Sublime, maybe, or--
0:15:07- Video Studio Code.
0:15:08- Cool.
0:15:09And then the Safari window is showing App Store Connect,
0:15:14which is where you go to upload and manage apps
0:15:18that you've made.
0:15:19And it appears to be showing an app
0:15:22that I have not heard you talk about yet.
0:15:24- No.
0:15:25- Can I say the name?
0:15:26- You may, you may.
0:15:27- Named Peekaview, which is a pretty cool name.
0:15:31I don't know what it does yet, but it's called Peekaview,
0:15:33and it has, looks like an emoji wearing sunglasses
0:15:36as the icon.
0:15:37(laughing)
0:15:39- Close enough, yeah.
0:15:40So what I am doing is I am sending you
0:15:42to a TestFlight invite.
0:15:44- Oh, I don't have my phone with me.
0:15:46It's an iOS app, right?
0:15:47- It is an iOS app.
0:15:48I am sending you a TestFlight invite to my latest app,
0:15:50which is called Peekaview, and I should tell you about it.
0:15:54But while I do that, I guess I can just get ready
0:15:58to do this little thing right here.
0:15:59Marco, would you mind describing to me what's going on now?
0:16:01- Oh my God, that icon is adorable.
0:16:03Hold on, I'm looking at the icon.
0:16:05It's like, it's the Viewmatic thing,
0:16:07like where you look through the--
0:16:08- Viewmaster.
0:16:09- That's it, yeah, you look through the goggles,
0:16:10and there's the circular thing of 3D pictures,
0:16:14and they like flip around as you click the button on top.
0:16:17- That's right.
0:16:18- All right.
0:16:19Oh, it looks like, so you are looking at the screen
0:16:21in App Store Connect when your app has been approved,
0:16:24and it's an impending developer release state
0:16:26where you've clicked Manually Release,
0:16:28and you are clicking Release This App.
0:16:30- I am indeed.
0:16:31- So it appears that you have just released a brand new app
0:16:34that I didn't even know you had been working on.
0:16:37- This is true.
0:16:38So as, there we go, okay.
0:16:41So as of literally right now, it is ready for sale.
0:16:44So hey, guess what?
0:16:46I wrote another app.
0:16:48- That's awesome.
0:16:48Wait, how long have you been doing this?
0:16:50You didn't mention this at all.
0:16:51- No, by design, and I'm going to stop sharing my screen
0:16:54'cause this is creepy, by design,
0:16:56what I have done is over the last couple of months,
0:17:00I have created a new app,
0:17:02and one of the things I wanted to do as part of that
0:17:05is not tell you to because I thought it would be fun
0:17:06to surprise you on the show.
0:17:07- You kinda did an okay job.
0:17:10I kinda know you were working on a new app.
0:17:11Like, if listeners, if you had been listening for the clues,
0:17:15I think there was enough on episodes of ADB
0:17:17that you could tell.
0:17:18I mean, even as recently as a couple days ago,
0:17:20you posted some picture from Wegmans.
0:17:21It's like, we know you're working on an app.
0:17:22We just didn't know what it was.
0:17:24I know it was already ready.
0:17:25I'm mad that I left my phone upstairs.
0:17:27I wanna go try the test flight.
0:17:28- Well, I'm sorry.
0:17:29I should have warned you,
0:17:30but I didn't wanna give anything away.
0:17:31So all kidding aside, it is rolling out as we speak.
0:17:35If you're listening to this live,
0:17:36you probably won't be able to see it for an hour or two,
0:17:38but the idea is it's called Peak of You,
0:17:41as Marco had mentioned.
0:17:42The icon is adorable, and I wish I could take
0:17:45any credit for it, but it was my good friend, Stee,
0:17:48who if you listen to analog, you would know as Stay,
0:17:50and if you don't listen to analog, you won't get that joke.
0:17:52But nevertheless, the app is called Peak of You.
0:17:55It was born in our Disney trip,
0:17:59and so I should probably explain.
0:18:01When we all went to Disney,
0:18:03as I think we talked about on the show,
0:18:05I mean, I know we talked about Disney on the show,
0:18:06but I don't know if we talked about this part of it,
0:18:08Michaela, whom I love dearly
0:18:09and who was just shy of two years old at the time,
0:18:12she was not enthusiastic about going in the stroller,
0:18:17and when you're at Disney World,
0:18:20that is a little bit frustrating,
0:18:21and what we ended up figuring out
0:18:23was that we could give her one of our phones
0:18:26and lock her into the Photos app using guided access,
0:18:31and that would let her look at the photos in our phones,
0:18:36and we knew she couldn't go send texts
0:18:37or whatever the case may be,
0:18:39but nevertheless, she could have still deleted stuff,
0:18:43and that's not good.
0:18:45We don't want that.
0:18:47So it occurred to me, well, I know how to write iOS apps.
0:18:52I could write a read-only photo gallery.
0:18:55That's something I can do.
0:18:56We have the technology.
0:18:57We can do this.
0:18:58And so I think the first commit
0:19:00was something like the 2nd of November,
0:19:02and we had gotten home on the 30th of October,
0:19:05and I was working on this all of November,
0:19:07the portions of December that I actually worked
0:19:09and was a grown-up, and all of January,
0:19:12and the first version was approved
0:19:15but not put up for sale on the last day of January,
0:19:18on the 31st.
0:19:19I realized there was an oops that was entirely my fault,
0:19:22so I pulled it yesterday.
0:19:25I believe it was yesterday.
0:19:25I pulled it, or maybe it was the day before.
0:19:27Sometime in the last 48 hours, it's been a blur.
0:19:29I developer rejected the build and then put it back up,
0:19:33which was very stressful,
0:19:34because even though app review time is pretty good,
0:19:37I was scared that all of a sudden I would,
0:19:39I've been waiting for tonight's ATP for weeks.
0:19:41Like, I didn't know exactly when it would be,
0:19:43but I've been waiting for a long time
0:19:45to do this for you guys, to you guys, et cetera,
0:19:48and I was scared that then this would be the one time
0:19:50I get rejected or there's a two-day wait or whatever,
0:19:54but thankfully it all worked out.
0:19:55So the idea behind Peekaview
0:19:57is that it is a read-only photo gallery
0:19:59that you could hand to a kid or a client or a friend,
0:20:02and the only thing that they can do
0:20:05is look at the photos that you've given to them.
0:20:09- I've already got a bug report.
0:20:11- Oh, of course you do.
0:20:12Of course you do.
0:20:12- I got my phone delivered.
0:20:14- You didn't even make it through the description.
0:20:16- I know. - I know, keep going,
0:20:17but I just wanted you to know.
0:20:18- Wonderful.
0:20:19See, this is the thing.
0:20:20This is the danger by not telling the two of them,
0:20:22I love you too dearly,
0:20:23but you're both total pains in the ass,
0:20:24and it is for the best that you have a bug report,
0:20:26'cause I can fix it then.
0:20:27But, yeah, so the idea is you can choose one of your albums
0:20:31that you've set up in photos,
0:20:32and you can limit the app to just that album,
0:20:36and once guided access is turned on,
0:20:38there's nothing that they can do to change the album,
0:20:40there's never anything they can do to delete anything,
0:20:42to edit anything, et cetera, et cetera, et cetera.
0:20:44So that's the shtick.
0:20:47It is similar to Vignette.
0:20:50It is free to see 20,
0:20:52your 20 most recent photos or videos or what have you,
0:20:56and it is a $5 an app purchase
0:20:59in order to see the rest of your stuff.
0:21:01And, surprise, that's what's going on.
0:21:04- So, first of all, that's a pretty cool idea.
0:21:08Second of all, I love some of your implementation details
0:21:12that you've done here.
0:21:12So, I like that you have the bigger and smaller pictures
0:21:17in your collection view here,
0:21:18I guess the highlighted ones are bigger,
0:21:20or somehow some of them are bigger.
0:21:21And I love your auto-playing of live photos as videos.
0:21:26That is really cool.
0:21:29- I thank you, I appreciate that,
0:21:30'cause Mike was just yelling at me about that same thing.
0:21:33So, for those of you who are keeping up,
0:21:35I recorded analog Monday, but we did not broadcast it live.
0:21:39And the reason we didn't was because
0:21:41we didn't want anyone to know about this.
0:21:42So, Mike was giving me a hard time.
0:21:44Mike was on the beta, and it's not because I love him more,
0:21:48it's just because I wanted to surprise the two of you.
0:21:50And anyways, he was yelling at me
0:21:51because he did not care for the moving live photos.
0:21:54So, I might, I have a couple ideas there.
0:21:56I might turn that off automatically if you're like Jon
0:21:58and do the, I forget the name of it,
0:22:00but the reduced motion. - No.
0:22:01- Or maybe I'll add a switch, we'll see.
0:22:04But as it is, I like it as well.
0:22:08- What's also nice is that compared to
0:22:11the actual official Apple Photos app,
0:22:13it's faster to get in and out of photos.
0:22:16It seems like you have duplicated their animation
0:22:18a little bit, but you've done it faster.
0:22:21I would even say get rid of that little bounce
0:22:23that it does at the end.
0:22:25(laughing)
0:22:26'Cause the bounce looks a little weird at the speed,
0:22:29but I love how fast it is to get in and out of a photo.
0:22:32'Cause you can hold the phone with one hand
0:22:34and just tap with your thumb in and then tap
0:22:37and drag down to go out.
0:22:38And you can do the exact same motion,
0:22:39I'm switching back and forth here.
0:22:40The exact same motion works in Apple Photos,
0:22:42but it takes longer and you have to go further.
0:22:44So, by almost but not quite cloning
0:22:47the Apple interaction model,
0:22:48you've actually made an improvement here,
0:22:50possibly accidentally, by making your timings all
0:22:54a little bit faster and your tolerances
0:22:55all a little bit tighter.
0:22:56So, this is actually a really good way
0:22:58to very quickly flip through photos.
0:23:00So, that's pretty cool.
0:23:02- Thanks.
0:23:03- I also like that you auto play videos.
0:23:05When you open up a video, it auto plays it.
0:23:06- And it does it muted.
0:23:08- Yes, it auto plays it muted and there's a little thing
0:23:10in the bottom there, unmute it.
0:23:11That is a really nice, like,
0:23:13this is not only good for the use case
0:23:18that you've outlined here of controlling somebody's access
0:23:20to your photos and just letting them view it.
0:23:22This is also good to just quickly review
0:23:23recent photos you've taken.
0:23:25(laughing)
0:23:26'Cause, like, it's so fast to get in and out.
0:23:28- Jon, you've been quiet, I'm a little scared.
0:23:30- I'm playing with the app.
0:23:31I tried to do the in-app purchase,
0:23:32but I got one of your emoji-filled error messages.
0:23:35- Oh, no!
0:23:36Oh, no, well, hopefully it's not completely broken.
0:23:39We'll see what happens.
0:23:40- Yeah, I did, I looked at the settings screen
0:23:42and it clearly is a KC settings screen.
0:23:45- Yes, it is.
0:23:46- It's full of emoji and lots of explanatory text.
0:23:49- I was gonna say, I didn't have the benefit
0:23:51of you editing me and cutting down all the text,
0:23:53which I was very sad about,
0:23:54but there will be improvements, I am quite sure.
0:23:57In fact, I already have realized that in certain cases,
0:24:01if you have, for example, a panorama,
0:24:03which is really, really big,
0:24:05the version that Peek-a-View shows
0:24:06as of the time we record this isn't quite full resolution,
0:24:09and I've already fixed that bug,
0:24:11but I was so scared to go through the same dance of like,
0:24:14oh, if I submit it, maybe it won't be ready in time,
0:24:16et cetera, et cetera,
0:24:17and so I haven't yet submitted that fix.
0:24:19I'll presumably do it first thing tomorrow morning.
0:24:20But, yeah, I'll actually be able to,
0:24:24for real, test my in-app purchase stuff,
0:24:26'cause I've tested the snot out of it in test flight,
0:24:28but it never, ever seems to work exactly the same.
0:24:30But thank you for trying to throw me $5.
0:24:34Yeah, so anyways, I definitely have some work to do on this.
0:24:37It's funny because in a lot of ways,
0:24:40this is far less ambitious than Vignette.
0:24:42I think Vignette was a much more ambitious thing to do
0:24:44and certainly much more complicated,
0:24:46but in certain ways, I'm a little more proud of Peek-a-View.
0:24:50I think, and Marco, you seem to have pounced on this
0:24:52immediately in the happy sense,
0:24:54I think it's a bit more polished than Vignette is,
0:24:57I think in part because it's a much simpler problem area
0:25:00to work on.
0:25:02Now, I've already got other ideas
0:25:04on how to make this more complex if I so desire
0:25:06and to enhance things.
0:25:08But it is surprising to me,
0:25:11it isn't but it is surprising to me
0:25:13that it really and truly is one of those things
0:25:17where I got the bare bones of this working
0:25:19within like, I don't know, a week or something like that,
0:25:21maybe two weeks tops,
0:25:23but the rest of the time has been spent polishing
0:25:25and polishing and polishing and improving
0:25:27and polishing and improving.
0:25:28And again, as with all things, what is the saying?
0:25:32The last 20% is 80% or something like that,
0:25:35you know what I'm thinking of.
0:25:36- Yeah, yeah, yeah.
0:25:37- And that was very much the case here.
0:25:38Not to say it's perfect,
0:25:39I'm not saying it's perfect by any means,
0:25:41but it is definitely,
0:25:44I feel like it's more polished than Vignette is/was
0:25:47and I'm proud of it for that.
0:25:50Behind the scenes for the nerds,
0:25:51there is no RX Swift in this,
0:25:53which was a deliberate choice.
0:25:56For the longest time,
0:25:57I didn't think that there was any real need
0:26:00for any of the affordances that RX provides.
0:26:02However, if you don't use your beloved hammer,
0:26:07but there's something that's vaguely hammer-like
0:26:10that's new and shiny and available to you,
0:26:12you might choose to use that.
0:26:13So there is some combined in here.
0:26:15There is a couple of,
0:26:16there are a couple of screens of Swift UI.
0:26:18So the onboarding screens are Swift UI
0:26:20and the purchase screen is Swift UI.
0:26:23And one of the next things that is on the docket
0:26:25for us to talk about,
0:26:26if we don't get sidetracked for the rest of the episode,
0:26:28which I hope we don't,
0:26:29is to talk about our experiences, John and me,
0:26:32with Swift UI.
0:26:33So maybe we'll get to that shortly.
0:26:34But yeah, it's simple and it's not,
0:26:39and it's interesting and I'm pretty proud of it.
0:26:42And I hope you, the listeners, and the two of you like it.
0:26:44And I'm sorry, the two of you for not saying anything,
0:26:46but I wanted you to be able to experience it live
0:26:49with everyone else.
0:26:50- Yeah, that's pretty cool.
0:26:51I'm actually, I'm glad that you did that,
0:26:53'cause it's more fun for the show.
0:26:54(laughing)
0:26:55- I thought it might be.
0:26:56- Yeah, that's awesome.
0:26:57You ready for your bug report?
0:26:59- Oh God, do I want it to have this publicly or no?
0:27:01- Mark already, yeah, that's quick.
0:27:04Mark already got one that, what was yours before?
0:27:07It wasn't a bug report, it was just a suggestion.
0:27:09- They'll kill the bouncing.
0:27:10- Ah yes, the bouncing, yep.
0:27:11I mostly agree with that, but then again,
0:27:13it is a kid's app, so maybe kids will like the fun bounce,
0:27:16you know what I mean?
0:27:17So I go either way on that.
0:27:19The one that I think is, it's,
0:27:21I don't know what you can do about this, but--
0:27:24- Oh, that's always dangerous, okay.
0:27:26- Yeah, the gesture recognizer or whatever you're using
0:27:30for sideways swipe to go to the next photo,
0:27:32it is very unforgiving, such that when I use my,
0:27:37when I have my phone in my right hand
0:27:39and I'm using my right thumb to go through pictures,
0:27:42like 20% of the time, when I try to go to the next photo,
0:27:47it takes me out of it because I have to move
0:27:49my thumb down too far, so it's like super sensitive.
0:27:51Like if you go to the left and then deviate
0:27:54from a right to left or left to right motion
0:27:56by half a centimeter, it's like you wanna go back.
0:27:59And that makes it basically impossible for me
0:28:01to sit there with my one hand and thumb through them,
0:28:04you know what I mean?
0:28:04So if you have any control over that gesture recognizer
0:28:06to say, leave a lot of slack in there, that would do it.
0:28:11One of my favorite ones of those is Twitterifics,
0:28:15like display an image from a tweet.
0:28:18It does a similar thing where you can just chuck it
0:28:20in any direction and it goes away, which I love,
0:28:22but I never accidentally chuck it.
0:28:24So whatever tolerances they're using will be good.
0:28:26And especially I can imagine for kids too,
0:28:28if kids actually want to take their little meaty paws,
0:28:30especially if they're very young,
0:28:32and swipe through the photos, they're gonna end up
0:28:34going back to the main screen, which they probably,
0:28:37they'll just be like, oh well, it went back
0:28:38to the main screen, now I'll tap on a different picture
0:28:40and it's fine, but I think that gesture is too tight.
0:28:43- Yeah, so the behind the scenes there is that's a standard,
0:28:47what is it, UI page view controller?
0:28:49Marco would know.
0:28:50The standard left, right swipe thing.
0:28:53And that gesture recognizer is all the out of the box stuff.
0:28:56However, I am, to your point, John, adding a swipe down,
0:29:01it would pan, what is it, a pan gesture recognizer,
0:29:05that I have decided what the threshold is,
0:29:07I don't remember off the top of my head,
0:29:08but I have decided what the threshold is
0:29:10between considering it not a swipe
0:29:12and considering it a swipe, a vertical swipe that is.
0:29:14- Why don't you do, make it a scroll view
0:29:18with paging mode enabled.
0:29:20- Tell me more, why do you say that?
0:29:22- 'Cause then it'll feel like every single other thing
0:29:23that paged on iOS.
0:29:25Every time you've, in fact, so overcast cards
0:29:27on the now playing screen, that's how this implemented too.
0:29:30That's why those cards feel like any kind of
0:29:33paged scrolling thing in iOS.
0:29:35It's a standard behavior on UI scroll view.
0:29:37It's called something like enable paging
0:29:39or something like that.
0:29:40And then, and you can do crazy things like
0:29:43rip out gesture recognizer and do your own view or whatever.
0:29:46You probably don't even have to do that.
0:29:47But I would consider doing that.
0:29:49'Cause then it'll feel exactly right if you do that.
0:29:52- I don't think it feels too far from right the way it is.
0:29:56But yeah, I take your point.
0:29:57And again, this is version one,
0:29:59and we'll see what comes of it.
0:30:01I mean, it's funny because when I wrote this,
0:30:04I wrote it legitimately just for Michaela.
0:30:06And then the more I worked on it, the more I thought,
0:30:08well, you know, maybe this could be useful
0:30:09to other people with kids.
0:30:10And then I was talking to somebody.
0:30:11I don't remember if it was Steve or Mike or somebody.
0:30:14But I was talking to somebody and I was like,
0:30:16well, they said, what about like a client?
0:30:18I thought, well, shoot, you're right.
0:30:19What about a client?
0:30:20You could very well, you know, for example,
0:30:22let's say you're working on a design for an iOS app
0:30:25and you wanna show a client the designs on their device.
0:30:28Well, on your device, actually.
0:30:30You could lock the app into just an album
0:30:33that just has those screenshots.
0:30:35And you can let them pan back and forth
0:30:36till their heart's content and know that you're not gonna
0:30:38see like you in a bathing suit at the beach
0:30:40or something like that, you know?
0:30:42And so, and then somebody else as well pointed out to me,
0:30:46well, what if, you know, I'm handing my phone to Marco
0:30:49and I do wanna show him, you know, my vacation pictures,
0:30:51but I don't want him to see anything
0:30:52other than my vacation pictures.
0:30:54Not that, you know, Marco's the kind of guy
0:30:55who would go spelunking, but you get my point.
0:30:56And so I feel like this app, although it was clearly
0:31:01and unequivocally and unapologetically written
0:31:03for a two-year-old at the same time,
0:31:06it was very early that it occurred to me
0:31:08that this could be used for other people as well
0:31:11and other audiences as well.
0:31:13I should also add that with the in-app purchase,
0:31:16if the in-app purchase works,
0:31:18you can also change the icon.
0:31:22And Stee came up with a series of alternative icons.
0:31:25Unfortunately, for reasons that are not interesting,
0:31:29I haven't yet put in there their different names
0:31:31that Stee came up with, but they are quite funny.
0:31:34There's a business casual icon,
0:31:36which is the same thing basically, but with a bow tie on it.
0:31:40There's eco-friendly,
0:31:41which is a very, very green version of the,
0:31:43literally the color green version of the icon.
0:31:45There's flatten friendly, which is basically a purple
0:31:48behind the regular high color icon.
0:31:50There's high contrast, which is just yellow background
0:31:53in black ink, if you will, and trendy,
0:31:56which has like a multi-pattern gradient,
0:31:59purpley, pinky, bluey gradient in the back,
0:32:01and a flat white little dude in front.
0:32:04So if you decide to throw me a few bucks,
0:32:07then you can also get an alternative icon,
0:32:09which is something I've never done before
0:32:10and was kind of a total pain in the butt.
0:32:13- You should, so right now, I'm in the test flight
0:32:15and I haven't done the in-app purchase,
0:32:17and so it just pops up a dialog saying,
0:32:18"Sorry, you gotta buy it first.
0:32:20"You should show me all the icons I can get
0:32:21"before I buy it."
0:32:22- Oh, that is a very good point.
0:32:24You know, I thought I planned on doing that,
0:32:26and I guess I never did.
0:32:27That is a very, very, very good point.
0:32:28Good call, Marco.
0:32:29- It rotates, there's like an animated image.
0:32:31It rotates through them on that screen.
0:32:33- That's why, that's where it was.
0:32:34That's right, it was in the main purchase screen.
0:32:36It does show a GIF of all the different icons.
0:32:37That's why you're exactly right.
0:32:39- Oh, there it is. - But I should still
0:32:40show it there.
0:32:40No, but Marco's still right.
0:32:41I should still show it there.
0:32:42- I have one more thing that's not a bug,
0:32:44but just a aesthetic thing.
0:32:47On the onboarding screens,
0:32:49I feel like your left and right margins are a little tight.
0:32:51- A.S. did you want more padding on the left and the right?
0:32:53- Yep, yep, same.
0:32:55- Fair enough.
0:32:57Fair enough.
0:32:57- This is what you get for not showing it to us.
0:32:59We're gonna use Chippa 1.0,
0:33:00and we immediately have all the same--
0:33:02- I'm not upset.
0:33:02No, that's fine.
0:33:03I'm fine with that.
0:33:04- Did you see my picture, my screenshot of your app?
0:33:07This is what your app looks like to me,
0:33:08in limited mode, because it won't let me do the purchase.
0:33:10(laughing)
0:33:12- It's nothing but pancakes.
0:33:13- So pancakes. - It's literally
0:33:14nothing but pancakes.
0:33:15Pancakes all the way down.
0:33:16- Like that's how far, like the 20 pictures,
0:33:18that's how far it goes.
0:33:18- That's awesome.
0:33:19- Oh, man, you really liked your pancakes.
0:33:21- I have, I started using in the past month or two,
0:33:25Paprika, you know, that recipe app?
0:33:26- Yes, yes, yes.
0:33:27- And we're putting all of our family recipes in it,
0:33:30but then every recipe that's not a family recipe
0:33:32has this nice photo in it.
0:33:33So now all the things that we cook,
0:33:34I have to get a good looking picture of,
0:33:37and it can't look gross next to the fancy
0:33:40Blue Apron pictures and all the professional
0:33:42bon appetit glamor shots of their food.
0:33:45It's surprisingly hard to get
0:33:47non-gross looking photos of food.
0:33:49That's why, A, half of the food photography you see is faked
0:33:52because real food looks gross,
0:33:53and B, good pictures of real food are really hard to make.
0:33:58Neven Murgen's really good at making them.
0:33:59A, he makes really good food,
0:34:00but B, he has an Instagram account
0:34:01that's just the food that he makes,
0:34:02and he's all about like, he's got a big window
0:34:05with a lot of sun and a good place to set up
0:34:07and beautiful plates.
0:34:09I should have him come and photograph my food
0:34:11and also cook it for me.
0:34:12Oh my goodness.
0:34:15- This is really cool.
0:34:16I'm really proud of you for doing all this
0:34:18and making another app and everything.
0:34:19It's like, look, you could have gotten stuck in the trap,
0:34:23which is a very common, easy to fall into trap,
0:34:25of just working on vignette forever.
0:34:27What happens is you have probably exhausted
0:34:31most of the market for that app that you can.
0:34:33- I think so.
0:34:34- And you could have just kept plowing through
0:34:37and developing more and more edge case features
0:34:40that take more and more effort on your part.
0:34:42The low-hanging fruit is picked.
0:34:44Now there's a whole bunch of medium to small-sized fruit
0:34:47way up high in the tree,
0:34:49and you could try to go get it
0:34:51and waste a whole bunch of time doing that,
0:34:53but what you're doing now,
0:34:54which is trying new app ideas instead,
0:34:58is a way better use of your time in all likelihood.
0:35:00- Yeah, and I mean, I don't expect that this
0:35:02is gonna set the world on fire
0:35:03by any stretch of the imagination,
0:35:04but it's something else.
0:35:06It was an itch I wanted scratched, and you never know.
0:35:09And the other thing is,
0:35:12if I end up in the underscore approach where,
0:35:15I mean, I'm underselling underscore by saying it this way,
0:35:18but if I have a suite of apps that makes,
0:35:20each of which makes a little bit of money,
0:35:22if I have enough apps that make a little bit of money,
0:35:25that's fine, I'm okay with that.
0:35:27I don't have to take over the world.
0:35:28I don't have to be overcast.
0:35:29I can just have a bunch of things that trickle in,
0:35:32and hopefully in aggregate, that's not so bad.
0:35:35And you're right that Vignette is,
0:35:37I think has mostly exhausted the customer base
0:35:40that it will probably get.
0:35:41There's a couple of things that are medium-sized fruit
0:35:43that I'm still considering doing for Vignette,
0:35:45but I think largely that ship has sailed,
0:35:49and it has sailed into the sunset,
0:35:51and I mean, not to, oh god, I'm already badgering this, but--
0:35:53- It has sailed off the end of the Earth.
0:35:55- Yeah, it has sailed off the end of the Earth.
0:35:56I mean, not to say that I'm abandoning Vignette, but--
0:35:58- No, no, no, that's not what I'm saying or what you're saying
0:36:00and also, that's not a bad thing.
0:36:02Every app has a certain,
0:36:04there's a certain worthwhile limit
0:36:07of how much time is worth spending on this app
0:36:09as a developer.
0:36:11Some apps justify continuous improvements.
0:36:14I think overcast mostly does because of--
0:36:17- Yeah, agreed.
0:36:18- I think overcast is kind of stay cutting edge
0:36:19with features from competitors,
0:36:20and it's financially successful on its own,
0:36:24so it can justify that, but that, first of all,
0:36:28it took a long time to get that business model.
0:36:30(laughs)
0:36:31I went through a lot of them that weren't very sustainable,
0:36:35but not every app does that,
0:36:38and one way to make a living is to have a couple apps
0:36:43or to have one app that does kind of self-sustain
0:36:46indefinitely like that.
0:36:48Another way to make a living that's way more likely
0:36:50to succeed and that way more people have succeeded at
0:36:54is to make a bunch of small apps
0:36:55and just kind of experiment and see what sticks
0:36:58and see what doesn't.
0:36:59A critical part of succeeding at that is knowing
0:37:03how much effort to put into something
0:37:05and knowing whether to keep working on version two
0:37:08of the thing or to kind of let that one coast for a while
0:37:11and start working on the next thing.
0:37:13And if you can develop that skill,
0:37:15look, so far, I think you've made a pretty good call.
0:37:17(laughs)
0:37:18I think you did vignette for a while right before WBC.
0:37:22You released it, it succeeded,
0:37:25you did a couple of minor updates,
0:37:26but I don't think it really needs much else.
0:37:28I think it's pretty much done,
0:37:30and its market is pretty much done,
0:37:31especially with all this new iMessage contact sharing stuff
0:37:34that actually is being deployed everywhere
0:37:35and all of our friends now have.
0:37:36So I think that is probably done,
0:37:41and the other features you were gonna add to it,
0:37:43possibly, things like LinkedIn and Facebook,
0:37:45these are major undertakings
0:37:48that probably wouldn't be worth it.
0:37:50So I think you have the right idea
0:37:52by not starting to go down a huge rabbit hole
0:37:55with some of those bigger features.
0:37:57There's also features that you could've taken on
0:38:00that also would've been bad uses of your time,
0:38:02things like a UI redesign,
0:38:04or basically repolishing what you already have,
0:38:08improving the feature set you already have.
0:38:10You could do that forever, every app.
0:38:12You can always keep improving the app.
0:38:13You can always modernize something or clean something up
0:38:17or refactor something or whatever.
0:38:19There's infinite potential for time suckage
0:38:22when it comes to making your own apps,
0:38:24but ideally, you figure out like, okay,
0:38:27this app is worth all the time suckage or this app isn't,
0:38:31or none of my current apps are worth a lot of time suckage
0:38:34the way they're performing in the market
0:38:35or they seem pretty stable,
0:38:37so this is the time to start something new.
0:38:39And so if you keep doing that,
0:38:41I think this could be a real thing.
0:38:43- Yeah, I mean, that's the hope,
0:38:44and I don't know if either of you guys
0:38:47listen to Analog ever, and if you don't, that's fine,
0:38:49but I said on Analog that, I don't know,
0:38:52a couple months ago maybe,
0:38:53that I had a couple of things that I was considering doing.
0:38:55Well, guess what?
0:38:56You'd now seen one of them,
0:38:58and I have another one that's in the hopper
0:39:01that I have not even filed a new project on yet,
0:39:04but I have an idea,
0:39:06and I don't plan on surprising the two of you with that one.
0:39:09I feel like I'm now one and done with that,
0:39:12but I have another idea,
0:39:14and I think after I get whatever immediate bug fixes
0:39:16and improvements are necessary out of toddler pics,
0:39:19oh god, toddler pics, I'm looking at the GitHub repository,
0:39:21and that was the initial name for it, if you will.
0:39:24And so, yeah, my name, the vignette was Gravatar Fetcher,
0:39:27and this was ToddlerPix.
0:39:29My names are great.
0:39:30But anyways, once I get through the initial stuff
0:39:35with Peekaview, then I will move on to this next idea
0:39:39and see what I've got there.
0:39:41- Speaking of toddler pics,
0:39:45spelled P-I-C-T-S, I'm sure.
0:39:47- No, John, this is an inside joke between John and me.
0:39:50I am constantly badgering John
0:39:52about how he uses the 80-year-old man version of pics,
0:39:55which is P-I-C-T-S, and I keep trying to tell him,
0:39:58it's just P-I-C-S these days.
0:40:00- And I keep telling him that it's not age-related.
0:40:02Anyway, I was wondering how you dealt with that issue,
0:40:06'cause I started on my second app
0:40:07like a week after my first app was released,
0:40:10but of course I didn't have a name,
0:40:12so I made a repo and a project under my own working title
0:40:17or whatever, and then at a certain point,
0:40:19I came up with a name, and then me being me,
0:40:23I'm like, I've gotta rename this repo.
0:40:25- Oh, yeah, I have a bother. - I've gotta rename
0:40:26this Xcode project.
0:40:27I've gotta rename every class and everything,
0:40:30the purpose of the thing.
0:40:32Did you do that, or did you do the other thing,
0:40:34which apparently is common, which is,
0:40:35yeah, you rename your executable target in Xcode,
0:40:38but you just leave everything else with the working title?
0:40:41- For Vignette, I mostly did the last thing you said,
0:40:45which is almost nothing says vignette within vignette,
0:40:48and almost everything says GravatarFetcher.
0:40:50With Peekaview, the project is called Peekaview,
0:40:54the repo is still called toddlerpix.
0:40:56All of the code is within the toddlerpix folder
0:41:00in GitHub and in Xcode,
0:41:03but I did more to try to get it to read Peekaview
0:41:08in more places than I did with Vignette.
0:41:10- Did you rename the Xcode project?
0:41:12Or was it always called that?
0:41:13So how did you rename it?
0:41:14That's my question.
0:41:15- I think I just renamed it on the file system, I thought.
0:41:17It was a while ago now.
0:41:18- Like, you just, in the finder,
0:41:20just the top-level project folder?
0:41:21- I think so.
0:41:22I am not confident that's correct,
0:41:23so definitely do that with source control nearby.
0:41:28I thought that's what I did, but again,
0:41:30I cannot stress enough, I am not confident
0:41:31that I'm right about that.
0:41:32- I did the scorched earth thing where I renamed everything.
0:41:35Xcode has a way inside Xcode,
0:41:38like not from the finder or anything,
0:41:39but you're in your project, you can do a rename,
0:41:42I've already forgotten 'cause I only did it once,
0:41:43but you can do a rename, I think it's like the top item
0:41:45in the sidebar or something,
0:41:48and it will show you what it's gonna rename in your project,
0:41:51and it renames a lot of stuff.
0:41:52- No, I think you're right.
0:41:53That is what I did.
0:41:53So I just did it again,
0:41:54because I have source control nearby,
0:41:56and put it back to toddlerpix and saying,
0:41:57okay, do you wanna rename the target?
0:42:00Do you wanna rename what it is in info.plist?
0:42:02But that was basically it.
0:42:04It didn't actually ask for much else.
0:42:05- But that's not all of it, obviously.
0:42:07You do that, and then I went through
0:42:09and found all the places where the working title
0:42:11still existed and manually fixed all of them,
0:42:13mostly using bbedit, and then I renamed the repo,
0:42:16and then I made sure everything was connected,
0:42:17and then I deleted my, well, what is it,
0:42:19XC project or whatever file,
0:42:21'cause it was corrupted or something,
0:42:22and then, again, source control is your friend.
0:42:25Right, so do this after you show you have a clean checkpoint,
0:42:28and I even zipped up, compressed a copy of the project,
0:42:31so if I totally hosed it, I could just unzip it.
0:42:34But I did want people to know that
0:42:36if you start an Xcode project under a working title,
0:42:39and you, like me, can't live with that
0:42:41once you come up with a name,
0:42:42it absolutely is possible to rename every single thing
0:42:44in your entire project eventually, and it will work again.
0:42:47- Good to know.
0:42:50Yeah, I haven't really bothered, but that's all right.
0:42:53So anyways, we don't need to belabor this anymore.
0:42:54I appreciate you guys indulging me
0:42:56and going on this little journey with me.
0:42:57I have been unreasonably excited
0:43:00about springing this on the two of you,
0:43:01and I can't stress enough, listeners,
0:43:03obviously, if you were paying close enough attention,
0:43:05you probably could have put this together,
0:43:07but I did not explicitly say anything to John nor Marco
0:43:12about what was going to happen today,
0:43:14about the fact that I was even working on something new,
0:43:17so this was a surprise for them,
0:43:18and I appreciate everyone going along for the ride.
0:43:22- Yeah, this is awesome.
0:43:23Congratulations. - Oh, thank you.
0:43:24And this requires I was 13 too, because I don't care,
0:43:27so sorry if you're on an older version.
0:43:30And actually, I should also mention, come to think of it,
0:43:33SwiftUI, like we talked about,
0:43:34and maybe we can talk more in a moment,
0:43:36it's got problems, but it ain't bad,
0:43:39and more importantly, I am really digging
0:43:43the new UI collection view stuff that came out in 13.
0:43:46So this is DiffableDataSources and CompositionalLayout.
0:43:50The main grid view, the main view of the app,
0:43:53is all CompositionalLayout, and that code is so nice.
0:43:58It is not that much.
0:43:59It is so little code compared to the nightmare
0:44:02it would have been prior to iOS 13.
0:44:04I really, really love that new stuff.
0:44:07And hopefully, final note,
0:44:10if you've never used Guided Access,
0:44:12this app is expressly designed to work with Guided Access,
0:44:16and so the idea being that when you turn on Guided Access
0:44:20by triple-clicking the side button,
0:44:22if you have a Face ID phone,
0:44:24or I believe it's still triple-clicking the home button
0:44:26on home button phones, among other things,
0:44:29Peek-a-View will automatically make that top toolbar go away,
0:44:32which means you literally,
0:44:33there's no settings button to press.
0:44:35The only thing you can press is on a photo.
0:44:38And so if you're looking at this and thinking,
0:44:40well, this is all well and good,
0:44:41but then people can go into settings and do stuff
0:44:44and make bad things happen, the whole purpose behind it
0:44:47is that it is assumed that you are willing
0:44:49to use Guided Access in order to limit that.
0:44:52And originally, I didn't even realize that I could tell
0:44:55when Guided Access was on or off,
0:44:56and so I had this god-awful triple-triple-tap gesture
0:45:01in order to get to settings,
0:45:02the idea being that a toddler
0:45:03wouldn't be able to figure that out,
0:45:04and even an adult probably wouldn't be able
0:45:06to figure that out, and I hated it from day one.
0:45:08And then somebody, maybe it was either Jelly or Underscore,
0:45:12I think, I forget who it was, but somebody pointed out to me,
0:45:15no, no, no, you can figure out
0:45:16when Guided Access is on or off.
0:45:18And so once I did that, sunshine came down from the clouds
0:45:22and shone directly on top of me,
0:45:25and everything was good and right in the world.
0:45:26So check out Guided Access if you've not done that yet.
0:45:29- We are sponsored this week by Collide,
0:45:33user-focused security.
0:45:35Many of today's fastest-growing companies
0:45:37owe their success in part to a culture
0:45:39that centers around transparency, personal responsibility,
0:45:42and most importantly, employee happiness.
0:45:45But companies also need to secure their endpoints,
0:45:47and so they often do so at the expense of those values.
0:45:50Too often, we've seen teams install intrusive management
0:45:53and security products on their employees' devices,
0:45:55and that makes everybody miserable.
0:45:57At Collide, they believe you don't need to spy on your users
0:46:01or cripple their devices to meet your compliance
0:46:03and security goals, so they launched a product
0:46:06that integrates with your Slack team
0:46:08and messes your users directly when their Mac, Windows,
0:46:11or Linux devices are not up to spec.
0:46:13Your users will receive clear instructions
0:46:15about what is wrong and step-by-step instructions
0:46:18that will fix it.
0:46:19They can even confirm in real time
0:46:21that they've resolved the problem right where they are in Slack.
0:46:24So try Collide's new product for free for 30 days
0:46:27for your entire fleet by visiting collide.com.
0:46:30That's K-O-L-I-D-E dot com, collide.com.
0:46:34Thank you so much to Collide for sponsoring our show.
0:46:37- Do we wanna talk about SwiftUI?
0:46:42Do we wanna talk about Google's video sharing bug?
0:46:44- SwiftUI, we're near that topic now.
0:46:47- Fair enough.
0:46:48So like I said earlier, the onboarding on this app
0:46:53and the pre-purchase page, if you will, or screen,
0:46:58are both SwiftUI, or there's two pages of onboarding
0:47:00and the pre-purchase screen is all SwiftUI.
0:47:05And the reason I did that is because
0:47:07I will be the first to tell you I am really bad at UI kit.
0:47:10Like I can make things work,
0:47:12but it does not come naturally to me.
0:47:15I do like storyboards, I'm a weirdo.
0:47:17I do use storyboards.
0:47:18I have reached an understanding with auto layout.
0:47:22It's not really my favorite thing in the world,
0:47:24but mostly I can make it do what I want.
0:47:28But my friend Stee had sent these mock-ups
0:47:30for the onboarding screens,
0:47:32completely of his own volition.
0:47:33Like I never had asked him to do it.
0:47:34And they, to me anyway, compared to what I had had,
0:47:37they looked incredible.
0:47:38And so I was looking at this thinking,
0:47:40oh, oh, oh, oh no,
0:47:44this is gonna be stack views all the way down
0:47:46and that does not seem good.
0:47:47And so I thought, well, the onboarding screens
0:47:52and the pre-purchase screen are mostly static.
0:47:57So maybe SwiftUI will work.
0:48:00And actually I'm pretty happy with it.
0:48:02And for this sort of thing, it's been mostly good.
0:48:07There've definitely been some warts.
0:48:10It's also been making me wanna upgrade to Catalina
0:48:12on my iMac Pro so I can get that sweet, sweet live preview.
0:48:17But all in all, it hasn't been too bad.
0:48:20The problem, well, I have many problems with SwiftUI,
0:48:22but the biggest problem I have with SwiftUI
0:48:24is that when something goes wrong,
0:48:26and we've talked about this on and off a lot in the past,
0:48:29when something goes wrong,
0:48:30it often goes wrong in very far away places
0:48:33from where the problem actually is.
0:48:35So let's say I have a hundred line view.
0:48:38Maybe the error will be reported on line 20,
0:48:42but the actual error is on line 88.
0:48:45And that is extremely frustrating.
0:48:47Additionally, the errors are often completely not actionable
0:48:50in any way, shape or form.
0:48:52And that is extremely annoying.
0:48:54But all told, I was able to go from a blank page
0:48:59to probably 80% of the way to what Stee had sent me
0:49:04as a mock-up in like an hour.
0:49:07And if I, me, Casey, I'm not saying other people,
0:49:10but if Casey had done that
0:49:11using just straight up Vanilla UI kit,
0:49:13I would still be working on it to this day,
0:49:15like two weeks later.
0:49:16'Cause I'm just really not good at that sort of thing.
0:49:18So I do, with many asterisks and daggers and double daggers,
0:49:23I do like and recommend SwiftUI for this sort of thing,
0:49:28where it's a fairly static screen
0:49:30that not that much is happening.
0:49:32I don't know if I could really in good conscience
0:49:35recommend it for stuff where there's a lot of moving parts
0:49:38and a lot of different things
0:49:40and user interactions happening.
0:49:42John, though, you probably have done even more SwiftUI
0:49:45than me at this point.
0:49:46So any thoughts you would like to add
0:49:48or corrections you would like to make?
0:49:50- I can't believe you were doing it
0:49:51without the live previews.
0:49:52It seems like it would have gone a lot faster for you.
0:49:54- Well, here's the thing.
0:49:55Here's the thing.
0:49:56I was doing it in part with the live previews,
0:49:59but I was doing it on the adorable, which is on Catalina.
0:50:01And the adorable, oh, it's so adorable,
0:50:03bless its little heart,
0:50:04but it was choking on trying to do this.
0:50:07Like it was just unbearably slow,
0:50:09to the point that doing the build, run, try, stop,
0:50:14build, run, try, stop, dance on the iMac Pro
0:50:16was actually more fun, well, not fun,
0:50:20but less infuriating than just waiting
0:50:23for the poor adorable to melt itself
0:50:25as it was trying to figure all this out.
0:50:27- No, I didn't realize how computationally expensive
0:50:30the preview is, 'cause--
0:50:31- Oh, yeah. - I mean, either.
0:50:33It doesn't seem like it should be that bad,
0:50:34but oh, it was, on the adorable, it was bad.
0:50:38- One of the things that annoy you about SwiftUI
0:50:40is that it's so timid, maybe from the earlier versions of it
0:50:44like in terms of the live preview.
0:50:45If anything changes, it's like,
0:50:47oh, I better stop, pause this live preview,
0:50:49'cause it seems like you're changing a lot of code.
0:50:50It's like, just keep trying.
0:50:53Like I got a lot of cores, just, you know, whatever.
0:50:55Like on this particular machine,
0:50:57I don't wanna have to keep hitting,
0:50:58no, no, resume the preview.
0:50:59Yeah, no, I know I broke it,
0:51:00but I'll fix it in like 20 characters.
0:51:02Like just keep trying.
0:51:03Just constantly try to get the preview working,
0:51:06'cause I hate having to go,
0:51:08the worst thing is I hate looking at it,
0:51:09and like I just changed that.
0:51:10Why didn't, oh, it paused again.
0:51:12You're wondering what I'm talking about.
0:51:14There's a live preview where you write,
0:51:16so you've seen this in WJC videos,
0:51:17but there's a live preview where you're writing the code,
0:51:19and you get to see what your view is gonna look like
0:51:22in another little section of the window
0:51:24in real time as you change things.
0:51:25So that's the promise, that hey,
0:51:27you don't have to keep like, write a bunch of code,
0:51:29build and run your app, go to the screen,
0:51:31look at the thing, and then repeat.
0:51:33Like, you know, you could do it as you're typing.
0:51:34But of course, as you're typing, you're, you know,
0:51:36you're making your file syntactically invalid
0:51:38as you're in the middle of typing stuff.
0:51:40And when that happens, there's some sort of threshold
0:51:42where it decides that you've changed a lot,
0:51:44and your code is now invalid,
0:51:46and I can't update this preview with your now invalid code,
0:51:49so I'm just gonna pause it.
0:51:50And it never, as far as I'm aware, unpauses itself.
0:51:52It just says, when you're ready,
0:51:54when you think you've gotten to a point
0:51:55where your code works again,
0:51:56hit the resume button, and it'll show it.
0:51:59So that's, that's annoying me a little bit,
0:52:01but you know, the tools are young,
0:52:02and for the most part, it hasn't crashed on me.
0:52:05- And I should add, and interrupt, I apologize.
0:52:07When that does work, I mean, even,
0:52:09there were occasions where the adorable
0:52:10would stop being an idiot,
0:52:12and would actually work pretty well.
0:52:13When that does work, I cannot stress enough
0:52:16how fast it makes developing a view in SwiftUI.
0:52:19And if you're not a developer,
0:52:21you have to understand, like,
0:52:22the normal way of doing things is,
0:52:24at best, you're looking at a wireframe,
0:52:27or like, wireframe doesn't mean anything to a regular human.
0:52:30You're looking at like a fake version of your screen,
0:52:33and you're dragging things around and thinking,
0:52:35"Okay, this is probably right."
0:52:38And then you go to run it, and you're either,
0:52:40then you have to build your entire app,
0:52:42and you need to install it either on the simulator
0:52:44running on the computer, which is pretty fast,
0:52:46or install it on your phone, which is kinda fast.
0:52:49And then you need to navigate to that screen,
0:52:51unless you have some sort of shortcut
0:52:52you've built for yourself to get there.
0:52:54And then you need to try the thing you were just trying,
0:52:56and you're like, "Oh, crap, I need it
0:52:57like four pixels the other way."
0:52:59Okay, stop the simulator, go back to where you were,
0:53:02try to fiddle with things in the storyboard,
0:53:04you know, in the visual view, or perhaps do it in code
0:53:06if you're more like Marco.
0:53:08In one way or another, make your change,
0:53:11okay, build it, wait a few seconds,
0:53:12or for Marco, it's probably more
0:53:13than just a couple of seconds,
0:53:15because your app is so big, that's not a slight at all.
0:53:17(laughing)
0:53:18You know, you take the time to build the app,
0:53:20you install it again, you go, "Oh, crap, it wasn't four,
0:53:23it was three pixels, I needed three pixels."
0:53:25And then you do this whole dance again,
0:53:26whereas with SwiftUI, not only can you do this live
0:53:30as you're coding it, because it has like a fake simulator
0:53:33within the Xcode window, which is what John
0:53:35was describing moments ago, but it's doing it as you type,
0:53:38you know, it's amazing when it works,
0:53:40and it can make things so fast.
0:53:41And what's really clever is that you can make multiple,
0:53:46like, previews, so you can have a preview always displayed
0:53:50that's in dark mode, as well as light mode.
0:53:53And so you can see the two of them side by side,
0:53:54and see exactly how the changes you're making
0:53:56affects both versions of the app.
0:53:59When it works, it is, and this is actually true
0:54:02of pretty much all of SwiftUI, when any of SwiftUI
0:54:04and all of SwiftUI is working, when it's firing
0:54:06on all cylinders, it is amazing.
0:54:10In so many ways, actually, it just occurred to me,
0:54:11in so many ways, I feel like SwiftUI is my old BMW,
0:54:14in that when it works, holy crap, it was great.
0:54:18It doesn't work that great a lot of the time, though,
0:54:20and that's the problem.
0:54:21So I apologize, John, for interrupting, please continue.
0:54:23- I think an even better analogy,
0:54:24and what I was thinking when I was doing it, of course,
0:54:26is based on my background, is it's like web dev.
0:54:28- Yeah, yeah.
0:54:29- People are used to the idea that you can be writing
0:54:32in one window and see the updates in the other,
0:54:34and you can, you know, I use BB Edit for a lot of my web dev,
0:54:38and BB Edit has a live HTML preview,
0:54:40and so as you're editing the HTML in your BB Edit window,
0:54:44the window right next to it, it updates in real time,
0:54:47and it never pauses, 'cause HTML is very forgiving,
0:54:49and it's not compiled like a language or whatever,
0:54:52and it's just so nice.
0:54:53And then the other, you know, the non-live version
0:54:56of web dev is still write a bunch of stuff, save,
0:54:59command tab, command R to reload, you know,
0:55:01like the worst case, it's still 100 times faster
0:55:04than building your app and shipping it to the simulator
0:55:06or a phone or whatever, and then navigating to a screen,
0:55:08and all that other stuff.
0:55:09So SwiftUI has always felt like web dev,
0:55:12right down to, you know, it's like you're writing CSS for it
0:55:16as a bunch of blocks, there are, you know,
0:55:18the H stacks and V stacks are a little bit different
0:55:20primitives than you have block level elements and CSS,
0:55:23but it's similar where you have padding and frame sizes
0:55:26and alignments, and it's very web dev-y, you know,
0:55:29right down to the tools.
0:55:30So that, obviously, when I saw SwiftUI,
0:55:32there you see I was very attracted to it,
0:55:34'cause I'm like, this, you know, at that point,
0:55:36I had never done any of the, you know,
0:55:38quote unquote traditional, you know,
0:55:39AppKit or UIKit stuff or whatever.
0:55:41I'm like, this looks like web dev.
0:55:42This is something that I'm already familiar with
0:55:44and comfortable working in.
0:55:46This balance of like, well, is it a GUI builder,
0:55:48like interface builder?
0:55:49Not really, but I've been building quote unquote GUIs
0:55:53for, you know, my whole career by typing text,
0:55:55but I'm also used to not just like,
0:55:58we talked about, you know, my frustrations with auto layout.
0:55:59It's like, well, you can just do it all in code,
0:56:01but that's so distant.
0:56:02That's like, you write a bunch of code
0:56:04and try to visualize in your head what it's gonna do,
0:56:05and then you have the whole build and run and install cycle
0:56:08or whatever to get to the point where you see it,
0:56:10and then you cycle back, and that's a longer cycle
0:56:13than sort of a live preview or a very fast preview.
0:56:16And like Casey said, it's totally true with like,
0:56:17you know, dark mode and different data.
0:56:20Like you essentially provide it with like a,
0:56:22in web dev terms, fixture data or whatever,
0:56:25like you can have a fixed set of data
0:56:27or a simulated set of data or real data.
0:56:29You can pull it from the preview things,
0:56:30which is also possible sometimes, by the way.
0:56:32So you can see what it looks like with different content,
0:56:35depending on your app, this has different amounts
0:56:37of usefulness and how far you wanna go.
0:56:39And you can do that on a per, you know,
0:56:41sort of sub view basis.
0:56:43So, you know, Apple recommends building SwiftUI
0:56:47from your like most primitive view upwards.
0:56:49So like if you have a page with a bunch of, you know,
0:56:52table view cells in it, and each one of those cells
0:56:54has an image and it has a picture and it has a bunch
0:56:56of badges or whatever, you can build that up
0:56:58from its smallest unit.
0:56:59And each one of those little miniature views can itself,
0:57:02you can just work on it in isolation and get that working
0:57:04in its own little preview.
0:57:05And then the next step up is you embed that
0:57:07in a bunch of other things and that has a preview.
0:57:09And you work your way up to the big screen that has,
0:57:11you know, everything in a preview.
0:57:12And again, kind of like HTML, kind of like CSS,
0:57:14you can break it up into pieces and break your problem down
0:57:18into composable pieces and then put them together.
0:57:21And yeah, it's a very compelling experience.
0:57:24My experience setting aside the tool foibles,
0:57:27using it for my app, which I'll,
0:57:29my app is getting close to being done.
0:57:31I'll probably in the next, probably sometime this month,
0:57:33we'll talk about it and I'll ship it.
0:57:35But not to give too much away about the app,
0:57:38but I'm using it, I'm not using it everywhere.
0:57:42I'm, you know, like a couple of my windows, well,
0:57:45are just, you know, plain old app kit,
0:57:47which I'm now familiar with and became very comfortable with.
0:57:50And it's so clear that app kit has like a,
0:57:52so many more features than Swift UI,
0:57:54which makes sense 'cause app kit is, you know,
0:57:5530 years old, whatever the heck it is,
0:57:57like from the next days.
0:57:59And Swift UI is like, you know,
0:58:00been out for less than a year or whatever.
0:58:02But like the, when using Swift UI,
0:58:07the main difference I found is,
0:58:09I'll often want to do something and you know,
0:58:12and I'm using Swift UI in a slightly non-traditional way,
0:58:14which will become clear when I'm actually
0:58:16wanting to talk about app.
0:58:18And I'm like, how do you do that in Swift UI?
0:58:20And in almost every case,
0:58:23it was pretty easy to figure out how to do it in app kit
0:58:26because app kit has like a delicate method for everything,
0:58:29everything you can possibly imagine.
0:58:31And Swift UI really has sort of a straight and narrow.
0:58:35It's like, you're gonna have buttons and controls
0:58:39and views and stacks and padding and scrolls.
0:58:42And like, all those things are fine.
0:58:44I was like, but what if I wanted to do something
0:58:45a little bit different?
0:58:46What if I want to be able to do a modifier click
0:58:49on a button?
0:58:50What about drag and drop?
0:58:52What about context menus?
0:58:55What if I want to do multiple of those things
0:58:57in a single area?
0:58:58And so if you guys like, whoa, whoa, whoa, hold on.
0:59:00A button is a thing that you click and does a thing.
0:59:03You don't want to get any fancier than that, do you?
0:59:05And it's like, heck no, I do.
0:59:07And app kit's like, sure, fine, whatever.
0:59:09Subclass it, override, you know, set up a delegate.
0:59:12Use a million different things,
0:59:13there are different ways.
0:59:14Like you have control over everything
0:59:16in Swift UI, like that's the one thing I want to see
0:59:18from Swift UI and the next WWDC is way more like hooks
0:59:23into the system.
0:59:24'Cause you know these abilities are there.
0:59:27You know, if you're doing something normal
0:59:29where you just have like normal controls,
0:59:30normal windows, normal views that you click around in,
0:59:33it's pretty straightforward plus or minus the bugs,
0:59:35which you know, of which there are plenty, right?
0:59:37But if you want to do weird stuff, it really fights you.
0:59:40And there are ways to say, okay, I give up,
0:59:43just embed an NSView right here.
0:59:45Like, you know, nevermind, nevermind Swift UI.
0:59:48But once you start doing that, you're like,
0:59:49well, why am I using Swift UI again?
0:59:51Like why am I, I'm trying to make like a skeleton
0:59:53and then every single actual view is an NSView
0:59:56that I control the traditional way.
0:59:58It's not ideal, right?
1:00:00So in the end, I was mostly able to beat it into submission
1:00:05and get it to do what I want,
1:00:08but boy, it was not straightforward.
1:00:09Like I had many points, I thought to myself,
1:00:13if I had not used Swift UI for this project
1:00:15and instead had done, you know,
1:00:17this exact task in AppKit, I would be done by now.
1:00:21I thought that many, many times,
1:00:22which may not actually be true because I'm not, you know,
1:00:25I'm not very good at AppKit either.
1:00:26I've like done one dinky little app, right?
1:00:28But in the course of trying to figure out
1:00:31how to do all these different things in Swift UI,
1:00:33I very quickly found out the AppKit way to do them.
1:00:35And I'm like, well, I found the AppKit way
1:00:38'cause you know, there's many more answers
1:00:39in Stack Overflow and it's longer, it's been around longer.
1:00:41You know, like there's less, you know,
1:00:43misleading or false data 'cause Swift UI has changed a lot,
1:00:45even in the short time since it's been announced.
1:00:47I'm like, but that doesn't help me.
1:00:48I need to find the Swift UI way to do it.
1:00:50Is there a Swift UI way to do it?
1:00:52Is this even possible?
1:00:53How do I arrange things?
1:00:54There was one or two things that I couldn't do
1:00:59without bugs in Swift UI.
1:01:01Like a lot of them are cosmetic bugs
1:01:02where like some visual state will get messed up
1:01:04and it's like, well, that's, I'm doing it right,
1:01:07but every once in a while it gets confused
1:01:09and it would like eventually reset itself
1:01:11if you did some action and it would be like,
1:01:12oh, I forgot, yeah, then that thing
1:01:14shouldn't be visually there and it would get rid of it.
1:01:15I'm like, I can't use that feature in Swift UI
1:01:18because that bug is gonna look like my bug,
1:01:21even if it's not my bug, it's just, you know,
1:01:23Swift UI being weird, right?
1:01:25So setting that aside, I did eventually find a way
1:01:28to do everything I wanted in Swift UI,
1:01:30but I leaned heavily on AppKit because Swift UI,
1:01:33on the Mac anyway, it's just a view.
1:01:36You do have to put it somewhere.
1:01:38So it's in a window and the window is an AppKit window
1:01:42and so I get to use all of the AppKit functionality
1:01:44for the window, it's just that that window has a view in it
1:01:48that is a Swift UI view, which may or may not have
1:01:51one or more NS views shoved in it and, you know,
1:01:54so it's a little bit of a weird hybrid mongrel,
1:01:56but overall I think it was a,
1:01:59I had a similar experience to Casey where it's like,
1:02:02I think I had, I got the notion to do this app one day
1:02:05and I fired it up and it took me like maybe,
1:02:10it made a new project, it took me like 15 minutes
1:02:12to figure out like enough of the core functionality
1:02:16to get like the data I needed.
1:02:18I still had nothing on the screen, but I'm like,
1:02:19all right, well, now I just need to display
1:02:23this data somewhere, so let me do Swift UI.
1:02:27It was so fast to get that data into a Swift UI view
1:02:30and just like, like if you'd seen me do it,
1:02:32you'd be like, you're gonna be done with this app
1:02:33in three days and like Casey, you found out,
1:02:35well, you know, there's a million edge cases
1:02:37and you're gonna be fighting with a lot of things
1:02:39and when you wanna do that easy thing,
1:02:41I'm just gonna add this minor feature
1:02:42and you realize, oh, how do I even do that in Swift UI?
1:02:46There is, how do I do that at all?
1:02:48And then you start Googling or whatever.
1:02:50So, but I got up and running in the preview
1:02:53and then up and running for real in the app so fast,
1:02:55I was like this, I couldn't believe it.
1:02:58You know, it seemed like I was gonna be done
1:03:00in a matter of a week.
1:03:02So, you know, again, like web dev,
1:03:04Swift UI has that, the advertised experience
1:03:07of that you can get something on the screen
1:03:09that looks vaguely like the app that you want it to be
1:03:11very quickly is true and the thing,
1:03:13the one sort of, not weakness, but like a characteristic
1:03:18of a lot of the Swift UI tutorials, you know,
1:03:20I've seen many of them on the web and on many travels
1:03:22trying to find how to do these weird esoteric things
1:03:24is most of them focus heavily on getting things
1:03:29up on the screen and real apps, that's part of it,
1:03:33but real apps also say, yeah,
1:03:35but how does that stuff all connect together?
1:03:37How do, you know, how do you,
1:03:39when you perform an action here,
1:03:41how does it cause a thing over there?
1:03:42How does the data thread through?
1:03:43How, you know, like, can I click this?
1:03:46Can I right click, especially on the Mac?
1:03:47Can I, you know, command click it?
1:03:48Is there a context menu?
1:03:49How does it interact with the other things?
1:03:51Can I select it and do something with selection?
1:03:52Is there a toolbar?
1:03:53Is there like, all of those things,
1:03:56it's so different than, hey, you know, like a W2C demo,
1:03:59I have this blob of data that's like just a JSON,
1:04:02fixed JSON blob for the purposes of a W2C demo
1:04:04and I just want to display it in a beautiful thing.
1:04:07That's so easy to do,
1:04:07but that's a unidirectional dump data
1:04:09down the top of a giant funnel
1:04:10and have it display into a thing.
1:04:12If that data has to be live
1:04:13and the app has to be interactive, it gets much harder.
1:04:16So there is a second level of switch tutorial
1:04:18that talks about data threading,
1:04:19but I feel like the final level is like action threading,
1:04:22like the whole, you know,
1:04:23the equivalent of like the responder chain and focus
1:04:27and all the things that Mac apps deal with
1:04:29that are integral to AppKit.
1:04:31Most of the Swift UI stuff glosses over,
1:04:35like 'cause they kind of like,
1:04:37kind of like this came up when we were talking about earlier,
1:04:39kind of like React in the web thing,
1:04:40one of React's heretical things
1:04:43is that it mixes together JavaScript and HTML
1:04:45because it wants them to be close together.
1:04:47So it's like, oh, when someone clicks a button,
1:04:49here's the action for that button,
1:04:50right here with the button.
1:04:52Swift UI is like that.
1:04:53If you make a button,
1:04:54you put the action right there with the button.
1:04:56The question is, what do you put in that action?
1:04:58Does that action just call a method on some data
1:05:00that was passed down and or observed or in the environment?
1:05:03Do you implement the action right in there with the button?
1:05:06How do you build a scalable, well factored app
1:05:10that actually does things by threading your logic
1:05:14and actions and controls and state
1:05:16all through these different views?
1:05:18And that, like React, is actually surprisingly hard to do
1:05:21because you have to decide who owns what state,
1:05:23where is it kept, how much data is brought down,
1:05:25what's in the environment, what's not.
1:05:27Those decisions and these trivial apps,
1:05:29like you're not getting any help from these,
1:05:31you know, demos, even the one that Apple just put up,
1:05:33which is a fairly sophisticated demo,
1:05:35it's like, yeah, but in the end,
1:05:37this is a very simple application.
1:05:38Like I can't imagine making like a real Mac app,
1:05:41like, you know, Acorn or something,
1:05:43like an actual complicated app with features and palettes
1:05:46and menus and a big canvas and all that stuff
1:05:49with Swift UI without coming up with a fairly solid plan
1:05:54about how to distribute your state and business logic
1:05:59and thread everything through and keep all the action sane
1:06:02or whatever, so.
1:06:03Anyway, I think I see a lot of promise in it.
1:06:06I enjoyed the experience, but I was also super frustrated
1:06:09by the limitations.
1:06:10I'll go into much more detail eventually
1:06:11when I talk about my app.
1:06:13- One thing I would like to jump on
1:06:15is what you were saying about not really having access
1:06:17to like AppKit or the system in general,
1:06:19and that is so unbelievably true and frustrating.
1:06:21So a really great example of this is
1:06:23when I use the Swift UI view for purchase,
1:06:27and if the purchase fails,
1:06:28which apparently it's done at least once for John
1:06:30and maybe for everyone, who knows?
1:06:31Hey, when there's an issue, I wanted to put up an alert
1:06:35saying, hey, there was an issue
1:06:36and just a standard UI alert controller,
1:06:37the same dialogue box that you would get in any app.
1:06:41And to do that in Swift UI,
1:06:43maybe I just have been reading the wrong advice,
1:06:46but apparently the like blessed way to do this
1:06:50is to do, what is it, like an on appears
1:06:54or something like that,
1:06:56which is at the end of your view,
1:06:58so basically it's kind of like view did load,
1:07:01or view will appear, I guess I should say.
1:07:03And upon that, it will check a state flag
1:07:08that is part of your model that it will then,
1:07:15if that state flag is true,
1:07:17then it will go ahead and show the alert,
1:07:18which just feels friggin' gross, like oh, God.
1:07:23I did something very similar for drag and drop support,
1:07:26but it's like, really?
1:07:27'Cause when you're laying out your view,
1:07:29you feel like I'm describing what the view is.
1:07:31Here's the alignment, here's the padding,
1:07:32here's what's in it, here's how they're necessary each other.
1:07:34But you're also describing show this thing,
1:07:37show this thing, show this thing,
1:07:38conditional on these five state variables,
1:07:40it feels weird, doesn't it?
1:07:41Like it doesn't feel like logic,
1:07:43it feels like you're describing,
1:07:44like what you're describing is the superset of all things
1:07:47that could ever appear on the screen,
1:07:48and then a bunch of them are gated by state variables,
1:07:50and then you just twiddle the state variables
1:07:53somewhere very distant, and then the thing appears,
1:07:55and then the state variable goes off and it disappears,
1:07:57or whatever, and it's a very strange way to work.
1:07:59- Yeah, like I think I can get through that in general.
1:08:02So like let's say you were showing like an empty view
1:08:05versus a populated view,
1:08:06and having like a state variable be the switch for that.
1:08:09Like I think I'm okay with that,
1:08:10but you know, there was,
1:08:14both with the case of showing an alert,
1:08:16like there's just no real easy or clean way to do that.
1:08:19And additionally, like I wanted to have the purchase screen
1:08:24dismiss itself if it worked,
1:08:26which maybe nobody will ever see,
1:08:27but I wanted it to dismiss itself,
1:08:30and that is also in onAppear as a flag,
1:08:33and then it's going to like dig into its presentation mode,
1:08:37which you need to bind as an environment variable,
1:08:39like it's just, some of the stuff that feels
1:08:42like it should be easy is really, really hard,
1:08:44and that's the way it is with everything, right?
1:08:46Like with SwiftUI, the hard stuff is easy, sort of,
1:08:49but the easy stuff seems to be really hard,
1:08:52whereas it's the exact reverse with UIKit or perhaps AppKit.
1:08:55- I feel like it's just the paradigm.
1:08:57What I just described is a fairly reasonable description
1:09:02of the difference between declarative and imperative.
1:09:05Like we're all in an imperative mindset where we're like,
1:09:08I want to call an API that makes an alert appear,
1:09:10'cause that's imperative programming,
1:09:11and that's what UIKit and AppKit is,
1:09:13but declarative is like, no,
1:09:14you don't call an API that makes an alert appear,
1:09:17you just describe this scene as a state machine
1:09:21and say if this state is true, then there's an alert,
1:09:24and if the state is not true, there's not.
1:09:25Now, SwiftUI isn't strictly declarative,
1:09:28because for example, in the action of a button,
1:09:30you can start imperative programming,
1:09:31and you just, in fact, that's what you're going to do.
1:09:33You're going to call a bunch of methods on your app
1:09:35or whatever, like you're going to do a thing.
1:09:37The button performs an action on your model,
1:09:39on your, you know, something's happening, right?
1:09:41You can do that right there,
1:09:42and now you're in imperative mode again,
1:09:44but for elements that appear on the screen,
1:09:47a lot of the stuff is, you know, declarative,
1:09:50like they say it's going to be,
1:09:51and it's a different way of thinking.
1:09:52Again, same thing with React, like on the web.
1:09:54You have to change your mindset a little bit,
1:09:56and it's very often frustrating when,
1:09:59especially if you don't know that like,
1:10:01the on appear or whatever, like the drag and drop stuff,
1:10:04I thought it was impossible to do this thing,
1:10:05but there was like a validate drop,
1:10:09drop entered, drop exit, perform drop,
1:10:12and I was doing all these things
1:10:13and validate drop seemed to like,
1:10:15had a Boolean return value that it seemed like
1:10:17it was just being ignored,
1:10:19and I had to drop entered and drop exited,
1:10:21and I was trying to do declarative stuff
1:10:22to change the cursor using AppKit,
1:10:25'cause I'm like, well, SwiftUI doesn't have a way
1:10:27to change the cursor as far as I can tell,
1:10:28so let me just, in one of these things
1:10:31where drop entered, drop, they all had like callbacks,
1:10:33like oh, in the callback, I'll just change the cursor,
1:10:35but nope, that doesn't work.
1:10:36Like I called the correct API to change the cursor,
1:10:39but whatever, like something else in SwiftUI was saying,
1:10:42no, no, no, I control the cursor.
1:10:44You can try to set the cursor,
1:10:45but I never even saw it blink to my cursor.
1:10:47I always just changed the other ones, though.
1:10:49Drop updated was the correct thing,
1:10:51which again, it took a callback,
1:10:54and in the callback, you did this weird thing
1:10:56about returning a drop proposal that influenced the cursor,
1:10:59and it's just such a different way of working,
1:11:02whereas it takes you two seconds to find out
1:11:04how to change the cursor on the Mac with NS cursor,
1:11:07takes much longer to figure out how to do it
1:11:09on a drag and drop with the right,
1:11:12I don't even know what they're called.
1:11:13What are those little things called?
1:11:15They're not delegate methods.
1:11:16The little like on a peer or whatever,
1:11:18I don't know if there's a SwiftUI name for those,
1:11:20but anyway, those are all new.
1:11:22They have all different names.
1:11:23They have all different verb tenses,
1:11:25and they are factored differently
1:11:27because they're in a declarative API
1:11:29instead of an imperative one,
1:11:31so a lot of your sort of muscle memory
1:11:35or idea of what this thing will be called,
1:11:38it's not called that in SwiftUI if it exists at all,
1:11:41so yeah, there's a learning curve.
1:11:43Maybe for people who are just being born now
1:11:47by the time SwiftUI is mature
1:11:48and they learn it as their first API,
1:11:51it will be a really good fit
1:11:52with whatever web technologies are around
1:11:54by the time they get to that age,
1:11:56and it will fit their mental model better,
1:11:58but it's definitely quite a change for MapKit.
1:12:01- Yeah, I think you're right, and I think some of this,
1:12:03well, a lot of this perhaps is my own ignorance,
1:12:05but again, I mean, it's such a yin and yang, right?
1:12:09When it works, well, God, it is so nice.
1:12:12It is so, so nice, and then it just falls apart.
1:12:15You hate yourself.
1:12:16So Marco, you're really enthusiastic about trying this, right?
1:12:18(laughing)
1:12:20- I mean, yeah, I have high hopes
1:12:23for the future of SwiftUI.
1:12:25I admit that it does turn me off to a large degree
1:12:31because of how different it is,
1:12:34because it is, as you mentioned,
1:12:37because it is declarative instead of imperative,
1:12:39it's such a different style of coding anything,
1:12:43let alone UIs, which are so often so imperative.
1:12:46So I think it's gonna be a while, first of all,
1:12:50before it is even mature enough
1:12:53that it is a reasonable thing to use most of the time.
1:12:56That's gonna take at least a few years.
1:12:59But then also, there are gonna be certain tasks
1:13:02where it's just worse.
1:13:05And there are certainly some
1:13:06that it's gonna be better for,
1:13:08but it's a totally different way of thinking about things,
1:13:12and you can't do things, you mentioned earlier,
1:13:14like certain things that are really easy in the old way
1:13:18are really hard in SwiftUI.
1:13:20And it turns out a lot of those things
1:13:23are really common needs for UI programming on iOS.
1:13:26So I don't, it might never be better,
1:13:31or it might always be this kind of weird alternative thing
1:13:35that you can do if you want to,
1:13:37but everyone's not doing it, right?
1:13:40It could always stay there.
1:13:43It could be more practical on some platforms and others.
1:13:47Like, watchOS, where it began, it's probably easier
1:13:50because it's a simpler problem space there,
1:13:53and also, the alternative, WatchKit, is horrible.
1:13:56So it's a much easier sell on watchOS, I think.
1:14:02But like on iOS and on macOS,
1:14:04where you already have very mature UI frameworks
1:14:07that work in, I think, more straightforward ways,
1:14:11if not, they might be more complicated in certain ways,
1:14:14but they work in ways that all of us programmers
1:14:17already know how to deal with.
1:14:19We already know how to deal with UIKit.
1:14:22We already know how to deal with AppKit.
1:14:24And if we don't, and we start looking up
1:14:26help articles and stuff, it'll work in a way
1:14:29that we at least are familiar with.
1:14:31It'll work in a familiar syntax or mode of doing things,
1:14:36as opposed to, like, SwiftUI is,
1:14:40it's almost like learning a different language
1:14:44that also has a different alphabet,
1:14:45and that also isn't even spoken by humans.
1:14:48It's like, okay, well, okay, so if we're learning
1:14:51the pig alphabet that is spoken only by pigs,
1:14:55it's like, okay, we have a lot to learn here,
1:14:57a lot to relearn, a lot to unlearn.
1:14:58This is gonna be difficult, right?
1:15:01And so I think SwiftUI's gonna be like that,
1:15:04where because it is such a different paradigm
1:15:07than what all of us are taught,
1:15:09and because certain common things are extremely complex,
1:15:14and to some degree might always be,
1:15:17and because it's year one, and we're already having
1:15:23to frequently do little hacks that basically break out
1:15:27of the declarativeness of it, or we do, like,
1:15:30those little state variables that kind of tarnish
1:15:33the purity of this model in such a way
1:15:34that makes you think, like, maybe this isn't
1:15:35the right model all the time.
1:15:37- The state variables aren't tarnishing it.
1:15:38That's how you're supposed to use it.
1:15:39It's just a different mindset.
1:15:41- True, but because it makes certain things feel
1:15:45kind of bad or sloppy or, like, hacks,
1:15:47this is probably gonna prove to be
1:15:52a really cool tool sometimes,
1:15:55but it might not be the universal next big way to do UIs.
1:16:00It might never reach that state.
1:16:03It might just be that UIs are actually just much easier
1:16:06to do declaratively, or imperatively.
1:16:08God, I can't get them straight.
1:16:10- I think the name is part of the problem,
1:16:12'cause it's SwiftUI, and it makes you think, like,
1:16:14oh, this is gonna be what I do
1:16:16to make my entire user interface,
1:16:17but if it had been called SwiftLayout,
1:16:19that might have been a better name.
1:16:22I know data is kind of threaded through it,
1:16:23but I view it right now as,
1:16:26its competitors is AutoLayout or Storyboards.
1:16:32It's not doing my data model for me.
1:16:35We know that's a whole separate thing.
1:16:37It's basically, oh, so you want your data
1:16:39to appear somewhere on the screen.
1:16:41You're gonna make a view, right?
1:16:43Well, that's what SwiftUI does.
1:16:44It just makes views.
1:16:45It doesn't even make Windows on the Mac.
1:16:47It's not even at that level.
1:16:48It just makes views, and if you're gonna make a view,
1:16:51you could make it as a Storyboard or a Zib or Nib
1:16:54or whatever, you can do it programmatically or whatever,
1:16:57and I think of SwiftUI as,
1:16:59imagine if you can make your UIs programmatically,
1:17:02but the syntax was a billion times nicer
1:17:04and you got live previews.
1:17:05That's what it's like.
1:17:07Pretend interface build didn't exist,
1:17:08and you were just doing all your UIs programmatically
1:17:10in Objective-C or Swift.
1:17:12If you're good at that and you know all the APIs already,
1:17:15you can kind of visualize what it's gonna look like,
1:17:16but imagine if those APIs were so much more,
1:17:20like terse, not so wordy,
1:17:22not with a million different arguments
1:17:23where you could really just express what you want
1:17:25in a very concise, structured way
1:17:28and see it in real time with multiple previews
1:17:30and with different data and different scale factors
1:17:33and sizes and dark mode and all that other stuff.
1:17:35That's SwiftUI, right?
1:17:37And it's not doing the whole rest of your application,
1:17:39and you do have to figure out how to thread your data
1:17:41through it and everything, but it's not really doing,
1:17:44especially on the Mac, your whole app for you.
1:17:47I think you can do most of the pieces.
1:17:50I think you can make menus, context menus, menu bar icons,
1:17:55but the windows still have to be NSWindows or whatever,
1:17:59and you can put views inside them.
1:18:01It's a weird mishmash.
1:18:03I don't know if SwiftUI wants to be more than SwiftLayout.
1:18:05Even if it was just as SwiftLayout,
1:18:07I think it's a strong competitor to doing it programmatically
1:18:11or using auto layout or using springs and struts
1:18:14and doing, because the GUI builder way
1:18:17of doing it with Interface Builder is similar to SwiftUI
1:18:20only in SwiftUI, you only touch the source code,
1:18:23again, like web dev, you touch the source code.
1:18:25You don't do web dev, except for in the bad old days
1:18:28of like page mill or whatever, by touching the web page,
1:18:30you touch the source code, and then you look at the web page
1:18:33to see how your thing came out,
1:18:35and it's kind of like a real time thing, right?
1:18:37In Interface Builder, you touch the actual interface
1:18:41in storyboards or nibs, but there's also a code part
1:18:44that's over there that might influence it,
1:18:45and you can adjust that balance or whatever.
1:18:47So I think SwiftUI has a bright future in that realm.
1:18:52It's just not clear to me how far it will try to expand.
1:18:55Like, is there a SwiftUI equivalent of a window on the Mac?
1:18:58Does it go that far, or does it always stay
1:19:00as a tool for making really cool views?
1:19:01- Additionally, something I keep wondering is
1:19:06if you can put a SwiftUI view inside of a view controller.
1:19:11So view controllers, like the old way,
1:19:13the standard way, I should say, of presenting stuff
1:19:16on a screen, and you can put SwiftUI views
1:19:19into view controllers.
1:19:21So if that's the case, and if that's how this all
1:19:25is held together for the live preview stuff,
1:19:28couldn't we just live preview view controllers?
1:19:31Like, is this an artificial limitation
1:19:34to force us to use SwiftUI to get the new, sexy,
1:19:36like live preview stuff, or is there something
1:19:40legitimately different about SwiftUI that makes
1:19:43that compulsory?
1:19:44I just, I can't help but wonder, can't we have this
1:19:48for UIKit and AppKit stuff?
1:19:50Can we have these live previews for UIKit and AppKit stuff?
1:19:53I feel like, it's easy for me to say,
1:19:54'cause I'm not the one writing all this,
1:19:56but it feels like we should be able to,
1:19:58and if so, why can't we?
1:20:00'Cause that would be amazing.
1:20:02I want that first. - Well, I mean,
1:20:03on UIKit, maybe, but think about it again.
1:20:07I'm assuming one of the reasons, or the main reason,
1:20:09that the Mac doesn't let you zoom in on Mac UIs in Xcode
1:20:13is because no part of the AppKit UI drawing code
1:20:17ever expected to be zoomed in, right?
1:20:20Whereas UIKit was built with that in mind.
1:20:22Those type of limitations are the type of thing
1:20:24that make me think, like, AppKit never expected
1:20:26to be live previewed.
1:20:27That said, do you remember the big,
1:20:29what are these switches called?
1:20:30Maybe Marco will know.
1:20:31They call guillotine switches or scissor switches?
1:20:35You know, like in the Frankenstein movie where like--
1:20:40- Oh yeah, I think they're called knife switches.
1:20:42- Yeah, there you go, that's what it is, knife switches.
1:20:44It takes the big handle and it's got Y-shaped,
1:20:46and you switch it up like that,
1:20:48and the machine turns on or whatever.
1:20:50There used to be a little icon that looked like that button
1:20:53in Project Builder, and you'd be in Interface Builder,
1:20:56which was a separate app then,
1:20:57and you'd be laying out your thing,
1:20:59and then you'd hit that little switchy button,
1:21:00and it would pop up like a live window of the UI
1:21:02that you just made that you could interact with,
1:21:05but it wasn't really live,
1:21:06like it wasn't your whole app running.
1:21:07It was just essentially the nib instantiated enough
1:21:12so you could mess with it a little bit
1:21:13and see how it worked and see the layout or whatever,
1:21:17which is strange because Interface Builder itself
1:21:19already looks almost like that,
1:21:20and you can kind of interact with it
1:21:22right in Interface Builder.
1:21:23I think there still is a preview feature
1:21:25like that somewhere, but it's not the same as SwiftUI.
1:21:28The reason you can do it in SwiftUI is
1:21:30SwiftUI is so focused on the view.
1:21:32Like it's so controlled about the inputs and the outputs.
1:21:37The only way you can influence is with environment and state
1:21:41and then bindings back and forth
1:21:42between the different levels, and that's it.
1:21:45It's not like you can just, like you can with a nib,
1:21:48just grab a reference to it from arbitrary code
1:21:50and just screw with it in your code at any point
1:21:52based on any logic you want, right?
1:21:54Seems to me that to actually do a live preview
1:21:57of a view controller, you'd have to run your whole app
1:22:00because something in your app could have a reference
1:22:02to that view controller, could dig into that thing
1:22:04and pull out the view and pull one of your controls
1:22:05and disable it.
1:22:06How are you gonna simulate that?
1:22:07You've just gotta run the app,
1:22:08or SwiftUI doesn't allow that stuff,
1:22:10so I feel like you're never gonna see
1:22:12the same level of fidelity even with UIKit.
1:22:16- All right, so Google Photos had a very big oops
1:22:21that happened I think around Thanksgiving
1:22:24but has just been admitted to now,
1:22:27and I didn't have a chance to look into this
1:22:28'cause I've been a little busy,
1:22:29but my understanding is if I'm not mistaken
1:22:31that if you requested a download of either
1:22:35like all of your videos and photos
1:22:37or some of your videos and photos,
1:22:38there's a small chance you would get somebody else's stuff.
1:22:43Oops.
1:22:44Or some of somebody else's stuff.
1:22:46- And somebody else could get your stuff.
1:22:48- And somebody else could get your stuff,
1:22:49and that's pretty big oops.
1:22:52Not feeling good about that.
1:22:54So that is really unfortunate, really sad,
1:22:58and I don't know what to make of that
1:23:00because I am still using Google Photos
1:23:02as one of my photo backup, well quasi-backup strategies.
1:23:06John, I know you're using it last I heard.
1:23:10How do you feel about this?
1:23:11- I put this in here not to like dance on Google
1:23:14and say, "Ha, Google had a problem, aren't they so bad?"
1:23:18Just to like, this is part of living in the world
1:23:20where we have these cloud services,
1:23:22and I thought it was just worth talking about at that level.
1:23:25So we have recommended many times,
1:23:28hey, if you have something that you care about,
1:23:31don't just leave it on your computer that's in your house
1:23:33because your computer could break, your house can burn down,
1:23:37you could get robbed, like all sorts of things
1:23:38that can happen if you really care about that information,
1:23:40you have to have it elsewhere.
1:23:42That elsewhere is usually in addition
1:23:44to maybe having a backup copy at a friend's house
1:23:46or a relative's house or something,
1:23:47a better system that is easier to keep up to date with
1:23:51is to use one of the many cloud services.
1:23:53For photos, you can push your photos up
1:23:55to Apple's iCloud photos thing, you can use Google Photos,
1:23:58you can use a data agnostic backup service
1:24:01like frequent sponsor Backblaze
1:24:02or any other cloud backup services,
1:24:04but the whole idea is you're gonna take your data
1:24:07and you're going to send it over wires out of your house
1:24:11to a computer that somebody else owns.
1:24:13And part of the deal with that is
1:24:18you are shifting responsibility for that to somebody else,
1:24:22which mostly you wanna do.
1:24:22It's like it's their problem to make sure
1:24:24that their data center doesn't burn down
1:24:26and that they have redundant backups and all that stuff.
1:24:29And all I gotta worry about is that
1:24:31we don't have simultaneous disasters.
1:24:33If their data center burns down,
1:24:34hopefully it doesn't burn down
1:24:35the same day my house burns down, right?
1:24:37And that's how you protect.
1:24:38If you have three cloud backup services now,
1:24:40multiple data centers need to burn down
1:24:42in the same day your house burns down
1:24:43and the chances get lower and lower
1:24:44that you're actually gonna lose anything.
1:24:46But part of that deal is also,
1:24:48oh, if I screw up and accidentally pour water
1:24:51in my computer, Casey, that's my bad.
1:24:54But I was responsible for that data, so oh well.
1:24:56Well, if Google accidentally pours water in their computer,
1:25:00that's their bad and that screwed up your data.
1:25:02Every time you put your data into someone else's bucket
1:25:05and they're responsible for taking care of it,
1:25:07their mistakes can affect your data,
1:25:09down to and including, oops, I accidentally send your photos
1:25:12to somebody who's not you.
1:25:14They're not doing it on purpose,
1:25:16just like Casey's not spilling the water
1:25:17into his computer on purpose.
1:25:18But people make mistakes, companies are made of people.
1:25:22So this, I feel like, is part of the bargain
1:25:26that we make when we use cloud services,
1:25:28which is you are now vulnerable
1:25:30to the mistakes of other people.
1:25:31Just like you are protected from your mistakes
1:25:33by giving your data to them,
1:25:35now you are vulnerable to their mistakes.
1:25:37So I still strongly recommend cloud services,
1:25:41even knowing that they could accidentally
1:25:44delete all my photos, give them to somebody else,
1:25:46scramble them up or whatever.
1:25:48They're just like any other entity made up of people.
1:25:52They're not a magical AI,
1:25:53they're not an infallible computer in the cloud,
1:25:55it's just a bunch of people
1:25:56running a bunch of their own computers,
1:25:58just like you're a person running your computer
1:25:59in the same way that you can screw up, they can screw up.
1:26:01Hopefully they have more controls, they have more people,
1:26:03they have more money, they have more time,
1:26:05they are more incentivized to take care of their stuff,
1:26:08perhaps than you are,
1:26:09'cause you don't have time to be a full-time data warden
1:26:11for all the stuff in your house,
1:26:12but that risk still exists.
1:26:15And I think this is a perfectly good trade-off,
1:26:17despite things like this happening.
1:26:20Obviously, you should talk to your cloud providers
1:26:23or think about them and say,
1:26:25"Do they do this all the time?
1:26:26"Are they constantly losing my data, deleting my data,
1:26:29"giving it to other people?
1:26:30"Are they intentionally selling my data
1:26:32"or doing other mean things or whatever?"
1:26:33That's something you have to deal with.
1:26:35I think Google is still a pretty good steward of the data
1:26:37it holds, but every once in a while,
1:26:39something like this will happen.
1:26:41And I don't, like, I'm still totally willing
1:26:46to take this bargain, I don't see this and think,
1:26:48"Oh my god, I gotta get my photos out of the cloud."
1:26:50I think, well, you know, that kind of stuff happens.
1:26:54If it happens every month with Google,
1:26:56I'll think more strongly about perhaps
1:26:57taking my stuff out of the Google Cloud,
1:26:59but once in however many years, I'm not too worried about it.
1:27:03- Yeah, when it comes to evaluating cloud services
1:27:07and providers and, I mean, if she's any modern,
1:27:11big tech choice, you kinda have to take
1:27:14the long-term average with stuff like this.
1:27:18Apple has lots of problems in lots of different areas
1:27:21and we still stick with them because
1:27:23the long-term average is pretty good.
1:27:25Google, Amazon, Facebook, Microsoft, all the tech giants,
1:27:28they all have occasional issues, they have occasional bugs
1:27:32or security holes or just crazy things that just go wrong
1:27:36or quality issues or whatever, they all have these.
1:27:39It's impossible to run a giant web service
1:27:41and be 100% perfect, to never have an issue,
1:27:46to always be up, like, you're never gonna find anybody
1:27:50who's totally perfect and it's one of those things like
1:27:52if you instantly drop and permanently leave
1:27:56anybody who makes a mistake once in a while,
1:27:58it's kinda like swearing off airlines
1:28:01every time you have a poor experience on one.
1:28:03It's like, you're gonna run into airlines pretty fast
1:28:05and there's only so many and you're gonna have
1:28:07a hard time flying anywhere and you're mostly
1:28:09just hurting yourself.
1:28:10If you drop Google for this, like,
1:28:14their record is really good with security over time.
1:28:19They do a bunch of creepy crap.
1:28:20I'm not gonna say anything nice about them on that front
1:28:23but when it comes to like, this is a security bug
1:28:25and their record on security bugs over time is really good.
1:28:29So this was a one-time fluke thing.
1:28:32I wouldn't judge them long-term based solely on that.
1:28:35Now, if they have a pattern of like, neglect and sloppiness
1:28:40and they start failing to do things like this
1:28:43on a regular basis or, you know, they start having
1:28:45more security problems over time,
1:28:48that messes up the average, then you can reevaluate.
1:28:50Then you can say, all right, this isn't just a one-off thing
1:28:52or they don't just screw up rarely.
1:28:54If they start screwing up often, that's different
1:28:57but one screw up over the like, 20 years
1:29:00that we've all been using Google products,
1:29:02you know, one security flaw like this is not a big deal
1:29:06and they really, again, when it comes to security,
1:29:10they really haven't had very many bugs or flaws.
1:29:13- No argument here.
1:29:15I mean, I'm gonna keep my stuff there for now
1:29:17but it freaks me out, does freak me out.
1:29:19- We are brought to you this week by Jamf Now.
1:29:24It's easy to keep track of your own Mac or iPad or iPhone
1:29:27but what about the other Apple devices at work?
1:29:30As a business grows, so does its digital inventory
1:29:33and this makes it harder to manage everyone's Apple devices
1:29:36and this is especially true if you have remote employees.
1:29:39Jamf Now makes it easy to set up, manage
1:29:42and protect your Apple devices.
1:29:44You can check your digital inventory,
1:29:46distribute Wi-Fi and email settings to the whole fleet,
1:29:49deploy apps, enforce passcodes, protect your company's data,
1:29:54even lock or wipe a device remotely as needed from anywhere.
1:29:58Jamf Now helps you manage your devices
1:30:00so you can focus on your business instead
1:30:02and it's so easy to use,
1:30:04you don't need any IT experience to do it.
1:30:07So our listeners can start securing your businesses today
1:30:10by managing your first three devices for free.
1:30:13You can add more after that,
1:30:14starting at just $2 a month per device.
1:30:17Once again, first three devices free.
1:30:19Create your free account today at jamf.com/atp.
1:30:23That's J-A-M-F.com/atp.
1:30:27Thank you so much to Jamf Now for sponsoring our show.
1:30:29(upbeat music)
1:30:32- Stefan Jacobs writes,
1:30:34"I'm kind of new to using the terminal to do things on a Mac
1:30:36and I've come across Homebrew a few times.
1:30:38I've also heard though that Homebrew can make a bit
1:30:41of a mess if you're not careful,
1:30:42although I'm not sure what careful means here.
1:30:45Do you guys use Homebrew?
1:30:46If not, is there an alternative?
1:30:47Do you know what kind of careful I need to be
1:30:49to be a happy Homebrew user?"
1:30:51Let me start with the easy stuff.
1:30:52I do use Homebrew, I quite like it.
1:30:54I know that there's an alternative.
1:30:56Is it Macport?
1:30:58Is that what I'm thinking of that's the popular alternative?
1:31:00I think that's right.
1:31:01- Yeah, that's the old one, yeah.
1:31:03Is there anything newer?
1:31:04- Not to my knowledge, but again, I wouldn't know.
1:31:07And in terms of what you have to do to be careful,
1:31:10I don't know, I'm gonna learn with you, Stefan.
1:31:12So John, Marco, would one of you like to tell me
1:31:14what we need to do to be careful?
1:31:16- Yeah, just don't let time pass.
1:31:19- That'll do it.
1:31:19- Just freeze time.
1:31:22'Cause here's the thing, Homebrew is a package manager.
1:31:26That's, at the heart of it, it's just like
1:31:28Linux package managers and everything,
1:31:29it's a package manager.
1:31:30People judge, "Oh, this package manager's great.
1:31:33"This package manager's terrible.
1:31:35"App to get it is so much better than YUM," or whatever.
1:31:38Everyone has these holy wars over package managers
1:31:40throughout the history of package managers.
1:31:42But the reality is Homebrew has the same problems
1:31:46that almost all of them do.
1:31:47You can get it set up once,
1:31:50and it might work at a given point in time.
1:31:54But over time, the packages will change.
1:31:58The platform you're running them on will change.
1:32:00Or the computer you're running it on will change.
1:32:02So whatever you get working once at a point in time,
1:32:06a year later, you want to install a new package,
1:32:09and oh, this requires a new version of this library.
1:32:11Upgrade that library.
1:32:12Oh, now this broke these old three things
1:32:14that you were depending on, or whatever.
1:32:17And then you try to fix that, and then it won't build,
1:32:19or it can't remove dependencies,
1:32:22or it can't add dependencies,
1:32:24or it has no idea where things are,
1:32:25or things that works, then you run it,
1:32:26and all the libraries are broken.
1:32:27And it's like, it breaks.
1:32:30The setup that you build with package managers
1:32:32is so brittle that anything that you want to do
1:32:36like three to six months after you did it the first time
1:32:40might not work, and actually has a very high chance
1:32:42of not working correctly.
1:32:45And so, so often, the solution ends up being,
1:32:49"All right, just start over.
1:32:50"Just wipe out everything that homebrew installed,
1:32:54"clear out the whole directory,
1:32:56"and uninstall homebrew completely,
1:33:00"and then reinstall it as if it was never on your machine,
1:33:02"and reinstall all the packages you need,
1:33:04"have a script that you can just run over and over again,
1:33:07"so you just do everything from scratch."
1:33:09And in homebrew's defense,
1:33:12it does actually make that easier
1:33:14than a lot of the Linux package managers,
1:33:16because it installs all of its stuff
1:33:18in one directory path area.
1:33:21And so you can actually just blow that away usually.
1:33:24Like, you know, make it uninstall itself first,
1:33:27but then it'll leave a bunch of crap behind,
1:33:28and it'll freak out, and it'll yell at you a million times
1:33:30about all the crap it left behind,
1:33:32and then you can just go delete it.
1:33:33And then you can install it as if it was never there.
1:33:35And usually that works.
1:33:38So in the sense of being a package manager,
1:33:42it fails in the same way that most package managers fail.
1:33:46I think it fails in that way a little more often
1:33:49than the mature Linux ones do,
1:33:52but that's also in part because homebrew is on Mac OS,
1:33:56and Apple doesn't give two craps about it.
1:33:59And so Apple is, you know,
1:34:01every time Apple updates the OS,
1:34:04there's all new garbage for homebrew to have to deal with
1:34:06or work around or whatever else,
1:34:08so I'm sure Apple's not making things easy on them.
1:34:10So it's kind of, you know, it's building a package manager
1:34:12on a very, you know, shifting and rapidly moving foundation.
1:34:17But still, like, it breaks a lot,
1:34:20and it breaks in all the familiar ways,
1:34:22dependency garbage or library garbage or whatever.
1:34:26But it's also, you know, the work of a bunch of volunteers,
1:34:29and we all use it for free,
1:34:31and so I kind of feel bad complaining about it.
1:34:34I've never helped out.
1:34:35I'm not doing anything to try to fix it.
1:34:37It's, you know, it's this big open world thing.
1:34:39I could try to help, but I'm not,
1:34:40so I do kind of feel bad saying bad things about it.
1:34:43But, you know, it's a package manager,
1:34:45and it's no better and actually somewhat worse
1:34:48than most package managers out there
1:34:49that you would use these days.
1:34:50So expect all the same problems.
1:34:52And anything you want to do with homebrew,
1:34:55I would say maintain a script
1:34:58that you can run in the future to set it up from scratch,
1:35:02because given enough time, you will need to.
1:35:05- You know, I don't think I've ever had to nuke homebrew
1:35:08and try it again from scratch.
1:35:10Not to say that you're wrong.
1:35:11I'm not trying to say that your lived experience isn't right.
1:35:14I'm just saying that as a second data point,
1:35:16- I have my own truth.
1:35:17- I don't think I've ever had it go quite that wrong.
1:35:22I've had to uninstall like individual things.
1:35:24Like let's pick on FFmpeg, just for sake of discussion.
1:35:27Like maybe something goes awry with FFmpeg,
1:35:29and I have to uninstall it via homebrew
1:35:31and then reinstall it, and then it's been fine for me.
1:35:35So I don't know if I'm just,
1:35:36maybe I'm not doing as complicated things with homebrew,
1:35:39or maybe I've just had better luck, I'm not sure.
1:35:41But I wouldn't say, in my personal experience,
1:35:44I wouldn't say it's demonstrably worse
1:35:46than any other package manager.
1:35:48But yeah, I guess it depends
1:35:50on what your particular experience is.
1:35:53John, how's it going for you?
1:35:55Do you even use homebrew in the first place?
1:35:57- Yeah, the question was, is there an alternative?
1:35:59The alternative is do not use a package manager.
1:36:01That's what I have done.
1:36:03I don't use package managers,
1:36:05although occasionally I'll install one
1:36:07and use it to install a thing,
1:36:08but I always regret it and go back.
1:36:10So what's the alternative to using a package manager?
1:36:13Well, a long time ago, in the dark days of Unix,
1:36:16there were really no package managers,
1:36:17and if you wanted software, you downloaded the source code
1:36:20and you built it yourself.
1:36:21That's what I do.
1:36:22I download the source, I build it,
1:36:23and I install everything in user local.
1:36:25It's kind of like having a single directory
1:36:27where all your stuff is,
1:36:28because Apple does not put anything in user local,
1:36:31so user local is all yours, and it can have all the things.
1:36:34User local lib, user local bin, user local man,
1:36:36it's all that user local include.
1:36:38It's all there, and you control all of it.
1:36:40The bad thing is if you don't use a package manager,
1:36:42it is a giant pile of stuff that is mostly undifferentiated,
1:36:46but the thing I find most frustrating about package managers
1:36:48aside from them breaking and having to go through all the,
1:36:51you know, 'cause when the OS updates,
1:36:52it's almost guaranteed that a bunch of stuff's gonna break.
1:36:54It happens with building from source too,
1:36:56but a little bit less often,
1:36:58is that very often what you want
1:37:00isn't in the package manager.
1:37:02Oh, you want version whatever of that thing?
1:37:05Well, you can't have it because it relies on version
1:37:08of whatever of this other thing,
1:37:09and we don't have that in package management,
1:37:11so you can't install the new thing,
1:37:12or if you have conflicting versions,
1:37:14you don't get to pick how everything fits together.
1:37:16You are at the whim of what is available,
1:37:18and the more popular package management
1:37:21and pre-built package repos of Linux distributions
1:37:25give you more options, but not that many more.
1:37:28Sometimes the thing you want isn't there,
1:37:31and the other thing that I find frustrating
1:37:33is if it's not available at all,
1:37:34like it's a new piece of software,
1:37:36or it's not in the package manager at all,
1:37:39and you're like, well, but I have all the prerequisites
1:37:41in the package manager, so what if I just pulled
1:37:43that one thing that I want from source?
1:37:46It should be able to find all the prerequisites
1:37:47that the package manager installed, right?
1:37:49Sometimes, maybe, but sometimes not,
1:37:53depending on how your OS controls that type of thing,
1:37:55and Mac OS in recent years has been getting more cranky
1:37:59about things like LD load path or whatever
1:38:02the various ways are that you can get some pre-built binary
1:38:07to find a library that's not where it expected it to be.
1:38:09That's also kind of a security problem,
1:38:11so they've been locking down some of that stuff,
1:38:13and it gets a little bit tricky.
1:38:14All this is to say that if you build everything from source,
1:38:17it's a pain, but it's your pain,
1:38:19and you get to control exactly every aspect of it.
1:38:22As long as the software actually exists somewhere
1:38:25in the versions that you want, you get to manually
1:38:29be the package manager and traverse the dependency chain
1:38:31to build things, and once you figure it out,
1:38:34you can build a script to do it or whatever,
1:38:36but bottom line is, there will be a new version,
1:38:39and the new major version of the operating system,
1:38:40and you might have to rebuild stuff.
1:38:41I had a user local install of Postgres, MySQL,
1:38:46a bunch of utilities like wget,
1:38:50and a bunch of stuff that Apple doesn't include
1:38:51that I like, you know, Lynx, whatever.
1:38:54I had built a bunch of software--
1:38:55- Lynx the browser?
1:38:56- Yeah. - Why?
1:38:57- What the hell are you using Lynx for in 2020?
1:39:00- If you're doing web dev, it's a thing you have to,
1:39:03it's a certain set of utilities--
1:39:03- What? - Always wanted to be there.
1:39:05- Who's using Lynx in 2020?
1:39:07- Sometimes just a quick way from a command line
1:39:09to make a request to a thing and try to load it,
1:39:11and it has debug modes and, you know, whatever, anyway.
1:39:14- Oh my God. - Oh my God.
1:39:15- And plus, if you wanna make a version,
1:39:17so if you wanna hear something, it'll make you feel,
1:39:19it'll make me feel old and, you know, anyway.
1:39:21There was a time when the cool thing to do
1:39:24with your homepage, as we called it,
1:39:27was to make a cool version of it
1:39:30that detected when you were using it in Lynx,
1:39:32and instead of having a header image,
1:39:34had ASCII art at the top
1:39:36that would look like your header image.
1:39:37(laughing)
1:39:39That's how you could tell you were a hyper elite
1:39:40web developer in 1994.
1:39:43- And now that I can get behind.
1:39:45- Wow. - It was awesome.
1:39:46Anyway, well, I didn't forget
1:39:49where I was even going with that.
1:39:50Built one Lynx, oh yeah, I had an install of that,
1:39:53that I didn't have to change for like three major versions.
1:39:56The trick is static linking.
1:39:58Do not dynamically link.
1:39:59Static link everything.
1:40:00It makes all your executals bigger and it wastes memory,
1:40:02but if you statically link, your user local can survive
1:40:06across major OS updates without breaking
1:40:08for a surprising amount of time.
1:40:10Eventually it'll probably break,
1:40:11'cause symbols will just disappear
1:40:13and you're usually dynamic linking with something,
1:40:15or, you know, all sorts of stuff.
1:40:16Or if it's 32 bit and a 64 bit comes along like that,
1:40:19it'll break eventually, but anyway, this is not,
1:40:22I can't really, I mean, this is my answer.
1:40:25I don't really recommend it because using Homebrew
1:40:27is a million times easier than building stuff from source.
1:40:30Right? (laughs)
1:40:32So if you do have to, if you use Homebrew
1:40:35and it screws up and you have to, you know, redo it,
1:40:37that's tractable.
1:40:38Doing it just once from source requires like this wealth
1:40:43of background knowledge and experience
1:40:45that no one should ever need to have.
1:40:46So I can't actually recommend it, but it's what I do
1:40:49and I vastly prefer it to using a package manager.
1:40:52- So I had to install Lynx and look at my own homepage.
1:40:55(laughs)
1:40:56'Cause now I need to.
1:40:56- You installed Lynx with Homebrew?
1:40:58- Yes, I did.
1:40:59Why wouldn't I?
1:41:00- 'Cause you, let me tell you,
1:41:01if I was installing Lynx from source,
1:41:02I could not have done it in the amount of time
1:41:03that you just did it.
1:41:04So there's an advantage of using a package manager.
1:41:06If it has what you want and you don't,
1:41:08and you like the version that it has,
1:41:10you can get it done quickly.
1:41:12All those cores, you can.
1:41:14- My favorite part of looking at my own homepage
1:41:17or my own website in Lynx is I use the anchor emoji
1:41:21as an indicator of like a permalink.
1:41:23And in Lynx, sure enough, it shows it as a plus sign,
1:41:27a hyphen, and a close parenthesis.
1:41:30- That's awesome.
1:41:31- Which is amazing.
1:41:32That's so great.
1:41:33It really honestly is.
1:41:34- Does Lynx not know that you have
1:41:35a UTF-8 terminal program?
1:41:37'Cause it should just show the emoji, right?
1:41:39- I don't, I understand what you're saying
1:41:41and I don't know.
1:41:42- I love that somewhere, somebody has like an emoji
1:41:45to ASCII transliteration table.
1:41:47- ASCII, right?
1:41:48(laughs)
1:41:49- It's probably built into Lynx.
1:41:50- This is why, what it's like to be a fancy web developer.
1:41:54Your site needs to look good in Lynx.
1:41:56- That's amazing.
1:41:57- So good.
1:41:58Oh, my word.
1:42:00And Marko Org is also looking pretty decent, all told.
1:42:03I'm surprised.
1:42:04- I haven't updated it since Lynx was current.
1:42:06(laughs)
1:42:07- It doesn't like your permalink as much, though.
1:42:09It's labeled as Infiti, which I think is short for infinity.
1:42:13But--
1:42:14- Infiti?
1:42:15- Oh yeah, that must be what it is.
1:42:16Yeah, I-N-F-T-Y.
1:42:18Oh man, that's too bad.
1:42:19Anyway, I could spend all night.
1:42:20See, now you've totally derailed me.
1:42:22I made fun of you and now I'm sucked in.
1:42:24All right, Matt Rorr writes,
1:42:25"What's the difference in any between the shift control
1:42:28option and command modifier keys?
1:42:30Most apps have useful shortcuts,
1:42:32but I don't see the logic behind which key
1:42:34does what kind of operation.
1:42:35For instance, in finder and system shortcuts,
1:42:37command D duplicates the selected files,
1:42:39shift command D opens the desktop folder,
1:42:43option command D shows or hides the doc.
1:42:45Is this pure memorization or are there any patterns
1:42:48we can follow in learning shortcuts?"
1:42:49Well, I think for this I'm going to have to turn
1:42:52to my favorite old man, Jon.
1:42:54What's the story?
1:42:55- Oh, there is a system, all right.
1:42:57So this is, part of it is like a system
1:43:01someone thought about ahead of time
1:43:02and laid out and described in human interface guidelines
1:43:06or whatever, but part of it is also a culture
1:43:08where practices are accumulated over time
1:43:11through shared experience.
1:43:12There are certain things that you accept.
1:43:13So I think if you've been using any platform
1:43:16for a long period of time and if there is any kind
1:43:18of sort of strong culture, you will absorb it.
1:43:21You absorb sort of the rules and the norms,
1:43:24whether you're aware of it at a conscious level or not.
1:43:28That, the Mac today is a combination of those.
1:43:31Slight sidebar, one thing that I get irrationally
1:43:36just annoyed by is, and this is just the hegemony
1:43:42of Windows, I suppose, where people who are using Macs,
1:43:45just a giant room full of people using Macs,
1:43:47and they're all talking to each other
1:43:48about hitting Control + C to copy.
1:43:50And it's like, believe me, you are not hitting,
1:43:52they're all in terminal Windows.
1:43:53Like you are not hitting Control + C to copy on that Mac.
1:43:57Everyone thinks like the main modifier key
1:43:59because Windows dominated the 90s is Control.
1:44:03And it's not, as I pointed out many times,
1:44:05one of the awesome things about the Mac
1:44:08is Control was left there for Unix.
1:44:10Control + C can send SIGTERM or interrupt signal
1:44:14or whatever without interfering with copy
1:44:18because copy is not Control + C on the Mac, it's Command + C.
1:44:21And the command key is not the same as the Control key.
1:44:25I know we all know that, but it seems like every time
1:44:28I hear anyone speak who's not like
1:44:31in my specific tiny tech nerd circle,
1:44:33it's like, oh yeah, Control + C to copy that.
1:44:35It's like, nope, that's not gonna work on your Mac.
1:44:37But they just, they say Control + C,
1:44:38but then they hit Command + C.
1:44:40I also get upset when people talk about the Alt key.
1:44:42Your Mac does not have an Alt key.
1:44:44- Mine does.
1:44:45(laughing)
1:44:46- I know, yours does.
1:44:47But even the Mac keyboard said,
1:44:48like I think mine, does it say Alt?
1:44:50Let me see.
1:44:51No, mine doesn't, but I think at a various point
1:44:53even Apple shipped keyboards that said Alt
1:44:55in like little letters underneath Option or whatever.
1:44:57Anyway, it's a different key.
1:44:58- Mine has a person key and a Skrillex.
1:45:02(laughing)
1:45:03- Print screen, scroll lock, yeah, you need those.
1:45:05Those are super important keys.
1:45:06- It also has a Windows key on one side.
1:45:08On the other side, a menu key.
1:45:11- I can't believe it, like that's such a case
1:45:13of Windows Envy, where they're like,
1:45:14the Control and Alt and all that other stuff,
1:45:18but it's like, but Apple's got,
1:45:19they made, Apple made up a button.
1:45:21They made up a Command key with the weird Swedish campground
1:45:25point of interest attention whatever symbol on it.
1:45:28Can we have a key too?
1:45:30And being the imaginative people they are,
1:45:32they said, I know, we'll call it the Windows key.
1:45:34And people will accidentally hit it
1:45:35and make the Start button show up for the next decade.
1:45:38And there it is, and now it's on your keyboard
1:45:40and has a Windows symbol on it.
1:45:42Anyway.
1:45:43- The funny thing is, during the last couple of weeks
1:45:45when we were talking about the Windows logo,
1:45:47I never once thought to look down at my keyboard.
1:45:51Sure enough, there it is, it's the slanted Windows logo.
1:45:54(laughing)
1:45:56- It's on the Windows key, right?
1:45:57- Yeah, I mean, for me it's Option,
1:45:59but yeah, but it's Option to my muscles,
1:46:02but to my eyes, it's Windows.
1:46:04(laughing)
1:46:05- Yeah, anyway, that's one of those things that like,
1:46:10you can't go back in time and change that,
1:46:12but I'm just so glad that the Mac is the platform
1:46:15that was poised to have a beautiful synergy
1:46:18of the Mac that we know and love and Unix,
1:46:20because control is there for Unix to mostly have,
1:46:23'cause in the Unix world,
1:46:24control is the dominant modifier,
1:46:26and in the Mac world, it's command.
1:46:28Anyway, getting back to the question at hand here,
1:46:30the general pattern is the Command key,
1:46:34Command plus some other key on the keyboard,
1:46:37is for the most frequently used, most important,
1:46:40prime commands, copy paste, quit, select all,
1:46:44and anything in your application,
1:46:48so if your application is the finder,
1:46:50and you think duplicate is an important function
1:46:52that people are gonna do a lot, that gets Command + D.
1:46:55The Option key, in general, is used to modify the behavior
1:46:59of some other thing that your thing can already do.
1:47:05It's also sometimes true of Shift,
1:47:06but Option, in general, like culturally,
1:47:08and I think probably in the Hague way back in the day,
1:47:11was like, you're gonna do a thing,
1:47:13but you're gonna do a thing in a slightly different way.
1:47:16That can be like clicking or running a command
1:47:20that already exists and adding the Option key
1:47:22to the modifier.
1:47:23There are a bunch of conventions surrounding these
1:47:26for application-specific things that are just cultural
1:47:29and weren't really written anywhere,
1:47:31but if you use, for example, any kind of graphics app,
1:47:34and you Command + Drag, that moves, Command + Option + Drag
1:47:37copies and moves a copy of it, Shift constrains proportions,
1:47:41Option resizes from the center instead of the edges,
1:47:44like these are all just cultural things
1:47:46that have been sort of cargo-culted
1:47:48across many applications,
1:47:49and this is just the realm of graphical applications,
1:47:51but the modifiers come to have significance, right?
1:47:54There is an understanding, like holding down Shift
1:47:58and doing a resize, you expect it to be constrained,
1:48:01because like Shift means constrain when resizing things,
1:48:04constrain to a square or whatever.
1:48:05Holding down Shift + Option means constrain
1:48:07and also resize from the center instead of the edge,
1:48:09and if that, there's nothing about Shift that says that
1:48:12or about Option that says that in that context,
1:48:15but it's cultural, but the generic context is
1:48:18Command is prominent, Command + Option is modifier,
1:48:22Command + Shift is second-level primary operations,
1:48:27so if you have a thing that you see like
1:48:29as a common operation,
1:48:30and you want it as taken for it,
1:48:31don't do Command + Option that letter,
1:48:33do Command + Shift that letter.
1:48:35The difference between Command + Shift
1:48:37and Command + Option can be debated,
1:48:38but I feel like culturally,
1:48:40there's a sense for if you gave me a bunch of commands
1:48:43in an app and told me what kind of app it was,
1:48:45I could tell you, oh, that one should have
1:48:46Command + Shift a letter,
1:48:48and this one should have Command + Option.
1:48:49You also have the alternative,
1:48:51and this happens sometimes too,
1:48:52where you're out of letters,
1:48:53and the good letter you want is already taken,
1:48:56like you have some operation that begins with a P,
1:48:57but Command + P is print.
1:48:59It's the wrong choice to make Command + P
1:49:01in your program not print,
1:49:02especially if your program can print.
1:49:04Don't take Command + P away from print,
1:49:06but you're like, but then what do I use?
1:49:08It's a common operation.
1:49:10To give an example, if my memory serves, it might not.
1:49:12Let me cheat by looking in the Finder right now,
1:49:14although it might not even be there anymore.
1:49:16Put away in the Finder was a command
1:49:19that was used a lot back in the day,
1:49:20but it can't be Command + P,
1:49:22'cause Command + P is print,
1:49:24and at various times, probably including today,
1:49:26the Finder could print.
1:49:27So what do you use for put away?
1:49:29Do you make it Command + Option + P?
1:49:32No, that's like page setup or some other thing.
1:49:34Do you make it Command + Shift + P?
1:49:35But it seems like it's more of an important operation
1:49:37that was done frequently back in the day
1:49:39of putting something back where it came from or whatever.
1:49:42So I think someone picked Command + Y,
1:49:45I guess for the end of put away.
1:49:47Not a great choice, but sometimes having a single,
1:49:52non three-finger-corded operation
1:49:55is more important than picking the right letter.
1:49:58So you end up with something like Command + Y
1:50:01for put away, again, I don't know if my memory is failing me,
1:50:03it might have actually been a different key,
1:50:04or Command + M for make alias,
1:50:07'cause Command + A is select all,
1:50:08so you can't use Command + A,
1:50:10but should you use Command + Option + A?
1:50:12It's not related to select all,
1:50:14you're not selecting all but in a modified way.
1:50:16Could you use Command + Shift + A?
1:50:18Eh, it still seems kinda like it might have something to do
1:50:21with selecting all, 'cause Command + A is so important.
1:50:23So how about Command + M for make alias?
1:50:26Nobody's taking it and you get to take the single letter.
1:50:28So there are rules that you should follow
1:50:33in a hierarchy that you should go through,
1:50:35but really a lot of it is also just feel and experience,
1:50:39and the best way to find out,
1:50:40aside from just sort of implementing the rules
1:50:42of like use single letters when you can,
1:50:44use Command + Option for modifications,
1:50:45use Command + Shift if there's no Command + Options,
1:50:47and notice I didn't even mention the Control key anywhere
1:50:50in any of this discussion, it's there, it's available,
1:50:53you can use it in your Mac apps,
1:50:55but that's the bottom of the barrel,
1:50:56that's for like all the good commands are taken,
1:50:59all the Command + Option and Command + Shifts
1:51:01are taken or don't make sense,
1:51:03there's some really weird command that you wanna do,
1:51:05fine, throw in control.
1:51:06That's why a lot of the weird utilities that we all use,
1:51:09use the Control key for modifiers,
1:51:12like the, like Paste Spot, multiple clipboard thing,
1:51:15you can't use any of the Cut and Copy and Paste commands,
1:51:18you know, X, Z and V with and without option,
1:51:21with and without Shift are very likely to be taken,
1:51:23but Command + Control + V,
1:51:26probably any reasonable Mac app does not take that,
1:51:29so therefore it is available to be the,
1:51:32bring up the Paste UI thing for Paste Spot.
1:51:34Similarly, Command + Space is stolen by Spotlight,
1:51:37but it was stolen by Quicksilver first,
1:51:38but you can give it back to Quicksilver
1:51:39and give Spotlight the cruddy one,
1:51:41like my Spotlight is like Command + Option + Space
1:51:43or Command + Control + Space or whatever.
1:51:45Anyway, once you start mixing control in,
1:51:47you're really at the bottom of the barrel,
1:51:48do not put that in your app,
1:51:49if you can at all help but leave control for Unix
1:51:52and for utilities that really need a unique command
1:51:55that they hope an app won't take.
1:51:56- Somebody tell Logic.
1:51:58- Does Logic use a lot of control signals?
1:52:00I mean, if you have a complicated application.
1:52:02- Not only does Logic use a lot of control modifiers
1:52:05for their keys, and only control,
1:52:07like Strict Silence is Control + X for some reason,
1:52:10they also use only Shift,
1:52:12like Shift + F for select all forward.
1:52:15My favorite thing about Logic is that
1:52:17they have many commands that are only,
1:52:20like single letter keystrokes, like A, that's a command.
1:52:24The best thing is that the text fields in Logic
1:52:27sometimes deselect themselves
1:52:29while you're typing for no reason.
1:52:31And so you are typing a word into your chapter title,
1:52:34it loses focus for no apparent reason sometimes,
1:52:37and then you finish your word,
1:52:39which has maybe four or five regular letters in it,
1:52:42and the entire interface to the app has changed
1:52:45and something's on, the metronome's ticking
1:52:47and your automation is showing and everything,
1:52:48and you're like, what the hell just happened,
1:52:50and how do I get it back?
1:52:51And oftentimes the answer is, who knows?
1:52:54Quit, don't save changes and reopen the file.
1:52:56- You're like, there's no auto-save on.
1:52:57Yeah, that is another cultural thing.
1:53:00Lots of pro applications do that.
1:53:01Photoshop is an example, B for Brush Tool,
1:53:04M for bucket. - M for move,
1:53:05or V for move. - Right,
1:53:07the left and right bracket for change brush size.
1:53:09In a pro applications that have tons of feature
1:53:12that are used all day long,
1:53:13single unmodified letters become
1:53:17a useful feature that people like,
1:53:18because it's just such a pain in the butt to use,
1:53:21but they're dangerous, as Marco just pointed out.
1:53:23If single letters unmodified can do something
1:53:25and a cat walks across your keyboard,
1:53:27you better hope your app doesn't have auto-save
1:53:29or it has a very long undo history,
1:53:30because who knows what just happened.
1:53:33It's true of some Unix utilities.
1:53:34One of the things that we've all always loved
1:53:37about NetNewswire and continue to love
1:53:39is that it uses keystrokes that are very much like,
1:53:41I loved it because they were much like
1:53:43the tin internet news reader
1:53:46for a terminal-based internet news reader for Usenet.
1:53:49The keyboard, when I first used NetNewswire,
1:53:51I'm like, this is just like a gooey version of tin.
1:53:53Single unmodified letters to do stuff,
1:53:54K to mark as red, space bar to go down to the next page
1:53:58and then skip to the next unread article
1:54:00if you're at the end of the thing,
1:54:01right, left and right arrow keys to navigate.
1:54:03That can be a very powerful practice,
1:54:08and it gets you out of the business
1:54:09of trying to figure out a million different
1:54:12modified keyboard shortcuts for everything you can do.
1:54:14A good Mac app like NetNewswire will still support
1:54:17all of the command shortcuts that you would imagine.
1:54:19There's probably a command something to mark as red
1:54:21and a command something to go,
1:54:22but having those single letter shortcuts
1:54:25is also very powerful.
1:54:26And by the way, for people who don't know,
1:54:27because Mac is, Mac OS, Mac OS X,
1:54:30whatever the hell it's called, Mac OS,
1:54:32is built on Nextstep,
1:54:32which is built by a bunch of Unix nerds,
1:54:35the standard text fields in the Mac
1:54:37will respond to essentially Emacs key bindings.
1:54:40So you can do control A to go beginning of the line
1:54:42and control E to go to end
1:54:43and very often control K to kill and control Y to yank.
1:54:47And that stuff actually works.
1:54:49Like the control key is out there
1:54:50available for Unix-y commands.
1:54:52And in most text views on the Mac, they will work.
1:54:55If you know those keyboard commands,
1:54:57I don't recommend them.
1:54:58Like you can use up and down arrow to do the same thing
1:55:01and command shift to select,
1:55:04command option to go a word at a time.
1:55:06There's a million different shortcuts,
1:55:07again, with the cultural logic,
1:55:09the understanding that shift arrow should select as you go
1:55:12and shift option arrow should go a word at a time
1:55:15and command should go, you know,
1:55:16move the cursor a word at a time
1:55:18and all sorts of things.
1:55:19Like if you start to learn those,
1:55:22it will be worthwhile because they are repeated
1:55:25throughout the entire OS
1:55:26and throughout most popular applications.
1:55:29And for the pro applications, they also have,
1:55:31I mean, I'm sure there's some sort of cultural standard
1:55:35in audio editing applications.
1:55:36I don't know what it is, but for example,
1:55:38a lot of the graphic stuff I described
1:55:40came from like Mac Paint and Super Paint
1:55:42and Mac Draw and Illustrator
1:55:44and eventually came to Photoshop
1:55:46and from there spread to the whole world.
1:55:47And so there is, that's also worth learning
1:55:50because even though it's essentially arbitrary,
1:55:53if you learn it once, you will have a leg up
1:55:55when using any other app in that category.
1:55:58- I think my favorite keyboard shortcut of all time,
1:56:00which I used to use a lot
1:56:01when I was working with other people,
1:56:04is an Xcode if you do shift control,
1:56:09option command C.
1:56:12So that is four modifiers and the C character,
1:56:16you get copy qualified symbol names.
1:56:17So if I were to do that on a view controllers,
1:56:20view did appear, what I get is,
1:56:22view controller dot view did appear
1:56:24parenthesis underscore colon parenthesis.
1:56:27So that's basically saying,
1:56:28this is the real honest goodness official name
1:56:31for this particular function.
1:56:33And it is very useful if you're trying to tell somebody else
1:56:36like you need to look at here, you can do that,
1:56:38but that requires again, shift control, option command C.
1:56:43Literally all of the fingers on a regular human's hand
1:56:46in order to do this one keyboard shortcut.
1:56:48- But it's saving you time.
1:56:50- You should look for the web for,
1:56:51I think it's called save for web claw.
1:56:53Like there's a command that was added to Photoshop
1:56:56when the web came out, which is save this image for the web,
1:56:58which would save like a heavily compressed version of it
1:57:00with selectable color palettes,
1:57:02like a different alternate way to save a different version
1:57:04of Photoshop document specifically made for the web.
1:57:08And because all the good shortcuts were taken in Photoshop,
1:57:11it's like command option shift S or something.
1:57:14But you do it so often as a web dev
1:57:16that it becomes sort of second nature.
1:57:18Like again, like I described
1:57:20what I think is the keystroke.
1:57:21I don't actually know, like most of the Emacs key bindings,
1:57:24I don't know what they are, but my hands know.
1:57:26So I don't think about it, I just go save for web
1:57:28and it happens and my hands did something
1:57:30to the keyboard when that happened.
1:57:32Just like when I split the buffer
1:57:33and move from one to the other,
1:57:34I don't actually know the keystrokes to do that in Emacs,
1:57:36but my fingers know.
1:57:37Anyway, there's a meme of taking a picture
1:57:40of how you can torque your fingers
1:57:42to do this keyboard shortcut.
1:57:44And there's lots of different variations.
1:57:45If I knew the exact name, we could find the meme,
1:57:47but it's somewhere on the web.
1:57:49- Save for webclaws.tumblr.com.
1:57:51- Oh, of course there's a Tumblr.
1:57:53- Of course there's a Tumblr.
1:57:55And it is indeed a bunch of people
1:57:57doing all sorts of different displays
1:57:59of how they do their save for web claw.
1:58:02This is something else.
1:58:04I've not heard of this 'cause I'm not a Photoshop user.
1:58:07That is, wow.
1:58:09- I don't play claw in Destiny, by the way.
1:58:11- That's good to know.
1:58:15Thank you for that.
1:58:16- It's all right.
1:58:17- Goodness.
1:58:18- Some of these save for webclaws,
1:58:18you're like, seriously?
1:58:19That's how you choose to do it,
1:58:20but everyone's got their own way.
1:58:23- All right, let's finish up with something
1:58:25that I hope will be quick.
1:58:26We'll see what happens.
1:58:27Jesse in South Dakota writes,
1:58:28"I'm curious how you all name your wifi networks.
1:58:31Is it something plain like Liss Household
1:58:33or something punny like tell my wifi I love her
1:58:36or a pop culture reference like Skynet?
1:58:39Do you or do you not broadcast your SSID?"
1:58:41For me, I have been broadcasting my SSID
1:58:44since like a couple of years after wifi was new.
1:58:48So if you're not an old man like me,
1:58:51when wifi was brand new,
1:58:53the initially accepted thing to do,
1:58:56at least when you were of the age of Marco and me
1:58:59at the time, was you don't broadcast your SSID
1:59:02and you would have to tell people your SSID,
1:59:04but you have no other security whatsoever.
1:59:06So it is by every definition, security through obscurity.
1:59:09And because you didn't broadcast your SSID at the time,
1:59:14what that meant was people would need to know
1:59:15that your SSID was like Liss or whatever
1:59:18in order to get on your network.
1:59:20But once they knew it,
1:59:21they would have the keys to the kingdom.
1:59:23And to answer the other question,
1:59:25the initial question, my network name is indeed Liss.
1:59:27I kind of wish there was something more pithy
1:59:29or punny or something, but I'm old and boring.
1:59:32And so it's just called Liss.
1:59:34Marco, I don't recall your network name
1:59:36offhand, but I remember it being funny
1:59:38if you're willing to share.
1:59:39And do you or do you not broadcast your SSID?
1:59:42- I do broadcast it.
1:59:44And this is like a weird joke that I picked up forever ago,
1:59:49back when I was a something awful forums goon
1:59:53in my teenage and early 20s years.
1:59:57And so kind of playing off of a joke
2:00:00that I picked up all the way back then,
2:00:02my SSID is trapped in a router factory.
2:00:06- That's right, I'd forgotten that.
2:00:08I should also do some real time follow up.
2:00:09Underscore, my name is T.
2:00:10Writes, all of Casey's life is Liss puns
2:00:13and he just calls this wifi.
2:00:15- I was just about to say the exact same thing.
2:00:16How is it that you of all people do not have a pun based?
2:00:21- It should be wireless.
2:00:22That's what it should be.
2:00:23- Exactly, I can't even believe it.
2:00:25I don't understand how you allowed this to happen to you.
2:00:27And then Marco's got the joke one.
2:00:29- I know, I'm sorry everybody.
2:00:30I failed you and I failed me.
2:00:31- You have, you need to change that right away.
2:00:34- Goodness, John, what's your situation?
2:00:35- Mine is boring, it's not a joke one.
2:00:37I do broadcast it.
2:00:38Yeah, I don't, I like seeing other people's
2:00:43but I, trapped in the router factory is a little long.
2:00:46Like I don't like it when someone has a funny SSID
2:00:48and it makes the menu really long.
2:00:49I don't like that.
2:00:50So I think try to keep it short and snappy.
2:00:54But I am not opposed to a joke wifi.
2:00:56But no, mine just has a boring obvious name.
2:01:00Please say it's called wifi.
2:01:02It is not called, that's a stupid name.
2:01:05The real question is, does Marco know what Skynet is?
2:01:08- No, I don't.
2:01:09- Really?
2:01:10- I know it's from a movie,
2:01:11but it's from a movie I haven't seen.
2:01:12- Pop culture reference, but it gets past Marco.
2:01:15- Wow, even I know that one.
2:01:18- That's why I asked Marco, I had faith in you Casey.
2:01:20- Thank you John.
2:01:21I did see a few weeks ago, I forget where I was.
2:01:23Now I don't recall, but I saw a few weeks ago,
2:01:26Silence of the Lands, which I had tweeted about,
2:01:28which I thought was quite great.
2:01:30That's the first time I'd seen it, yeah.
2:01:32I thought it was great.
2:01:33- Oh my goodness.
2:01:33Well, my faith in you has gone down, I'm adjusting.
2:01:36- Oh man, I should have kept my mouth shut.
2:01:38- Thanks to our sponsors this week,
2:01:39Squarespace, Collide, and Jamf Now.
2:01:42And we will talk to you next week.
2:01:44(upbeat music)
2:01:47♪ Now the show is over ♪
2:01:49♪ They didn't even mean to begin ♪
2:01:52♪ 'Cause it was accidental ♪
2:01:54♪ Oh it was accidental ♪
2:01:57♪ John didn't do any research ♪
2:01:59♪ Marco and Casey wouldn't let him ♪
2:02:02♪ 'Cause it was accidental ♪
2:02:04♪ Accidental ♪
2:02:05♪ It was accidental ♪
2:02:06♪ Accidental ♪
2:02:08♪ And you can find the show notes at ATP.FM ♪
2:02:13♪ And if you're into Twitter ♪
2:02:16♪ You can follow them at C-A-S-E-Y-L-I-S-S ♪
2:02:21♪ So that's Casey List M-A-R-C-O-A-R-M ♪
2:02:26♪ N-T-M-A-R-C-O-R-M-N ♪
2:02:29♪ S-I-R-A-C ♪
2:02:31♪ U-S-A-C-R-A-C-U-S-A ♪
2:02:34♪ It's accidental ♪
2:02:35♪ It's accidental ♪
2:02:37♪ They didn't mean to accidental ♪
2:02:41♪ Accidental ♪
2:02:42♪ Tech podcast so long ♪
2:02:45- Man, there really are a lot of really boring,
2:02:49terrible WiFi networks out there.
2:02:51Like, most of what I could pick up from here
2:02:53is just like, you know, people's default routers.
2:02:55It's like, you know, Fios and random characters.
2:02:58I have three of those in range.
2:03:00- Xfinity is the scourge of all existence.
2:03:03The Xfinity ones are all just called Xfinity WiFi.
2:03:05It's the worst.
2:03:06- Yep, Xfinity WiFi, yeah.
2:03:07There's also DirectCD HP OfficeJet 5740,
2:03:11so somebody's printer is advertising something.
2:03:13- Yeah, printers in Xfinity is just a wasteland.
2:03:17- There's a weird thing I really don't like
2:03:19when iOS has those carrier-specific WiFi networks
2:03:24that it'll just auto-join without even asking you,
2:03:27and it's surprisingly hard to get iOS
2:03:29to stop auto-joining those and remember your preference.
2:03:32- I just have iOS not auto-joining networks ever
2:03:36and also not asking me ever.
2:03:38- No, no, that's, even if you have that,
2:03:40like, you know, I'm on AT&T for my phone service.
2:03:43Even if, I always have auto-join off,
2:03:46except for like in the networks that I add,
2:03:47so like, you know, it never prompts me
2:03:48to join a WiFi network, but there's some way for AT&T
2:03:54to communicate to the phone to always rejoin
2:03:57these networks automatically.
2:03:59Like, I think it's a security hole, honestly.
2:04:01Like, I wonder, like, if I just create a network
2:04:05called AT&T WiFi, will every AT&T phone
2:04:07automatically join it?
2:04:08Is it just matching the string,
2:04:11or are these somehow authorized to only, like,
2:04:13certain routers with, like, Mac addresses or something?
2:04:15I don't even know, but somehow it is,
2:04:19like, I guess maybe it's part of the SIM card
2:04:22or the SIM standard, the carrier settings, whatever it is.
2:04:25Somehow, iOS lets carriers make your phone
2:04:29auto-join networks without asking you,
2:04:31and that, I think, is really weird,
2:04:34and like, it always gives me the creeps when I see it,
2:04:35and I always get mad, and then I try to leave the network,
2:04:38and sometimes it'll remember that I left it
2:04:40and it won't rejoin it.
2:04:41Sometimes you have to join it and then say,
2:04:43"Forget this network," and it's really messed up.
2:04:46I think that's gotta be a security hole waiting to happen.
2:04:50- How many WiFi networks are visible
2:04:52from where you're sitting right now?
2:04:53- Seven, but two of them are mine.
2:04:56- Casey?
2:04:57- 30, 31, 32, 33.
2:04:59(Casey laughs)
2:05:00- Casey's the winner, I'm at 19.
2:05:02- Yeah, I'm lucky that most of my neighbors
2:05:03are not that technical.
2:05:04- How many are insecure?
2:05:06How many don't have the little lock symbol?
2:05:08- None.
2:05:09- Only Xfinity WiFi.
2:05:11- Xfinity WiFi, that's my only unlocked one.
2:05:15I've got an all-caps Xfinity that is secure,
2:05:17but Xfinity WiFi is insecure.
2:05:19- Wow, that Xfinity, it goes all the way
2:05:21from Boston to Richmond, that is some powerful WiFi.
2:05:24- My experience is that any insecure network
2:05:26that says Xfinity WiFi is not a real WiFi
2:05:29that anyone can or should join.
2:05:31I've literally never seen an Xfinity WiFi that's insecure
2:05:33that can actually be joined by a computer.
2:05:35I don't understand what it is.
2:05:37I'm assuming Comcast sends out a bunch
2:05:39of these WiFi routers and they end up being misconfigured
2:05:41and they advertise a network that literally can't be joined
2:05:44and it always shows as insecure.
2:05:46Not that I'm ever intentionally joining them,
2:05:47but sometimes you're desperate and you're like,
2:05:48"I just gotta get some WiFi."
2:05:49And if I see Xfinity WiFi and it's insecure,
2:05:52sometimes I'll try it and just out of idle curiosity,
2:05:54but it'll never actually connect.
2:05:56It's not a real network.
2:05:57- Well, no, I don't think that's true.
2:05:59So I am not confident about the following,
2:06:02but I think the way it's supposed to work
2:06:04is that if you are an Xfinity subscriber,
2:06:07and only if you're an Xfinity subscriber,
2:06:09then you can basically ride on any Xfinity subscriber's WiFi,
2:06:14unsecured WiFi.
2:06:16I'm not sure what the auth dance story is around that.
2:06:19- But yeah, if you're not, it's just a fake network
2:06:22that's just there to distract your computer/phone.
2:06:26- Did you ever read about the thing
2:06:28about the free public WiFi SSID
2:06:31that kind of spreads itself somehow?
2:06:34- You see it at WWDC even.
2:06:35WWDC is a great place to look at SSIDs
2:06:39'cause they're all over everybody's,
2:06:40what is that, Verizon thing, starts with an M, WiFi maybe?
2:06:44- Yes, I believe that's right.
2:06:45- There's a million of those, everybody's phones,
2:06:48have their little hotspots
2:06:49that are all named default things.
2:06:51You don't see a lot of Xfinity at WWDC though.
2:06:54So I think everybody who's in my WiFi vicinity
2:06:57is a PC user 'cause I am the only person
2:07:00with spaces in my SSID.
2:07:01- Oh, is that a Mac versus PC thing?
2:07:04- No, it's just a Mac people understand
2:07:06that words are separated with spaces
2:07:07and PC people are like, "Can't have spaces in words,
2:07:10"nothing will work, add hyphens or underscores
2:07:12"or squish all the words together or make it all caps."
2:07:14And it's like, no, you can name your things with words
2:07:18but spaces between them, like a civilized person.
2:07:21- Oh my goodness.
2:07:23- That's one of the first things I did with front and center
2:07:25by the way, when Lee started the project,
2:07:27he called it like front hyphen and hyphen center
2:07:29was the project name, like no.
2:07:31It's called front space and space center
2:07:34with capital F and capital C and lowercase a,
2:07:37like a civilized--
2:07:38- Wait, that's actually like all the files
2:07:39in Xcode and everything, they have spaces in the paths?
2:07:42- The project is called that, the files are called
2:07:44like FNC app delegate.swift or whatever, right?
2:07:48But for the project--
2:07:50- It isn't like front space and space center.info.plist
2:07:54or whatever, 'cause you're just asking for problems.
2:07:57- It is, where it uses the project name,
2:08:00it does it with spaces and that's where you can find out,
2:08:03lots of people post like, "Here's the build script I used
2:08:06"to increment my build number," or whatever
2:08:08and they don't properly put the shell script.
2:08:11But everything, as far as I can tell,
2:08:12everything in Apple system from top to bottom
2:08:15doesn't care if you have spaces.
2:08:16Like everything is properly quoted in,
2:08:18like no problems whatsoever and it is used
2:08:21in lots of places if you look at like the command lines
2:08:23it's running or how it builds stuff.
2:08:25No problem with spaces.
2:08:27- That's asking for trouble.
2:08:29I wouldn't do that.
2:08:30- It's not though, as I'm saying,
2:08:31I thought it might be an issue, right?
2:08:33But not at all.
2:08:34Modern technology, like this is a solved problem.
2:08:38It's only when people are sloppy and just like
2:08:40make this assumption that like, oh, there'll never be spaces
2:08:43and file names and the people who make those assumptions
2:08:44are bad people who aren't Mac users.
2:08:47- No, no, they are and they write build scripts
2:08:49and they write Xcode at Apple and like they,
2:08:52you're right, this isn't a technology problem,
2:08:54it's a people problem and people make mistakes all the time
2:08:57and by having spaces in your programming paths,
2:08:59like you're just kind of inviting a whole bunch
2:09:02of mistakes to hit you.
2:09:04- It's a cultural thing.
2:09:05It's like that they believe in their heart of hearts
2:09:07that people shouldn't be allowed to use spaces
2:09:09and therefore they code as if that will never be a thing
2:09:11that happens, so that's why they're bad.
2:09:13They're bad if you, like, do you remember the thing
2:09:14where the iTunes installer would delete your hard drive?
2:09:17Remember that?
2:09:18That was because someone didn't think hard drives
2:09:20and could have spaces in it.
2:09:21It's like the default hard drive name has spaces in it.
2:09:24Macintosh Space HD.
2:09:27But that was clearly like a Unix person who's like,
2:09:29oh, you don't put spaces in file names.
2:09:32I don't have to worry about that case
2:09:33and it deletes people's drives.
2:09:34- Yeah, wasn't there a Chrome update that did that too?
2:09:36- Yeah, just recently.
2:09:37- It wasn't the kind of spaces though, was it?
2:09:39- No, I think it was something like that.
2:09:40Anyway, I don't know.
2:09:41I feel like you're being optimistic here
2:09:43'cause the problem is, you know, it's one thing
2:09:45when you're just dealing with arbitrary file names
2:09:47in an application, fine, but programming paths in particular
2:09:51rarely have spaces in them, and so if you're using
2:09:54some kind of programming environment or script
2:09:56or tools or whatever else, I think it's more likely
2:09:59than other contexts to have not been tested properly
2:10:03with things with spaces in them because it's so rare
2:10:05in programming directory trees.
2:10:07- It's true, and the kind of person who's a programmer
2:10:09is also more likely to be the kind of person
2:10:11who is in the mindset that you just shouldn't use spaces
2:10:14anyway so you should be punished if you use them
2:10:15or not have to worry about it, but like I said,
2:10:18I thought that was a possibility when I made the new project
2:10:21for Swift for front and center, but so far,
2:10:24like nothing in Xcode has blinked at it,
2:10:28like no problems whatsoever, and I see in the build logs
2:10:31and all the other stuff and all the different, you know,
2:10:33the files it makes and the symbols and all that,
2:10:35like it's fine, it's absolutely fine.
2:10:37So if you're afraid of doing an Xcode, don't be afraid
2:10:40because, and I would imagine Xcode at this point
2:10:41is so well-exercised and so many,
2:10:43there are so many Apple developers that surely
2:10:45there are enough of us putting spaces in it
2:10:46that if there's something in the guts of Xcode
2:10:49that can't handle spaces, it would be found really quickly.
2:10:51So my experience has been Xcode project names
2:10:55with spaces in them, thumbs up.
2:10:56(beeping)