Gio Lodi 9/11/2018

Action focused protocols enhance testability

Read Original

This article discusses improving Swift protocol design for testability by moving from generic '-Type' suffix names to action-focused protocol names like 'PizzasGetter' and 'OrderMaker'. It explains how this enhances local reasoning and better aligns with Swift API guidelines, making code more maintainable and testable.

Action focused protocols enhance testability

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser