• expletivedeleted@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    Dude sits next to me at work. He vibe codes. I could completely see him saying this.

    He is the same guy who struggled all day trying to figure out how to get a subnet mask between /22 and /23. I finally intervened because I overheard he was having a networking issue.

    “Dude, how the fuck do you get half a bit? Trying to use decimal points in binary?” The look on his face was goddamn priceless.

    • Zak@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      15 hours ago

      There are 10 types of people in the world: those who understand binary, and those who don’t.

      It is possible to represent binary fractions with a point. Support in programming languages is uncommon, but it exists:

      Welcome to Racket v9.3 [cs].
      > #b0.01
      0.25
      

      The size of a subnet is, of course always an integer regardless of what kind of numbers your tools can understand.