Re:Inheritance was invented as a performance hack
by d1plo1d on Friday April 30, 2021 @10:30AM
(#26993945)
Very true. I'm checks cloc 14,000 lines into a personal project and I have yet to feel any need to use `dyn` (virtual dispatching for non-Rust folks).
[ Parent
| on HN ]
Re:Inheritance was invented as a performance hack
by pierrebai on Friday April 30, 2021 @11:06AM
(#26994396)
"I've designed this project in Go following Go naturally imposed design patterns and found that I did not need inheritance.", said the Go programmer.
"Well, mmm, duh?", thought programmers of other languages.
"I've designed this project in Rust, following Rust-imposed design principles, and found monomorphism sufficient", said the Rust programmer.
"Well, mmm, duh?", thought programmers of other languages.
"I've designed this project in Python, using Python-style design and I've found that I did not need strictly typed functions", said the Python programmer.
"Well, mmm, duh?", thought programmers of other languages.
"I've designed this project in language X, which impose Y and as such I've found that you actually don't need Z", said the X programmer.
"Well, we got the picture already", said the HN reader.
Re:Inheritance was invented as a performance hack
by politician on Friday April 30, 2021 @12:27PM
(#26995580)
Absolutely, but the interesting bits are in the metrics. How many lines of code does it take in each language? How many distinct concepts are required for the solution? To what degree is the mastery of each concept required?