Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

Hi, expert here, calculators have nothing to do with it. There’s an agreed upon “Order of Operations” that we teach to kids, and there’s a mutual agreement that it’s only approximately correct. Calculators have to pick an explicit parsing algorithm, humans don’t have to and so they don’t. I don’t look to a dictionary to tell me what I mean when I speak to another human.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

There aren’t two different sets of rules. There’s the simple model that’s commonly understood and taught to kids, and there’s the real world where you have context and the dynamics of a conversation and years of experience with communication. One is well defined, the other isn’t.

Them asking me to solve the arithmetic problem is condescending, yes.

My response didn’t say “anyone who disagrees with the convention is stupid.” Here’s condescension for you: please don’t make your reading level my problem. What I said was, there’s an unambiguous way to parse the expression according to the commonly understood order of operations, but it is atypical to pay that much attention to the order of operations in practice. If you think that’s a value judgment, that’s on you-- I was very clear in my example about capitalization, “strictly adhering to the conventional order of operations” is something reasonable people often just don’t care about.

kogasa, (edited ) to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

Ah yes, simply “answer the question with an incorrect premise instead of refuting the premise.” When did you stop beating your wife?

That’s not what they asked me. I have no problem answering questions that are asked in good faith.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

Sorry your article wasn’t as interesting as you hoped.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

I have a masters in math, please do not condescend. I’m fully aware of both interpretations and your overall point and I’ve explained my response.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

There aren’t.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

My opinion hasn’t changed. The standard order of operations is as well defined as a notational convention can be. It’s not necessarily followed strictly in practice, but it’s easier to view such examples as normal deviation from the rules instead of an implicit disagreement about the rules themselves. For example, I know how to “properly” capitalize my sentences too, and I intentionally do it “wrong” all the time. To an outsider claiming my capitalization is incorrect, I don’t say “I am using a different standard,” I just say “Yes, I know, I don’t care.” This is simpler because it accepts the common knowledge of the “normal” rules and communicates a specific intent to deviate. The alternative is to try to invent a new set of ad hoc rules that justify my side, and explain why these rules are equally valid to the ones we both know and understand.

kogasa, to memes in 6÷2(1+2)
@kogasa@programming.dev avatar

It’s not ambiguous, it’s just that correctly parsing the expression requires more precise application of the order of operations than is typical. It’s unclear, sure. Implicit multiplication having higher precedence is intuitive, sure, but not part of the standard as-written order of operations.

kogasa, to dndmemes in don't. blink
@kogasa@programming.dev avatar

They already jumped multiple sharks with the Weeping Angels. I mean, the Statue of Liberty. I’d rather see a Dalek story any day

kogasa, to risa in Just get a bigger fence
@kogasa@programming.dev avatar

Well, he’s “wil” on Reddit. I imagine he’d have a “public” account here too even if he prefers a private alt.

kogasa, to programmerhumor in know the features of your language
@kogasa@programming.dev avatar

Yes it is

kogasa, to games in Developers blast the celeb-laden Game Awards as 'an embarrassing indictment of a segment of the industry desperate for validation… with little respect for the devs'
@kogasa@programming.dev avatar

They had a giant display that counted down from 30 and then changed to “PLEASE WRAP IT UP”

kogasa, to programmerhumor in know the features of your language
@kogasa@programming.dev avatar

Because you can turn null into an Option monad with a small amount of syntax sugar and static analysis

kogasa, to programmerhumor in know the features of your language
@kogasa@programming.dev avatar

It’s probably valid javascript that returns “-1” or the empty string depending on if “b” is undefined or null

kogasa, to programmerhumor in know the features of your language
@kogasa@programming.dev avatar

People ITT hating on null coalescing operators need to touch grass. Null coalescing and null conditional (string?.Trim()) are immensely useful and quite readable. One only has to be remotely conscious of edge cases where they can impair readability, which is true of every syntax feature

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines