Re:The faster you unlearn OOP, the better for you and your s...
by scarface74 on Sunday November 25, 2018 @10:11AM
(#18527166)
I find the fluent style programming to be much more readable. But in OOP you would define an IHittable interface or use AOP like you suggested.
[ Parent
| on HN ]
Re:The faster you unlearn OOP, the better for you and your s...
by fenomas on Sunday November 25, 2018 @10:40PM
(#18530864)
You can define iHittable and get the code to compile, but it doesn't make the actual issue (polymorphism) any easier to tackle. I think eschewing inheritance in favor of aspects is definitely the way to go.
(Of course, you can wrap everything in a fluent-style interface either way - that part is orthogonal to all the rest.)