News for hackers. Stuff that matters.
Re:The Wrong Abstraction (2016) by pierrebai on Sunday July 05, 2020 @12:51PM (#23740047)
Checking for the type is the exact opposite of OO.

The correct OO would be to think about what the check represent, maybe abstract it in a base interface with pure abstract methods and derive from that interface.

What you describe is what people without understanding of OO do when they come from a language without OO.

There are no comments on this comment yet.