Hacker News new | ask | show | jobs
by 908B64B197 1752 days ago
"Let's not use inheritance, it's complicated and could confuse programmers. Better to just copy-paste code."

"Source control? I don't know, this git command line is a little bit too much. Let's just use zip files and email the source"

3 comments

That is not what I am suggesting, but alas, you seemed to have proven my point. I did not write clearly enough, and behold the outcome. Now imagine if we all do this in a codebase.
Your writing was fine. HN is big enough that you can't take a single critical comment as strong evidence you were unclear. Maybe it's them, not you.
What were you suggesting?
I'm not sure if this comment was in jest or not but I've seen both of these things happen in real projects.
Inheritance is the worst method of code reuse ever invented. I virtually never use it, and whenever I do, I usually regret it later.