Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago

Pick a side Javascript

lemmy.world

message-square
41
fedilink
709

Pick a side Javascript

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago
message-square
41
fedilink
alert-triangle
You must log in or # to comment.
  • stevehobbes@lemmy.world
    link
    fedilink
    arrow-up
    232
    ·
    edit-2
    2 years ago

    Jennifer is a lesbian. Her wife, now husband, who she’s proudly supportive of, is FtM, with 3 previous children that Jennifer adopted. Jennifer has never had penetrative sex with a man.

    • iAmTheTot@kbin.social
      link
      fedilink
      arrow-up
      132
      ·
      2 years ago

      Found the senior dev

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      26
      ·
      2 years ago

      … checks out.

    • ℕ𝕠𝕓𝕠𝕕𝕪 𝕆𝕗𝕗𝕚𝕔𝕚𝕒𝕝 ✔️@lemmy.my.id
      link
      fedilink
      arrow-up
      10
      ·
      2 years ago

      interpreter programming language

    • SpicyKetchup@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      This would make her not a lesbian after her husband transitioned.

      • morphballganon@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        25
        ·
        2 years ago

        Depends. Could be. A person transitioning doesn’t necessitate their partner finding their new body attractive.

  • SingularEye@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    97
    ·
    2 years ago

    artificial insemination; beard marriage, loves her husband platonically. I am a JS dev.

    • Kraivo@lemmy.world
      link
      fedilink
      arrow-up
      32
      ·
      edit-2
      2 years ago

      Lesbian, in marriage with another lesbian and adopted 3 kids. Still virgin.

      • where_am_i@sh.itjust.works
        link
        fedilink
        arrow-up
        26
        ·
        2 years ago

        Her partner is actually a woman, but dynamic type casts made her write “husband”.

      • ℕ𝕠𝕓𝕠𝕕𝕪 𝕆𝕗𝕗𝕚𝕔𝕚𝕒𝕝 ✔️@lemmy.my.id
        link
        fedilink
        arrow-up
        14
        ·
        2 years ago

        and by kids, she means their cats and/or dogs

        • amanaftermidnight@lemmy.world
          link
          fedilink
          English
          arrow-up
          11
          ·
          2 years ago

          Ah yes, the fursons and furdaughters.

          • kus@programming.dev
            link
            fedilink
            English
            arrow-up
            11
            ·
            2 years ago

            We prefer the gender neutral fur baby in this household.

            • pastaq@lemmy.ml
              link
              fedilink
              arrow-up
              4
              ·
              2 years ago

              That’s ageist.

    • IGuessThisIsForNSFW@yiffit.net
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      I was thinking they were his kids from the previous marriage, though artificial insemination works just as well!

    • Comment105@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Java devs are prima mental gymnasticists, always able to make anything make sense.

      • Konlanx@feddit.de
        link
        fedilink
        arrow-up
        77
        ·
        edit-2
        2 years ago

        JS !== Java

        Try Javascript some day!

        • We have truthy and falsy! Empty string or null? Yeah, that’s false!
        • Of course we can parse a string to number, but if it’s not a number it’s NaN!
        • null >= 0 is true!
        • Assign a variable with =, test type equality with == and test actual equality with ===. You will NEVER use the wrong amount of = anywhere, trust me!
        • Our default sort converts everything to string, then sorts by UTF-16 code. So yes, [1, 10, 3] is sorted and you are going to live with it.
        • True + true = 2. You know I’m right.

        Try Javascript today!

        • Durotar@lemmy.ml
          link
          fedilink
          arrow-up
          14
          ·
          2 years ago

          Our default sort converts everything to string, then sorts by UTF-16 code. So yes, [1, 10, 3] is sorted and you are going to live with it.

          I’m not sure whether this is satire or not.

          • Konlanx@feddit.de
            link
            fedilink
            arrow-up
            59
            ·
            edit-2
            2 years ago

            It’s not. The default sorter does that, because that way it can sort pretty much anything without breaking at runtime. You can overwrite it easily, though. For the example above you could simply do it like this:

            [3, 1, 10].sort((a, b) => a - b)

            Returns: [1, 3, 10]

            • newIdentity@sh.itjust.works
              link
              fedilink
              arrow-up
              5
              ·
              2 years ago

              Holy shit that’s actually true. I just tried it

            • sociablefish@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              2 years ago

              The default sorter does that, because that way it can sort pretty much anything without breaking at runtime.

              who the fuck decided that not breaking at runtime was more important than making sense?

              this js example of [1, 3, 10].sort() vs [1, 3, 10].sort((a, b) => a - b) will be my go to example of why good defaults are important

          • sociablefish@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            who uses utf 16? people either use utf 8 (for files) or utf 32 (for string class O(1) random access)

        • Comment105@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 years ago

          I made the thing in the thing print “hello world” with C# once, is Javascript for me?

        • Beanie@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          True + true = 2. I’ve heard memes about Javascript, but jeez. It’s really that bad?

      • SouthernCanadian@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        As a js dev, I will gymnastically take that as a compliment

    • scottywh@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I’ve had a JavaScript certification for over a decade now and I think I hate you.

  • Throwaway@lemm.ee
    link
    fedilink
    arrow-up
    24
    ·
    2 years ago

    Simple. Malformed data from.a bad actor. Always sanity check your shit.

  • Coreidan@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    2 years ago

    If you have that much difficulty with JavaScript then it’s likely you’ll suffer with any language.

    • MakeAvoy@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Except strict equality, that’s a JavaScript only problem. Imagine thinking "0" should be falsy in comparison due to string literal evaluation, but truthy with logical not applied based on non-empty string. Thus !"0"=="0" is true. They couldn’t just throw away == and start over nooooo let’s add === . Utter madness

      • soloner@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Browser compatibility. Design flaws can’t easily be fixed like how other languages can just switch to a new major version and introduce breaking changes. ES must keep backwards compatibility so has had to do more additive changes than replacing behavior altogether so that older web pages pages don’t break.

        • MyNameIsIgglePiggle@sh.itjust.works
          link
          fedilink
          arrow-up
          7
          ·
          2 years ago

          Meanwhile google is about to break the internet with html drm

      • JonEFive@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Strict vs loose equality has gotten me so many times, but I can sort of see why they did it. The problem you mention with integers 0 & 1 is a major annoyance though. Like it is fairly common to check whether a variable is populated by using if (variable) {} - if the variable happens to be an integer, and that integer happens to be 0, loose quality will reflect that as false.

        But on the other side, there have been plenty of occasions where I’m expecting a boolean to come from somewhere and instead the data is passed as a text string. “true” == true but “true” !== true

        • MakeAvoy@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Lua does intrinsic evaluation of strings that i’d argue is not nearly as crazy. I get the value of it since half of interpreted languages it just churning through strings. But I also don’t recommend any large codebase ever use JS’s == or string coercion because it can go against expectations. This graph argues in JS’s favor but comparison is a little more crazy https://algassert.com/visualization/2014/03/27/Better-JS-Equality-Table.html

  • Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 years ago

    NaN

    • Ddhuud@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 years ago

      !NaN

      (Translation: I agree)

  • asdfasdfasdf@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    Any senior developer who says that should instantly get a demotion to intern.

    • Moc@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      edit-2
      2 years ago

      There are two kinds of simple

      • Simple to learn to use
      • Simple to understand, and use at a complex level.

      JavaScript is the first, but definitely not the second.

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 years ago

      deleted by creator

      • Kerrigor@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        Forced to develop on Windows

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          deleted by creator

    • HarkMahlberg@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Which part? Saying that it’s simple, or making fun of saying that it’s simple?

      • ImpossibleRubiksCube@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        2 years ago

        deleted by creator

        • HarkMahlberg@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Haha, ok I didn’t see which community this was posted in.

  • royal_starfish@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    And I thought kotlin was crazy with whatever (modifier: Modifier = Modifier) means to make it happy

  • terminhell@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Hol’ up

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.

  • 2.52K users / day
  • 5.07K users / week
  • 8.48K users / month
  • 19.6K users / 6 months
  • 197 local subscribers
  • 25.5K subscribers
  • 1.63K Posts
  • 60.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org