Share this page


by Christian Tietze     christiantietze.de
Swift Version: 1.0
There are imperative, interrogatory, and informational messages. The last one is sometimes achieved via success/failure return values, but it can be implemented using notifications/events for greater flexibility.

by Christian Tietze     christiantietze.de
Swift Version: 1.0
Personal project portfolio and blog of Christian Tietze: developer, writer, and bodyhacker.

by Christian Tietze     leanpub.com
Swift Version: 1.0
Learn how to design reusable code, how to get a solid test harness up and running, and how to separate the components of your application.

by Christian Tietze     christiantietze.de
Swift Version: 1.0
Let's assume we need a Domain Model and can't create our application with basic CRUD actions and data containers. Let's further assume we have a Box Entity which can contain many Itemn. Item is an Entity, too, because its attributes may change over time, so a Value Object won't do. You may replace these ...

by Christian Tietze     christiantietze.de
Swift Version: 1.1
I've written about using the Result enum to return values or errors already. Result guards against errors in the process. There's also a way to guard against latency, often called "Futures". There exist well-crafted solutions in Swift already. Lately, I've been watching interesting talks. Eric ...

by Christian Tietze     christiantietze.de
Swift Version: 1.1
After the latest change in my diet, I eat a lot more often throughout the day and try to spend the time watching educational talks to make use of my time. Functional programming seems to not only be all the hype -- its concepts seem to reach mainstream thinking, too. Here's a collection of talks you ...

by Christian Tietze     christiantietze.de
Swift Version: 1.1
Until today, I had a regular-looking "fetch all" method on a Repository I am working with.

by Christian Tietze     christiantietze.de
Swift Version: 1.1
Mocking and stubbing in tests is useful to verify behavior and replace collaborating objects with simpler alternatives. Since Swift is statically typed, you can't use a mocking library anymore. But it's trivially simple to write simple mock objects as subclasses in place.

by Christian Tietze     christiantietze.de
Swift Version: 1.1
You don't have to learn anything new if you work with Core Data in Swift. It's a pain to use NSManagedObject directly, so you better work with custom subclasses all the time. Unboxing optional NSNumbers is just too cumbersome. There are caveats you should be aware of, though.

by Christian Tietze     christiantietze.de
Swift Version: 1.1
Throwing exceptions and being able to catch them is awesome news. Then there are cases which can be handled with try-catch technically, but shouldn't. ...

by Christian Tietze     christiantietze.de
Swift Version: 1.1
I'm writing unit tests for my Storyboard-based view controllers. Button interaction can be tested in view automation tests, but that's slow, and it's complicated, ...

by Christian Tietze     christiantietze.de
Swift Version: 1.1
How I use blocks and functions to vary behavior in objects.



© 2015 SoSoSwift. Blog · About · Contact · Privacy policy · Terms of service · RSS