3 ms·
I look mostly at JS and some Rust codebases and almost nobody uses inheritance! I believe it doesn't make any sense, you can use different patterns to have the
by jokethrowaway 3y ago
I look mostly at JS and some Rust codebases and almost nobody uses inheritance!
I believe it doesn't make any sense, you can use different patterns to have the benefits without creating a complicated type hierarchy where state and functions are mixed across different files.
Whenever I would use inheritance I use the builder pattern.