@kogasa@programming.dev
@kogasa@programming.dev avatar

kogasa

@kogasa@programming.dev

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

kogasa, (edited )
@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,
@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,
@kogasa@programming.dev avatar

There aren’t.

kogasa,
@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,
@kogasa@programming.dev avatar

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

kogasa, (edited )
@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,
@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, (edited )
@kogasa@programming.dev avatar

Calculators do not implement “what conventions are typically used in practice.” Entering symbols one by one into a calculator is a fundamentally different process from writing them in a sentence. A basic traditional calculator will evaluate each step as you enter it, so e.g. writing 1 + 2 * 3 will print 1, then 3, then 6. It only gets one digit at a time, so it has no choice. But also, this lends itself to iterative calculation, which is inherently ordered. People using calculators get used to this order of operations specifically while using calculators, and now even some of the fancy ones that evaluate expressions use it. Others switched to the conventional order of operations.

kogasa,
@kogasa@programming.dev avatar

“Which ruleset do you consider correct” presupposes, as the comment said, that there are 2 rulesets. There aren’t. There’s the standard, well known, and simplified model which is taught to kids, and there’s the real world, where adults communicate by using context and shared understanding. Picking a side here makes no sense.

kogasa,
@kogasa@programming.dev avatar

It’s not that it needs to be different, it’s that it is. The fact that there are calculators with fractional notation is completely irrelevant.

kogasa,
@kogasa@programming.dev avatar

You are literally so far removed from this conversation I don’t know what to do with you. Good luck.

kogasa,
@kogasa@programming.dev avatar

I have a masters in math and I have no fucking idea what a second course in “advanced trigonometry” looks like much less a fifth

kogasa,
@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,
@kogasa@programming.dev avatar

Pepe is SUPER racist. Peepo is kinda just doin his best.

kogasa,
@kogasa@programming.dev avatar

I once had the flu so badly I couldn’t get out of bed or yell for help. My parents put on “Flushed Away” (movie about some fuckin rats) on dvd and it looped at least 4 times before anyone came back to turn it off. One of my core traumas

kogasa,
@kogasa@programming.dev avatar

It’s nice to use though. I recently set up 2 VMs to act as Docker servers, one of which was Alpine (the other NixOS, as a learning project). It’s dead simple to set up and use. I was pleasantly surprised at how little I had to get used to considering musl + lack of systemd.

kogasa,
@kogasa@programming.dev avatar

Step 1: Install a Wayland compositor of your choice Step 2:

kogasa,
@kogasa@programming.dev avatar

For that matter, the real numbers are fake as fuck. “Ah yes, let’s just throw in uncountably many non-computable numbers.” They have played us for absolute fools.

kogasa, (edited )
@kogasa@programming.dev avatar

This is an interesting question. Instant acceleration is mathematically implausible, but I don’t know if there’s a better physical interpretation for what happens to a bouncing photon. I’m guessing this is one of those “less particle, more wave” situations where the instantaneous velocity of the photon is undefined.

According to some random internet sources, reflection is the not-quite-instantaneous process of the photon being absorbed and then emitted by the electrons in the mirror.

kogasa,
@kogasa@programming.dev avatar

Flatpak is fine. Snap is Canonical’s proprietary version, which ties you specifically to their app store. It’s not designed to be an open standard but Canonical has made it compulsory in one of the largest distros (Ubuntu) and its derivatives. There are also problems with its sandboxing mechanism competing with AppArmor.

kogasa,
@kogasa@programming.dev avatar

IMO every datetime should be in utc, and variables for datetimes should either be suffixed “Utc” or have a type indicating their time zone (DateTimeOffset or UtcDateTime etc). Conversion to local time happens at the last possible second (e.g. in the view model or an outbound http request parameter). Of course that doesn’t solve the problem of interoperating with other morons programmers who don’t follow these rules, but it keeps things a lot neater locally.

Scheduling based on regional time conventions (holidays, weekends, etc) is just not great though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #