News for hackers. Stuff that matters.
Re:Can 1/3 and 1/3 = 2/6? It seemed so by tsimionescu on Tuesday May 26, 2020 @12:20PM (#23313037)
This does nothing to elucidate the problem. 1/3 apples + 1/3 oranges could be 2/6 fruits, or 2/781 fruits, or any other number you want. In normal mathematical notation, 1/3 is interpreted as 1/3 of 1, and in that case 1/3 apple + 1/3 orange is 2/3 fruit.

And of course this only works if 1 apple = 1 orange = 1 fruit, which means that they are the same unit of measure, or, equivalently they are of substitutable types. It's even debatable of it's correct to say that 'if I have 1/3 of an apple and 1/3 of an orange, I have 2/3 of a fruit', so depending on what you want to do with your apples, oranges and fruit, your hierarchy may in fact break Liskov substitution. For example, if 1 apple + 1 orange = 2 fruit, so 2 fruit - 1 apple = 1 orange, so 1 apple = 1 orange, which is not true.

Re:Can 1/3 and 1/3 = 2/6? It seemed so by p4bl0 on Thursday May 28, 2020 @03:09AM (#23334375)
You're being dishonest in your reasoning.

> In normal mathematical notation, 1/3 is interpreted as 1/3 of 1

Why would you deny the possibility of 1 being 1 list of fruits rather than 1 fruit?

In the original example, it was 1 table of students, not 1 student.

Everything you say after that is based on this broken assumption.