Sergio Schechtman SetteUnit testing async code in Swift without painCreating unit tests to test our solutions is a daily task in a developer’s life. Most of the time you have to test the code you wrote…Feb 15, 20201Feb 15, 20201
Sergio Schechtman SetteinGrand ParadeCreating Type-safe JSON in SwiftAnd how it will improve your unit tests’ mock dataDec 26, 20173Dec 26, 20173
Sergio Schechtman SetteinGrand ParadeParsing fields in Codable structs that can be of any JSON typeSwift 4 brought a lot of cool things like the Codable protocol. It made parsing JSON easier and painless. But some things that were simple…Nov 26, 201711Nov 26, 201711
Sergio Schechtman SetteinGrand ParadeComputing the Diff of two Arrays in a functional way in SwiftThis week I got a challenge from my friend Mateusz Maćkowiak to solve an issue in a diff function he created. Given two arrays, his goal…Oct 28, 20173Oct 28, 20173
Sergio Schechtman SetteinGrand ParadeBuilding a JSON parser with TDD (Part 2) — String TheoryWe finished the last post finishing parsing Ints. But JSON numbers can also be floating points. So let’s resume where we left and move to…Oct 26, 2017Oct 26, 2017
Sergio Schechtman SetteinGrand ParadeBuilding a JSON parser with TDDRecently a friend was in need to parse a file that has a custom format, and asked me how would I implement one. My mind was immediately…Oct 4, 20172Oct 4, 20172