If the power goes out, I won't be able to sustain myself. Does that mean I'm already a cyborg?
| website | https://mikeskoe.github.io/portfolio/ |
| website | https://mikeskoe.github.io/portfolio/ |
I like one quote from art, when talking about composition: "A good composition is not when there is nothing to add, but when it is nothing to remove".
I feel like it fits nicely to #programming
I like OOP. It represents the real world.
For example, I have a chair.
The chair can sit, accepting me as an argument.
Inheritance is legacy
@FiniteLooper instanceof nether support exhaustive check. Even if AB is a parent class (because there is no concept of sealed classes).
But now I am thinking that probably ‘switch (ab.constructor.name) {‘ would be more symmetrical to discriminated unions.