Categories
Programming Swift

map() versus flatMapThrowing()

This threw me off for a little and I’d like to share my findings. I’m using Vapor on a little side-project and part of the beauty of that backend framework is that everything is a stream, backed by SwiftNIO. Now I haven’t done any benchmarks, performance-wise, but it’s nice to have a backend that uses streams, and a […]

Categories
Programming Swift

Deploying Swift to Ubuntu

In this article, I’m going describe how to create a Linux environment where we can deploy a Swift-backed server-side app. In a past article, I created a Notes app with both a client and server component and shared business logic, all written in Swift. Now, we need to create a remote (or virtual) environment where we […]

Categories
Programming Swift

Sharing Swift code between server and iPhone app

In this short exercise, I create an app that shares code with a server component using Swift, Xcode and Kitura. The goals of this exercise are as follow: Create an environment where Xcode is the sole IDE Create three Xcode projects: the mobile app, the server-side app, and the shared business logic The mobile app […]