Christian Tietze

  • Blog Posts
  • Writing
  • Apps
  • Work With Me
  • Contact

This is probably the nicest Swift Result enum ever

May 28th, 2015

Until today, I had a regular-looking “fetch all” method on a Repository I am working with. It obtains all records from Core Data. When I discovered the nice Result enum by Rob Rix, things changed. I talked about using a Result enum before, but haven’t used an implementation with so many cool additions.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • swift
    • control-flow
    • exception

Observing Enums in Swift 1.2 with KVO

May 13th, 2015

Swift 1.2 brought very nice additions to the functionality of the language. Among one of my favorites is that we can now use Key-Value Observing on enum attributes. Here’s an example. Capacities of container are pre-set in our domain, so it makes sense to create an enum to represent the allowed values:

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • swift
    • kvo

Combining Collection-Like Repositories and East-Oriented Code

May 7th, 2015

A repository pattern is used to model a central place in your domain to fetch model instances. It usually hides database-related stuff behind a collection-like interface. You don’t have to worry about caching or database query optimization in client code – the concrete repository implementation will handle that.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • repository
    • east-oriented

Calendar Paste 2.2.0 Release Is Out

May 3rd, 2015

Teaser image

After working on it in my spare time for the last couple months, I have released a rather large update to Calendar Paste this week. This update is mostly behind-the-scenes stuff. Visible to the user are a few color changes, and adapting iOS 8 looks better. The app looks nice on iPhones of all sizes available for the first time.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • calendarpasteapp

Contact • Newsletter • Blog Feed • /feeds • /now • /uses • @ctietze@mastodon.social • Privacy & Legal Information

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.

As an Amazon Associate I earn from qualifying purchases. This e.g. applies to links to Amazon.com.