Swift ranges cheat sheet
Feb 2, 2021, 10:00 PM
Even after some years of experience in Swift, I still find ranges a little bit tricky and have to take a look in the docs or make a playground to test things out, before using them at work. This post is a cheat sheet with examples on how...
Quick tip #2: Typealias to improve readability
Dec 12, 2020, 10:00 PM
Swift's type-safety is one of the language's main features, and it is extremely powerful to harness the compiler type-check to your code. In this short article, I'll give some tips to improve readability and clearness of intent using some...
Naming and code quality
Nov 13, 2020, 10:00 PM
Naming is one of the most underrated and overlooked skills that a good programmer should have, yet is a skill that we use every day by giving names to variables, functions, services, and so on. Good names make messy code easier to...
Writing good tests with Tests Doubles
Sep 30, 2020, 11:00 PM
Writing unit tests is one of the key responsibilities of a developer. Although writing a test is not that hard, setting up a controlled environment where you can unit test one component might be challenging, especially if your component is...
Improving Error Handling in your App in Swift.
Aug 3, 2020, 11:00 PM
We want our software to be error-proof, but in reality, error scenarios will always exist.So this article's objective is to explain why you should handle errors on your app, give you a rule of thumb on when treating errors, and give some...
Testing asynchronous code
Jul 6, 2020, 11:00 PM
When you are starting out on testing your code, you might find asynchronous methods a little bit tricky to test. But do not worry, *XCTestExpectation* got you covered if you want to assert that an async block *will* execute, or even...
Quick tip #1: Array copy-on-write
May 23, 2020, 11:00 PM
I'm on a quest to study data structures in Swift, and one really cool feature that Swift arrays implement is copy-on-write!
This blog is written in Swift!
Apr 19, 2020, 11:00 PM
Recently, I discovered [Publish](https://github.com/johnsundell/publish), a static website generator that uses Swift, written by [John Sundell](https://swiftbysundell.com). The main idea is to declare all the pieces of your website like a...