Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 63
May 18, 2021

How to catch bugs early on? How to prevent them from returning in a future build?

Not long ago, I've asked you on Twitter to provide me questions for this newsletter. If you have any, please reply to the thread above!

This week, I'm answering the question:

How to catch bugs early on?

It's something we all like to do, catch bugs as early as possible. Ideally, we wouldn't even have bugs.

The answer might be obvious, but it starts for me with writing tests. I often find myself writing tests, expecting them to succeed at first, realizing I've made a mistake. That's the first bug solved I would've had without tests!

Secondly, system design. I like to use draw.io to write out the feature I'm building. It's so often giving me insights into edge cases I didn't think about beforehand.

Lastly, I always try to write tests reproducing a bug before I fix them. This way, I'm making sure that we don't run into the same bug when changed a certain piece of code. A great gift to your future self!

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

The fileprivate and private keywords look similar but have a clear difference. You might not often need to use fileprivate, but it's good to know how it works and when you can and should use it.

TWEET OF THE WEEK

If you know what I mean with the title, you’re going to like this thread for sure!

SPONSORED

Become one of the highest-paid developers by achieving an expert level of practical iOS skills. Join a series of lectures and coding sessions given by Lead iOS developers in this free online course.

CURATED FROM THE COMMUNITY

CODE

I enjoyed reading this article by Dave ✨ on creating a router pattern for SwiftUI. If you’re writing your apps in SwiftUI, this can be a great inspiration for an app architecture focused on navigation.
A common question often asked by especially developers that are just getting started. Bruno Rocha shines a light on the importance of programming fundamentals and how it relates to larger companies.
You might have seen Dependencies, a Mac App released by Alexandre Colucci not long ago. This week, he wrote about adding command line support to an app distributed to the Mac App Store. An interesting read if you’re planning on something similar!

PRODUCTIVITY

I already liked this shortcuts website by Michel Van Heest, but now that it contains shortcuts for Xcode, I like it even more! The best part is that GitHub backs it, so you can collaborate and help improve if anything is missing.

WWDC

A fascinating article by Scoble, sharing his perspective on Apple’s relationship to VR/AR. Personally, I really believe in what he’s sharing and that we’re up for something big to come soon.

VIDEO

Vincent Pradeilles invited me over for another live session in which we’re going to play around with Result Builders! Introduced in Swift 5.4, they’re still relatively new and super interesting to dive into.
Last week, I had a live webinar hosted by Bitrise. It was super fun in which many valuable insights were shared about monitoring, including insights from Spotify’s app.