Posts tagged "code"
My First App
I grew up around technology, so I don’t have good memories of when I really “started” getting in to programming. When I was around 14, I picked up HTML and started playing around with that. I learned to make simple graphics in AppleWorks that I’d embed in those pages.
Core Data and SwiftUI
In the previous post, I shared how you can create custom property wrappers that will work with SwiftUI’s view updating mechanism. I wrote that because I’ve got one other neat property wrapper to share, but understanding how it works requires knowing how to make custom wrappers. Now that I’ve got that out of the way…
Custom Property Wrappers for SwiftUI
As I’ve been working with SwiftUI, I’ve come up with some custom property wrappers that I want to share with you. Most of these are property wrappers that can be easily accomplished using other approaches, but I like these for their expressivity.
The Laws of Core Data
In my conversations with developers, I’ve heard a pretty common theme from them that “Core Data is hard” or “Core Data is buggy” or “I could never get it to work right and gave up on it”.
A Better MVC, Part 5: An Evolution
About five months ago, I wrote about improving MVC and fixing the “massive view controller” problem.
Sometimes I hate being a programmer
There are two things that make me hate being a programmer.
Swift Protocols Wishlist
If I were Supreme Swift Potentate, there are a few things I’d change about how Swift deals with protocols, and how this gets manifest in the standard library.
Simplifying Swift framework development
I’ve developed a handy trick when writing frameworks in Swift that makes the overall process a little bit nicer, and it’s just adding a single file to your framework.
Reading your own entitlements
When you’re writing an iOS or macOS app, you typically don’t need to dynamically know what your own entitlements are. However, there are a couple of rare circumstances when it could be Nice To Have.
Misusing enums
This is a response to Matt Diephouse’s article, which is itself a response to John Sundell’s article. You should go read these first.
Level up your debugging skills
Finding the root cause of an error in your app can often feel very intimidating, whether you’re brand-new to programming or you’ve been building coding for decades. Debugging problems can be extremely time consuming. Where do you start looking? How do you know if what you think is the problem is actually the problem?
A Better MVC, Part 4: Future Directions
There are other ways you can apply these principles to writing more maintainable apps.
A Better MVC, Part 3: Fixing Massive View Controller
The principle behind fixing Massive View Controller is to unlearn a concept that’s inadvertently drilled in to new developers’ heads:
A Better MVC, Part 2: Fixing Encapsulation
In order to fix the encapsulation violation we saw earlier, we need to understand a pretty simple principle:
A Better MVC, Part 1: The Problems
I recently ran across a great article by @radiantav called “Much ado about iOS architecture”. It addresses a topic that has been on my mind a lot. I gave a talk about it at the recent Swift by Northwest called “A Better MVC”. These blog posts attempt to capture the main points of my talk.
Edit distance and edit steps
Recently I was working on a little app for myself to help me keep track of some information on my computer. The app is powered by an
NSMetadataQuery
(essentially a Spotlight search) that reports back everything it finds.