Testing & Refactoring existing iOS/Swift code, MVC vs MVVM, Singleton vs DI | iOS Dev Live Mentoring
/To become a complete Senior iOS developer, you need to learn how to refactor existing code with confidence...
But what does that mean?!
Refactoring is the process of changing the structure of the code without changing the behavior.
So true refactoring requires fast and reliable automated tests to guarantee the behavior hasn't changed.
But those tests shouldn't be coupled with the structure of the code. Otherwise, you won't be able to refactor (change the code structure) without breaking the tests.
That's why before making any refactorings in legacy code without tests, you need to add fast, reliable, and flexible tests that are not coupled with implementation details!
And as you add tests, you may even find bugs you didn't know about, as you'll see in this mentoring session...
So watch this iOS Dev mentoring session now and learn in practice how to:
Add tests to existing iOS/Swift code
Refactor from MVC to MVVM
Think in a test-driven approach to developing better solutions faster and with confidence
Understand Dependency Injection
Migrate direct usage of Singletons to proper Dependency Injection techniques to decrease coupling and facilitate testing (e.g., injecting protocols and closures via Initializer and Property injection)
And much more.
So hurry up and don't miss out. Watch it now!
References
- Working with legacy iOS codebases: architecture, testing, build times | iOS Dev Live Mentoring - https://www.essentialdeveloper.com/articles/working-with-legacy-ios-codebases-architecture-testing-build-times-ios-dev-live-mentoring