4 ms·
I most of the time writing crummy firmware in C. You can do inheritance in C and it always feels like an antipattern. In C# mostly never unless a library requir
by Gibbon1 6y ago
I most of the time writing crummy firmware in C. You can do inheritance in C and it always feels like an antipattern. In C# mostly never unless a library requires it. Especially since C# has generics without type erasure.
I think inheritance is a bad solution to the problem of wanting to call foo's baz() method or access a property. Been way long since I poked at Ruby or Javascript but I thought those languages allow you to do that without inheritance. If so why would you even bother 99.9% of the time.