For the last two months I have been actively working on Swift Flow with the goal of bringing the ideas of the Flux and Redux libraries to Swift developers.Read More...
Swift 2 introduced an error handling mechanism that includes backwards compatibility with Objective-C.
This is great news, the new mechanism is a lot stricter. Long gone are the days in which one could ignore errors by lavishly throwing
nil at methods that expect a pointer to an
This year I spoke at 360iDev about “Safer Swift Code with Value Types”. The goal of the talk was to explore an architecture that uses immutable value types for the model layer.Read More...
For the impatient reader:
ErrorTypeprotocol has hidden requirements that are automatically fullfilled if you use an
enumto implement the protocol
- Objective-C methods can only be translated to Swift’s error handling mechanism if they return Objective-C objects or boolean values
- Swift will invoke the
catchblock if the Objective-C method returns
false, independent of whether an
NSErrorwas produced or not
- If an Objective-C method produces an
NSErrorand returns a value the
catchblocks is not invoked and the error cannot be retrieved
- GitHub project with examples
A couple of months ago I was faced with an issue that was fairly hard to debug:
Hackathons are a great place to see noteworthy issues. Yesterday's highlight: endless recursion in Storyboard @LAHacks— Benjamin Encz (@benjaminencz) April 5, 2015
Back in April I gave a talk at NSMeetup in San Francisco on Functional Reactive Programming on iOS.Read More...
Today, while trying to implement a generic data source in Swift, I ran into my first Swift compiler segmentation fault, yay (looking at Open Radar there seem to be many out there)!Read More...
This is no original thought. Nevertheless I’ve been thinking about it often enough to make it worth spending a few minutes framing it in my own words.
I’m currently working as a Software Engineer. According to Wikipedia that makes me a Knowledge Worker.Read More...
Unfortunately some of my MovieLoggr users ran into the following issue: After switching to a new phone and restoring it from a Backup MovieLoggr would behave unexpectetly (and in some cases crash) because the App could no longer access the user’s password and unfortunately did not handle this gracefully.Read More...
Disclaimer: I’m not a huge fan of configuring software; I’m primarily writing this to remember it for the future.
Using SSH instead of HTTPS to authenticate against services such as GitHub, Bitbucket or Heroku is very convenient, instead of typing a password for every interaction Mac OS simply exchanges SSH keys behind the scene. However, one can run into trouble when trying to use multiple accounts of the same service with SSH authentication.Read More...