5 ms·
Mostly she is known for the Liskov substitution principle (LSP), contravariance of argument types and covariance of the return type. Many OO languages/designer
by rurban 7y ago
Mostly she is known for the Liskov substitution principle (LSP), contravariance of argument types and covariance of the return type.
Many OO languages/designers still don't get that right.
https://en.wikipedia.org/wiki/Liskov_substitution_principle https://en.wikipedia.org/wiki/Liskov_substitution_principle
"FUNCTIONS THAT USE POINTERS OR REFERENCES TO BASE
CLASSES MUST BE ABLE TO USE OBJECTS OF DERIVED CLASSES
WITHOUT KNOWING IT." - https://web.archive.org/web/20151128004108/http://www.objectmentor.com/resources/articles/lsp.pdf https://web.archive.org/web/20151128004108/http://www.object...
- dang 7y agoPlease don't use allcaps for emphasis on HN. It's basically yelling. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=by%3Adang%20emphasis&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- rurban 7y agoIt's not for emphasis, it's a literal citation from the URL.
- dang 7y agoOk, but it's the convention here not to post entire sentences in uppercase, even if they appeared that way in the original. It's the same with titles; some titles are typeset in uppercase, or come from older documents where that was the convention. We edit those for the same reason: in the context of a text-based internet forum, allcaps is like yelling.
- chess_buster 7y agoExcept in direct literal quotes.
- ZenPsycho 7y agoisn't it also the convention not to bicker about the rules in the comments?
- blotter_paper 7y agoExcept in direct literal quotes.
- rurban 7y agoYes, generally I'm with you not to shout or let other people shout. But in this case I thought it was appropriate to let him shout.
- deleted 7y ago[deleted]
- blotter_paper 7y agoBoth links you provided are about emphasis. GP was not using caps for emphasis, they were using caps in a direct quote. I totally get where you're coming from on the yelling thing, but it doesn't apply to GP's comment by my reading of the guidelines.
- scott_s 7y agoA charitable reading would allow that if the guidelines are saying to not use all caps for emphasis, then it's guiding against all caps in general. There's a reason they are called "guidelines" and not "rules."