• 0 Posts
  • 38 Comments
Joined 3 years ago
cake
Cake day: August 2nd, 2023

help-circle
  • I completely agree with the general assessment, but then there are always pesky exceptions. In this case the list entered a JavaScript frontend from the yaml header of machine generated content pages for the website framework Hugo. And, of course, after finding the bug, it is clear that things could have been done differently and the issue easily avoided, but I also don’t think this was a completely unreasonable design. Since Hugo actually supports JSON headers (not just via the yaml parser, but thanks for that tip!), that was a quick fix. But I’m also somewhat amazed that it was possible for the strung-together fairly standard set of Python libraries (primarily pyyaml) to not get the strings properly quoted.


  • backgroundcow@lemmy.worldtoProgrammer Humor@programming.dev•TOML
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    9 months ago

    Just the other day I had a list show up as [“a”, “b”, “c”, “d”, “e”, false, “g”, “h”, “i”].

    The issue was that, without me being overly aware of it, the data was going through a data -> yaml -> data step.

    Yes, the data -> yaml filter was broken for not putting general strings in quotes. But IMO the yaml design invites these odd “rare” bugs.

    I used to like yaml, but was happy to see Toml taking the niche of human-readable-JSON, but felt the format for nested key-value was a weird choice. However, I’ve always felt we could just have extended JSON a bit (allow line breaks, comments, if the outermost data type is an object, the curly brackets may be omitted).




  • Time travel as a sudden jump seems one of the least plausible implementations, since we have no idea how to do such jumps even in just space or forward in time; and allowing for it would break a lot of physics.

    More plausible alternatives include a space-time bridge, meaning both sides can follow Earth’s reference frame; or the Primer-type where one can reverse time in an isolated box in a way where you can only travel backwards along the Box’ trajectory and you have to wait inside that box for some time while you move backwards in time along that trajectory.


  • I think you have pinpointed the core issue.

    Right-wing republican policies and ideas lends themselves to simple (but often wrong) models of explanation; “it is the fault of the immigrants; the poor; abortion is always immoral”, etc. You get candidates that radiate confident leadership spewing simple talking points they believe in.

    Left-wing, especially progressive, ideas are often rooted in insight into the incomplete understanding we have of the underlying complexities. People who navigate these ideas won’t be as confident: “the cause is a bit of this and a bit of that; we don’t really know, but research points at” etc. To confidently sell policies based on these ideas to voters requires a level of cognitive dissonance, and also opens for criticism on being indecisive.

    How can we package left-wing ideas in a way that attracts voters who are swayed by simple ideas presented with absolut confidence?


  • Even knowing the “correct answer” to this riddle for as along as I remember, I don’t think it is right. For someone looking for how to handle this in an interview, I’d go with this:

    I will fetch a friend or colleague to look at the bulb as I test the switches because:

    • It is by far the most obvious solution that literally everyone faced with this problem actually would use. It is easy to understand and will be easy to explain to others (if you, e.g. need to present or document what you did).

    • It is also a better solution: it is by far more robust against a large number of failure modes: e.g., if it turns out you are testing the wrong switch, the bulb is broken, more than one switch turn on the light, etc.

    • It scales better: the same solution trivially extends to N number of lightbulbs controlled by M number of switches; and at large N it will save time not having to reach each bulb.

    • It gives the opportunity to interact positively with a friend/coworker. Helping each other out with small necessary tasks builds team cohesion and work environment, and thus lowers the barrier for further collaboration, making us a more effective team in the longer run.



  • (Spoilers, obviously)

    Nothing confusing about TENET at all, huh? In the very first scenes a guy gets reverse shot by a bullet embedded in the side of the stairs of an opera, and the bullet is “sucked” into the muzzle of a gun, and the ugly hole in the stairs goes away.

    In our forward moving time: what is the origin of that hole? When did it appear? Has it been there since the opera was built? Did the people building these stairs do that with a big ugly hole in it, possibly with an embedded bullet? If not, where and when did it come from?

    The thing is, the whole premise of forward+backwards moving things sharing the same reality falls apart if you stop to think about it for a minute.










  • MasterCard’s and Valve’s statements seems to point at Stripe and PayPal as the ones who folded to the pressure. These payment processors then cited MasterCard’s rules to back up their change in policy.

    MasterCard now clarifying that the payment processors are over-interpreting the rules and anything legal is ok seems a very good thing here. Valve should be able to go back to Stripe and PayPal with this and say: “Hey, you’ve misunderstood the rules you are quoting; MasterCard themselves say anything legal is ok, and that is the exact policy we’ve been using!”



  • The only reason this is “click bait” is because someone chose to do this, rather than their own mental instability bringing this out organically.

    This is my point. The case we are discussing now isn’t noteworthy, because someone doing it deliberately is equally “impressive” as writing out a disturbing sentence in MS Paint. One cannot create a useful “answer engine” without it being capable of producing something that looks weird/provoking/offensive when taken out of context; no more than one can create a useful drawing program that blocks out all offensive content. Nor is it a worthwhile goal.

    The cases to care about are those where the LLM takes a perfectly reasonable conversation off the rails. Clickbait like the one in the OP is actually harmful in that they drown out such real cases, and is therefore deserving of ridicule.