Jon Reid is committed to helping iOS developers create Clean Code. He has practiced Test Driven Development since 2001, and is the author of OCHamcrest and OCMockito. Check out Jon’s blog Quality Coding.
Test Driven Development seems like a good idea… for simple code that has no dependencies. But iOS code depends on Foundation, UIKit… we're doing a lot of networking and UI… you may think that TDD just doesn't work in such cases (thus eliminating most of your code). But that ain't so! In this talk, Jon Reid will show you how to turn dependencies around so you can write code that is testable. We'll look at tests, dependency injection, stubs and mocks, and an example of testing networking code.
(Level: Introductory —no prior TDD experience required.)
Like riding a bicycle, TDD is something you learn by doing. In this hands-on workshop, we’ll start out with a simple exercise to learn the basics of the TDD Waltz. Then we’ll make things more complex, work with a view controller, and finally discuss ways to tackle legacy code. Bring your laptop!
Untamed MVC leads to “massive view controller”. While MVVM is a popular alternative among iOS developers, Jon will show his favorite approach: Model View Presenter.
Untamed MVC leads to “massive view controller”. While MVVM is a popular alternative among iOS developers, Jon will show his favorite approach: Model View Presenter. In particular, Jon will show how you can refactor your way there.