not digg
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Technoworcester@feddit.uk to Programmer Humor@programming.dev · 2 days ago

Well. That escalated quickly

feddit.uk

message-square
26
fedilink
116

Well. That escalated quickly

feddit.uk

Technoworcester@feddit.uk to Programmer Humor@programming.dev · 2 days ago
message-square
26
fedilink
alert-triangle
You must log in or register to comment.
  • themaninblack@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    CVE score 9.9 vuln: slide sign halfway in between

  • Technoworcester@feddit.ukOP
    link
    fedilink
    arrow-up
    31
    ·
    2 days ago

    • lefixxx@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      22 hours ago

      I can see why there are more pages with reworks

    • Technoworcester@feddit.ukOP
      link
      fedilink
      arrow-up
      32
      ·
      2 days ago

      • Technoworcester@feddit.ukOP
        link
        fedilink
        arrow-up
        37
        ·
        2 days ago

        • Technoworcester@feddit.ukOP
          link
          fedilink
          arrow-up
          38
          ·
          2 days ago

          • NullPointerException@lemmy.ca
            link
            fedilink
            arrow-up
            7
            ·
            2 days ago

            Fuck. I’m having nightmarish flashbacks looking at this. Hell.

          • otter@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 days ago

            Hmm, “atomic office” you say?

        • Unpigged@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          10
          ·
          1 day ago

          Lemma 1 mentions “definition of phi”, but the phi is never defined. Wtf.

          • NeatNit@discuss.tchncs.de
            link
            fedilink
            arrow-up
            6
            ·
            1 day ago

            OP posted the two pages in the wrong order, so you (and I) saw page 2 before page 1.

            • Technoworcester@feddit.ukOP
              link
              fedilink
              arrow-up
              4
              ·
              edit-2
              24 hours ago

              Oops. Sorry.

      • panda_abyss@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        2 days ago

        It did bother me there was no fall through.

        • otter@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          follow?

          • panda_abyss@lemmy.ca
            link
            fedilink
            arrow-up
            7
            ·
            2 days ago

            There’s no fall through case, it’s ambiguous what the room state should be

            • otter@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 days ago

              Oh, yes, sorry. Quick read. 🖖🏼

    • TomMasz@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Thank you.

  • webghost0101@sopuli.xyz
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

    I once wrote down a food recept in code style because it seemed like the most structured way to do so.

    • Colonel Panic@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      22 hours ago

      cooklang might be of interest for you then

    • Klear@quokk.au
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      Did you use this language?

    • Technoworcester@feddit.ukOP
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      Seems reasonable to me.

  • Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    2 days ago

    TypeError: unsupported operand type(s) for &: 'str' and 'str'

    • unalivejoy@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      comparison chaining strikes again!

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 days ago

      Idk it works for me.

      Also "8:00:00" > "10:00:00"

      • Arthur Besse@lemmy.ml
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        19 hours ago

        Idk it works for me.

        I don’t think there is any possible value for the sign variable which would make that if statement do anything other than raise a TypeError.

        Also "8:00:00" > "10:00:00"

        but "08:00:00" < "10:00:00". comparing timestamps as strings is weird but actually works, as long as the hour is zero-padded :)

        the problem with this code is that & (bitwise AND) has higher operator precedence than > and == do, so it is first trying to bitwise AND "10:00:00" with sign (which i’m assuming would also be a string) and that will always raise a TypeError.

        to do what the author appears to have intended to do, they would either need use parenthesis around both comparisons to actually bitwise AND their results, or (better) to use the boolean AND operator (and) instead of &.

        The boolean and operator is the right tool for the job, and since it is lower precedence it also wouldn’t require that any parenthesis be added here.

        • lengau@midwest.social
          link
          fedilink
          arrow-up
          2
          ·
          19 hours ago

          Heh you’re right, I didn’t catch the bitwise and, so I thought you were making a TypeError joke about comparing strings. Fixing the and though (which I did naturally when I typed it into my interpreter to double-check), we get the issue that they are just using a string for the time rather than a time object. “Too early” is also a valid entry that gets us an available office.

  • otter@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 days ago

    Anyone else pause on the ! for “…to use” vs the . of “…in use”?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 909 users / day
  • 4.16K users / week
  • 5.59K users / month
  • 15K users / 6 months
  • 1 local subscriber
  • 29.7K subscribers
  • 2.07K Posts
  • 32.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org