An espresso is a small coffee, sometimes taken as a quick break.
The espresso posts on mokacoding are short super focused post, mainly a way for me to share interesting little findings, and dump information I might forget.
Here's how to track symbolic liks in a Git repository, in a way suitable for teams.
A look at how beforeSuite and afterSuite behave in the Quick testing framework, and the dangers of using them
A look at how nested beforeEach and afterEach behave in the Quick testing framework.
Porting Ruby's unless operator into Swift via a function.
A little post to share some things I learnt while working on a PR for danger-swiftlint to allow selective linting.
A guide on how to configure your Xcode project to use Google Firebase without using CocoaPods.
A deploy hook to configure Postfix every time a Cloud 66 stack is built
Strong opinions loosely held, and other cornerstones for a winning mindset
An exercise to understand Swift's optional type: reimplementing the if let functionality
A quick post showing how to use the Swift availability attribute to mark objects and functions as unavailable.
How to configure NSDateFormatter to work with JSON API dates.
Links from my "Functional Core, Reactive Shell" talk
An handy script to update all Xcode plug-ins to be compatible with the latest version of Xcode and Xcode-beta.
If you are experiencing crashes with a version of Fabric and Crashlytics installed via CocoaPods chances are you are missing required information in the Info.plist. This post shows how to solve this issue.
Short post showing how to prevent the unit test target to load the AppDelegate and have faster tests execution.
A short post showing how to use a double slash in xcconfig files, for example to write URLs like http://mokacoding.com
A simple script you can run to open a PR on BitBucket for your current branch.
A simple command to run in your terminal to make sure you can use your favourite plugins on the latest version of Xcode
How to add an Hacker News button to your blog
How to provide environment variables stored in a .env file as an input for a command execution without having to export then, with a deep look at the shell commands used.
A quick guide on how to safely use Homebrew in CI.
By using the powerful automation provided by IFTTT we can make deliver the latest posts of your favourite blogs to Pocket. This is the most powerful RSS reader ever, and it is free.
Vim's relative line numbers are great for jumpin around files, and once you get used to them you want to enable them everywhere. Here's how to have NERDTree use relative line numbers
There is a simple keyword you can use in the destination option of an xcodebuild command to always run the most recent Simulator version.
Here's a little script that will allow you to install the Xcode Command Line Tools without having to install Xcode, nor having a logged GUI. This can come pretty handy in automated scripts or when provisioning virtual machines.
How to implement a custom AFNetworking response serializer to read the failure response data and populate the callback error with it.
How to get an array of single characters String from a multiple characters String. From foobar to [f, o, o, b, a, r].
When typing a shell command it is possible to reuse the last argument of the previous call without having to type it. Let's see how.
If you are having problems with xcodebuild failing to export your apps with either Swift or Watch Kit support here's the solution, with a handy custom script.