“How do you think when writing tests?” – It’s simpler than you may think
★ Register Now to Our Free iOS Career Course! https://www.essentialdeveloper.com/co... Subscribe to our channel: https://www.youtube.com/essentialdeve... In this episode, we reply to an important question raised by a member of our community. ► Question “I'm trying to understand how you think when writing tests. Do you just try to cover everything that comes to mind or you have some kind of list with priorities? Or you just try to reach max possible coverage?” ► Answer We follow the basics. Our main process is to write the test first, see the test fail (red), then write the minimum amount of code to make the test pass (green), then refactor the code/test if needed. By following this process, we end up with pretty high coverage (not always 100% but very close to it). The coverage is not a direct goal. The coverage is more like a positive side effect of following the process. With that said, it requires discipline and skill to always write the test first. You may get stuck in the beginning. We've been doing this for many years, and we still get stuck sometimes! However, the goal is never to be stuck for long. It's wasteful. At the end of the day, shipping is more important than testing first. When you're stuck, spike some ideas. Go free, without tests (or anything else) in your way. Play with the code (Xcode Playgrounds, Swift REPL, Debugging...) until you're unstuck and found the solution you are happy with. Then think, "now that I know what I want to build, how could I have written the test first?" When you have the answer, you can discard the spiked solution (commit the spike solution into a separate spike branch), and start fresh, by writing the test first. Next time you have to solve a similar problem, you know how to do it test-first without spiking. We practice, learn, and get a little bit better every day. The daily practice compounds! ★ Professional iOS Engineering Take your skillset to the next level and boost your career https://www.essentialdeveloper.com/pr... ★ Download our new app You can download Neat Trivia from the App Store today at https://itunes.apple.com/app/id125311.... Connect with us on: • Website: https://www.essentialdeveloper.com • Twitter: / essentialdevcom • Facebook: / essentialdeveloper

Careful With “Singleton” Lookalikes (WAY TOO COMMON)

Harvard Professor Explains The Rules of Writing — Steven Pinker

Many Advanced Developers Forget This

Stop Rambling: The 3-2-1 Speaking Trick That Makes You Sound Like A CEO

Unit Testing a SwiftUI application in Xcode | Advanced Learning #17

Trump Faces GOP Fury Over Iran Deal; Fox News Blames JD Vance; Iran Gets $300 Billion: A Closer Look

How safe are Swift structs?

John Sundell — Writing Swift code with great testability

How to Introduce Yourself — and Get Hired | Rebecca Okamoto | TED

Town Hall Audience Member - Key & Peele

Think Fast, Talk Smart: Communication Techniques

Composable Code Can Be Simple – Intro to dependency diagrams and composition

How to Crack iOS Interview Code Tests (Q&A) | iOS Lead Essentials Podcast #010

#1 Reason Why You Don’t Improve As a Software Developer

Hyper Focus Mode | Concentration Music Productivity | Work Focus Background | Deep Flow 2026

Most Leaders Don't Even Know the Game They're In | Simon Sinek

Inside the Mind of Anthropic CEO Dario Amodei | The Circuit | Extended Interview

Why Does MASS Create Gravity? The Answer Will DESTROY Your Understanding of Reality

SOLID iOS/Swift Apps: 5 ways to become a well-paid iOS dev faster | iOS Lead Essentials Podcast #005

