News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by lonelappde on Saturday October 19, 2019 @01:00PM (#21299449)
Indentation breaks HN. Blockquote should not inherit from Codeblock.

Please remove it and use > for quotes.

> The `Car extends Vehicle` or `Duck extends Bird` type of tutorial obscures more than it illuminates. In good OO programming, we don’t make class hierarchies in order to satisfy our inner Linnaeus. We make class hierarchies in order to simplify the code by allowing different parts of it to be changed independently of each other, and to eliminate duplication (which comes to the same thing). Without any context as to what the code needs to accomplish, you can’t make a judgment about whether a design decision is good or bad.

Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by CamperBob2 on Saturday October 19, 2019 @06:18PM (#21301095)
Agreed, if the '1337 hax0rs at HN would implement quoting, then > would be a good way to express it.

As it stands, > does nothing on HN, so we're treated to endless complaints about people misusing code blocks for quoting. The complaints are valid, since code blocks don't work properly on mobile. Complain enough about either of these issues and they'll gripe at you for complaining. It never occurs to them that fixing the problems would avoid both the need for complaining and the need for griping. Oh, well, life goes on.