Rodrigo Maximo
Apr 20, 2021

--

Great Article!

I've really enjoyed the proposal of contexts combined with closures. I agree with you and clearly see the two main advantages: get errors in build time (which is a great advantage considering the time UI tests get to be executed) and also the easier possibility to have a screen ramifications tests.

Finally, a suggestion that maybe could help with the pyramid of doom is considering to use PromiseKit to have promises instead of closures. I really think it could be helpful, but you still would need the helper functions inside each .done {} promise :)

--

--

Rodrigo Maximo
Rodrigo Maximo

Written by Rodrigo Maximo

Lead Mobile Engineer at Nubank |  iOS Engineer

No responses yet