1 simple trick to minimize the damage done from OOP: Make every method either final or abstract (no overrides).
-
-
Replying to @jdegoes
Disagree. Default methods, like default arguments, can take away a large amount of boilerplate. They can also specify a generally correct implementation that can later be specialized by a more efficient one, or one that preserves class-specific invariants.
2 replies 0 retweets 5 likes -
What techniques are you using to assure preservation of class-specific invariants in subclasses? I think that's were we get in trouble with OOP.
1 reply 0 retweets 1 like
Replying to @mikegehard @jdegoes
What techniques are you using to assure preservation of type-class specific laws in instances? Same old shit. Not all FP uses dependent types. Not all OOP is forbidden from using them.
3:30 PM - 4 Feb 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!