News for hackers. Stuff that matters.
Re:Post-Architecture: Premature Abstraction Is the Root of A... by fenomas on Thursday July 18, 2024 @08:42PM (#41001093)
I'm not a big thinker on such things, but my general rule is that subtyping is okay only for implementation details.

I.e. it's okay for ConsoleLogger to be a subtype of Logger, but PaidUser probably shouldn't be a subtype of User.

Re:Post-Architecture: Premature Abstraction Is the Root of A... by green_dee on Friday July 19, 2024 @04:19PM (#41010675)
So interfaces > modelling

ConsoleLogger is a Logger because they share a method (log), PaidUser and User can have some common things, but I don't think it's only in the way it behaves, but also in the way you contact/use them