Tag: code
-
Using LLMs for coding
This post looks at the context for some of my thinking about AI for supporting software development, and where I’ve landed on it for the time being. The landscape I briefly wrote about ChatGPT’s coding ability at the end of 2022. The wide availability of this tool marked the beginning of what I think can…
-
Copying Objects in JS
I’ve paid for a month of Mosh to do his React 18 course, and one of the things he makes a big deal about is not to go too deep with nested objects for your state. As soon as you start to update them it becomes apparent why. Because of the way state works in…
-
Concurrency and channels in Go
In the long ago times, I’d done several years of commercial programming before I ever had to worry about dealing with multiple things happening at the same time. Perhaps because of the rarity of this problem, doing it in traditional languages was not always elegant. In the modern world of everything happening on the network,…
-
Clean code
I’ve been listening to the latest episode of the Empower Apps podcast, this one with Jill Scott talking about “Humane” development – in the sense of being humane to whoever (probably you) is going to be reading this code in the future. It helped me clarify my thoughts about a couple of things. None of…
-
ImageRenderer()
ImageRenderer() is a SwiftUI class that creates an image from a view. You just initialize it with the view, then extract a cgImage (Core Graphics) or uiImage that can be cast to a SwiftUI Image. I’ll need a view to work with, so here it is; a crude version of my behaviour ticket. Here it…
-
Ticket to ride
A couple of days ago I was lauding the learning benefits of writing your own projects over completing tutorial projects – since your own projects push your boundaries further. Of course, its also the case that the project requirements might so completely exceed your current ability that it grinds to a halt. That’s the case…
-
FriendFace 61 Feedback
As usual after a challenge, I compare my efforts to Paul’s model solution. Just to quickly recap the app, it sucks up some data (Users who have multiple friends) and displays it. The change in this challenge was to convert it to add that data to a Core Data store so that if a future…
-
61 Done
I think I’ve finally completed the minimum work for Day 61 of #100DaysOfSwiftUI. The task was to suck up some data in JSON, decode it. back it up into a Core Data graph then display the data from the Core Data. I got stuck on dealing with the one:many relationship and had to revisit that…
-
Core Data basics – Part Two
Yesterday I roughed out a master/detail app with a list of gardens, and for each garden a detail screen including some plants. It used arrays of structs for the data. Today I’m going to convert that app to use Core Data, and explain my understanding of each step. This won’t be the entire app –…
-
Core Data basics – Part One
To help me get clear on the Core Data basics (so I can master one of the #100Days challenges), I’ll write a simple master/detail app with arrays of structs, then convert it to Core Data listing out of the steps. Almost everything I know about Core Data, I learned from Paul Hudson’s 100 Days of…