Read Accio – SwiftPM for iOS & Co. today!; Read Pure functions in Swift; Read Static factory methods in Swift; Read Using child view controllers as plugins in Swift, all three by John Sundell; Read NSHipster's post Optional, throws, Result, and async/await
Watched video Secret of 432Hz and Again about 432Hz. It’s about 432Hz vs 440Hz for la of first octave. Yes, I am trying to fill gaps in my knowledge about music for my new job.
Interesting post about expectations from Marzipan.
Passed again over Introducing CwlViews.
A limited iOS implementation was included as part of the MAVB chapter of the App Architecture book I wrote with Chris Eidhof and Florian Kugler, last year. Fun fact: much of the terminology in CwlViews was invented by Chris since the terms I initially used didn’t make sense.
The code that became CwlViews started with a simple question: why are view controllers not reusable?
Passed over Accio – SwiftPM for iOS & Co. today!. Not bad. But I will not use it.
This is actually a problem I have writing try
catch
code in Swift: Elementary Swift: Catching the Actual Error.
Passed over John Sundell’s post Pure functions in Swift. I like example of refactoring button logic from complex view controller into separate structure ReaderNextButtonLogic
.
Passed over Static factory methods in Swift of same author.
And Using child view controllers as plugins in Swift. I like idea of using LoadingViewController
, a subclass of UIViewController
, and using it as child view controller in any app that needs to show activity indicator. Never thought of such use of child view controllers. Definite, it’s better then using kind of BaseViewController
as parent for all controllers in app that need activity indicator. There’s even helpers there which simplify adding and removing child view controllers. I didn’t get another example with ErrorViewController
but nontheless, LoadingViewController
as child view controller is nice.
Nice answer to my issue to NSHipster post Optional, throws, Result, and async/await led me to Programming to an interface. Fair point:
Program to an interface, not an implementation