FREE TRIAL: Accelerate your app development career with Hacking with Swift+! >>

How should you approach testing in Swift?

Recorded – watch the full episode on YouTube.

Where are you with testing now? Have you any tips on how to start?

Sean Allen: I'm looking at it through the window, like it's right there, I'm reaching for it. We're still not fully involved in testing yet, but we're getting closer. Let me just say this thing about learning: learning evolves over time. I think a lot of beginners can try to put too much on their plate right away, some five years in my career and hadn't even really tackled testing.

I'm not saying that's the right thing to do by any means, but I don't think I'm a horrible programmer because I haven't tackled testing. It's absolutely a skill that I need to tackle. I know it's a hole in my game. I recognize that. But I think forgiving yourself and letting yourself learn over time and evolve as a programmer is the way to go in my opinion.

“Read some books, do some tutorials, put it into a practice project. I like to fill the holes anywhere that I feel like I'm weak. And I feel like now's the time to fill that hole, just do nothing but that for the next X amount of time.”

So if you're uncomfortable, you're getting a lack of confidence, running clean testable code, just work on it. Again like I had mentioned in the closure example, if that's your pain point, you're self conscious about that. Like that weighs on your confidence. Focus on that for the next two weeks, read some books, do some tutorials, put it into a practice project.

I like to fill the holes anywhere that I feel like I'm weak. And I feel like now's the time to fill that hole, just do nothing but that for the next X amount of time.

This transcript was recorded as part of Swiftly Speaking. You can watch the full original episode on YouTube, or subscribe to the audio version on Apple Podcasts.

Listen on Apple Podcasts

Hacking with Swift is sponsored by Essential Developer

SPONSORED From August 2nd to 8th you can join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer!

Save your spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

BUY OUR BOOKS
Buy Pro Swift Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift (Vapor Edition) Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Server-Side Swift (Kitura Edition) Buy Beyond Code

Was this page useful? Let us know!

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.