Application programming interface should be minimal and able to perform all operations we require of it well. All implementation details should be hidden from client.
Minimal API will result in:
clear and understandable interface
minimal coupling between modules
concise unit and integration tests
Hidden implementation details will:
protect instance state from breaking
allow modifications as clients cannot use hidden interface
It will also cause builds to be faster (see Building Faster in Xcode WWDC 2018).
Application programming interface should be minimal and able to perform all operations we require of it well. All implementation details should be hidden from client.
It will also cause builds to be faster (see Building Faster in Xcode WWDC 2018).