Oh god I feel so called out. I wish I paid more attention to my commit messages but I’m usually too busy fixing the directory structure and refactoring. Sigh.
Honestly, I do disagree that the question is ambiguous. The lack of parenthetical separation is itself a choice that informs order of operations. If the answer was meant to be 9, then the 6/2 would be isolated in parenthesis.
It’s covered in the blog, but this is likely due to a bias towards Strong Juxtaposition rules for parentheses rather than Weak. It’s common for those who learned math into advanced algebra/ beginning Calc and beyond, since that’s the usual method for higher math education. But it isn’t “correct”, it’s one of two standard ways of doing it. The ambiguity in the question is intentional and pervasive.
I don’t know what you want, man. The blog’s goal is to describe the problem and why it comes about and your response is “Following my logic, there is no confusion!” when there clearly is confusion in the wider world here. The blog does a good job of narrowing down why there’s confusion, you’re response doesn’t add anything or refute anything. It’s just… you bragging? I’m not certain what your point is.
None of this has a point. We’re talking over a shitpost rant about common use of math symbols. Even the conclusion boils down to it being a context dependent matter of preference. I’m just disagreeing that the original question as posed should be interpreted with weak juxtaposition.
I originally had the same reasoning but came to the opposite conclusion. Multiplication and division have the same precedence, so I read the operations from left to right unless noted otherwise with parentheses. Thus:
6/2=3
3(1+2)=9
For me to read the whole of 2(1+2) as the denominator in a fraction I would expect it to be isolated in parentheses: 6/(2(1+2)).
Reading the blog post, I understand the ambiguity now, but i’m still fascinated that we had the same criticism (no parentheses implies intent) but had opposite conclusions.
I don’t think I’ve ever added the ability to filter via the text field on any search system I’ve built. Normally there’s checkboxes and categories though
I've been using Kagi for 2 months and swear by it. It might feel silly paying for a search engine, but I'm now the customer instead of the product, and I can customize my searches the way I want.
Which are often lacking. If I want to search for everything except brand X, I have to check the box for every other brand, which is a hassle. If I’m looking for “pirate costume” and I don’t want anything related to One Piece, there’s no checkboxes, or anything, to help me.
I think it’s just regular Operant Conditioning, but the reward of finding half a pie was so strong that the association will stick to this bush for a lot longer than if it was a smaller one.
programming.dev
Top