Sup!

Swift Slowly: Day 12

Today’s tutorial is about drawing. I’m almost done going through the entire tutorial and wondering what I should look at next.

Section 1: Creating the view

Timer view of application.

The code is pretty self explanitory until you get to places where Swift likes to pour on that sweet, sweet clusure syntax.

private var currentSpeaker: String { speakers.first(where: { !$0.isCompleted })?.name ?? "Someone" }

I had to read that line outloud to fully understand it. My brain had more question marks than the line itself. Luckily, I’ve accustomed to optionals thanks to working with Paul Hudson’s tutorials.

Also, there were some wins for the documentation popups.

Showing what properties are available for combine

Section 2: Draw an Arc

Purpose: Create a drawing on top of the circle.

I’m going to stop here because I want to spend some time with my family before bed. It’s my last night of vacation.

I don’t know if this is new but seeing the notifications builds trust that it’s working. I say this after seeing it pop up once.

IFTTT notification about weight.

Swift Slowly: Day 11

Continuing with learning about persistence tutorial

<img alt srcset=​"https:​/​/​docs-assets.developer.apple.com/​published/​8b6dcf46ffef24b1ac64555436587521/​600/​SUI_100-003.png 1x, https:​/​/​docs-assets.developer.apple.com/​published/​0f0b16a34e0c11fdc102fb25bb806d15/​600/​SUI_100-003@2x.png 2x" src=​"https:​/​/​docs-assets.developer.apple.com/​published/​8b6dcf46ffef24b1ac64555436587521/​600/​SUI_100-003.png" width=​"362" height=​"auto">​

Section 3: Method to Load Data

Purpose: Show how to load JSON

This section is pretty cut and dry and I look forward to what the rest of the application looks like. I like the fact that the tutorial shows how to load test data during development.

Section 4: Saving Data

Purpose: This is where the user’s data gets stored from one run to the next.

This is my first time seeing a do-catch statement. I other languages, I’ve seen it as a try-catch and it doesn’t have a specific line on which we are trying.

do {
	let outfile = Self.fileURL
    try data.write(to: outfile)
} catch {
	fatalError("Can't write to file")
}

Section 5: Save and Load

Purpose: Put the finishing touches on the application.

Other than the part where I put “ObservableObject” instead of “ObservedObject”, I think this was a pretty nice tutorial.

She wasn’t ready to wake up.

This is America.

Garbage.

Start of with a little exercise.

Swift Slowly: Day 10

Today’s tutorial is about persistence. I think that’s a good one as I make my way through these various tutorials.

Section 1: Add Codable

Purpose: Make the models that we’ve been working on conform to a protocal that will allow it to be saved as JSON.

It’s interesting to me that they have file names with special characters like “+” in them for the tutorial.

File names with special characters

It reminds me of when I first got into computers and how the teachers would tell us that it’s a big no-no.

Section 2: Create Data Model Purpose: To show how data can be stored. It touches on the Combine framework.

At this point, I think the tutorial should define the difference between the data in the different scrum objects/classes and the one for persistence. Or maybe they have and I jumped over it.

Documentation seems very sparse.

I like the way the documentation widgets work for the most part, but I would love to get more information from it.

Short cut to documentation

Clicking on the link “Open in Developer Documentation”, doesn’t really give me hope I’m going to get an answer for any question I might have.

Observable Object documentation

In the above picture, how is someone new to this going to know that the declaration has a link ObservableObject protocol?

Observable Object Protocol

Some of the notes feel like they should be closer together.

It feels like certain notes should be close to the steps that they highlight.

Note seperation between steps

Keyboard shortcuts are amazing.

I love ^I for re-indenting my code.

I’m going to stop here and pick this up tomorrow.

After watching the ball drop this year, I know that what we needed to do was have the year sponsored by Kia and planet fitness.

Lilly love neck rubs.

I just spent an hour going over a 15 minute tutorial. It was great.

I think I might have to work on the workflow between taking screen captures and marsedit.

Timing report for the last hour.