View this email in your browser

Hi <<First Name>>,

Here are excerpts from the latest posts from my blog since your last delivery. Enjoy!

How to Decode Human-Readable JSON Strings to Integer-Based Swift.OptionSet

published on Jun 11, 2020 11:38 am
I want to decode JSON that’s human readable but still represents a Swift.OptionSet. Traditionally, OptionSets are implemented with an integer-based rawValue, because that gives you the set algebra for free. Here’s my type: Here, all represents the whole text of a document, for example, and selected stands for the current selected text, if any.
Read in browser »

Patching console.log into Swift's JavaScriptCore JSContext

published on Jun 06, 2020 11:20 am
By default, you cannot print to the Xcode console from within a JavaScriptCore-evaluated script. print, echo, console.log – nothing of the like is available. Caveman debugging is tremendously useful, though, so we all know that we want to print from the JavaScript we evaluat, right?
Read in browser »

Add Subscripts to JavaScriptCore Types in Swift

published on Jun 06, 2020 11:08 am
The JavaScriptCore framework was apparently very convenient to use in Objective-C times: you could simply use subscripts to change objects inside the context, like this: In Swift, tutorials you find on the web stick to the longer version that underlies the subscript convention here: method calls to -objectForKeyedSubscript and -setObject:forKeyedSubscript:.
Read in browser »

TableFlip v1.2.3 Ships with CSV Fixes

published on Jun 05, 2020 03:57 pm
The latest version of TableFlip hits the digital shelves this weekend. It contains various fixes for CSV file handling, including those I wrote a series about over the course of the last months.
Read in browser »


Recent Articles:

h-now Aggregator Live Demo on Heroku
FSCheckoutSheet: In-App Purchase Sheet for Your FastSpring Store
Structure and Interpretation of Classic Mechanics – A Physics Book with Code
Proposing the h-now Microformat to Mark-Up All Our /now Pages
Digital Gardening: A Renaissance of Open Thinking and Curated Writing on the Web

Have a great rest of your day!
Copyright © 2020 Christian Tietze, All rights reserved.

unsubscribe from this list    update subscription preferences 

Email Marketing Powered by Mailchimp