| ▲ | bccdee 4 hours ago | ||||||||||||||||||||||
> There are many paradigms and each one has its place. That's a thought-terminating cliché. The argument against inheritance has been laid out pretty clearly. It's reasonable to rebut that argument. It's not reasonable to say, "you shouldn't criticize inheritance because Everything Has Its Place." Everything does not have its place. Sometimes we discover that something is harmful and we just stop using it. | |||||||||||||||||||||||
| ▲ | lucketone 3 hours ago | parent | next [-] | ||||||||||||||||||||||
Em.. I’m quite nitpicky and want to do the opposite of “thought-terminating”. I’m for encouraging best practice, but most things do have its place. I present to this court two examples:“premature optimisation is root of all evil” and “goto statement considered harmful”. Both well accepted as things should be avoided for good reasons (incl. but not limited to, preserving sanity of coworkers) But both definitely “have its place”. First one’s place is legitimized (with nuance) by author himself in second part of same sentence. The latter one (goto) is routinely used by linux devs (random example: https://github.com/torvalds/linux/blob/master/fs/ext4/balloc...) > we just stop using it. We minimise/restrict the usage. | |||||||||||||||||||||||
| ▲ | bigstrat2003 4 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
> Sometimes we discover that something is harmful and we just stop using it. And that is not remotely the case here. So yeah, there are many paradigms and each has its place. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | FpUser 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
>""you shouldn't criticize inheritance" I was not talking about criticizing. Valid critique us useful and deserved. And this concerns composition as well as any other area. I was talking about crusades by programmers. | |||||||||||||||||||||||