June 2018
Intermediate to advanced
310 pages
6h 32m
English
So, I decided that Michael should manage all those processes:
interface Manager { fun isAllGood(majorRelease: Boolean): Boolean}
Only he will know all the other birds:
object Michael: Canary, Manager { private val kenny = Kenny(this) // And all the others ... override fun isAllGood(majorRelease: Boolean): Boolean { if (!kenny.isEating() && !kenny.isSleeping()) { println(kenny.doesMyCodeWork()) } // And all the other logic I had in MyMind ... }}
I'll remember only him, and he'll do the rest:
class MyPeacefulMind(private val manager: Manager) { fun taskCompleted(isMajorRelease: Boolean) { println(manager.isAllGood(isMajorRelease)) }}
I'll also change my phone number, and make sure that everybody gets only Michael's:
class Brad( ...Read now
Unlock full access