3 ms·
Indentation breaks HN. Blockquote should not inherit from Codeblock. Please remove it and use > for quotes. > The `Car extends Vehicle` or `Duck extends Bir
by lonelappde 7y ago
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.
- CamperBob2 7y agoAgreed, 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.