Category: Posts
-
Project 12 Feedback
As usual, I watch Paul’s solution video, and compare it to mine. Task 1 This was passing in the predicate as a String. I passed the whole thing, but as I figured out along the way, Paul meant just the operator word. He also added some buttons to test it better, which I didn’t think…
-
You Can Take Big Steps When You Feel Safe
Day 58 of #100Days feels like complex topics are being dropped in pretty fast. We tackle one:many data relationships and how to set them up in CoreData, using CoreData constraints and setting a merge policy to manage conflicts, and even the underscore to access the actual property inside a wrapped property struct (needed for dynamic…
-
CoreData and the Preview
I’ve noticed Paul is inclined to ignore the preview and run his code in the simulator to check its operation. That’s valid, but it seems quicker, and reassuring, to see it in the preview as I type. This led to a small problem with Day 53 that uses CoreData. When I added a student in…
-
Top Four Reasons why @TwoStraws is a Good Teacher
Good Questions At various points in the 100 Days of SwiftUI course, you get asked sets of questions to check you’ve understood the preceding material. They’re usually presented as two different statements, one of which is true, and the other false. It’s actually a really good technique – the student feels like they’ve got a…
-
Git – make all the commits into a single commit
When I’m following a tutorial app, I generally pause and type up the code as I go, and make local commits with appropriate messages. This is almost completely unnecessary, but it seems like a good habit and doesn’t cost me anything – I just tick the box for creating the git when I start the…
-
Day 47 – Habits App
I’ve been mucking around with the Habits app too long – it’s started to look like procrastination. It already meets the specification, so I’m calling it an MVP and moving on. This is the first app of mine I’ve loaded onto my phone and started using, and there are a couple of things I’d like…
-
Updating stored JSON due to a struct change
I mentioned yesterday “I could use a renamed old version of my struct to load the existing data, and convert it across to the new model.“. Since I’ve been testing the app on my phone, and using plausible data, it was going to be painful enough to lose it that I thought I should go…
-
List Apps
When I was first programming professionally, it wasn’t long before I noticed that there were patterns to the sort of bread-and-butter things I was writing most times – the majority of the small business applications I wrote tracked several entities; for each entity there needed to be add/edit/delete screens, there would be some business rules…
-
When it Works
The little joy of something working. It’s one of the things that makes coding enjoyable. Like a good video game you have an overarching goal, but on the way you need to solve a large number of problems of variable complexity, and you get a little bit of dopamine for each one. I think in…
-
Musings on Data
I’ve been feeling my enthusiasm for the online courses I started waning a little, additionally, I have enough progress under my belt that I could actually start working on some of the projects in my “App Ideas” notebook. I’m not sure if starting on them is a smart idea, or just a way of procrastinating.…