3 ms·
Wow ... I usually lurk hackernews and don’t comment but I feel offended by this post. If he started with; say “in javascript” I’d agree completely. And I know
by username_my 9y ago
Wow ... I usually lurk hackernews and don’t comment but I feel offended by this post.
If he started with; say “in javascript” I’d agree completely.
And I know that unless you‘re writing code for others to use (SDK, os ..) you usually don’t need inheretance.
But for generations people overridden methods and no one complained about it... infact it’s a good idea in so many cases and easily any proper OOP class can protect it’s behaviour (see encapsulation ..)
The only impolitness I see here is someone refusing a very valid pattern in a very solid space just because it’s invalid in js (where a lot of things are invalid)