lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 年前

Pick a side Javascript

lemmy.world

message-square
41
fedilink
672

Pick a side Javascript

lemmy.world

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

    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
      arrow-down
      1
      ·
      2 年前

      Found the senior dev

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      26
      arrow-down
      1
      ·
      2 年前

      … checks out.

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

      interpreter programming language

    • SpicyKetchup@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      10
      ·
      2 年前

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

      • morphballganon@lemmynsfw.com
        cake
        link
        fedilink
        English
        arrow-up
        25
        ·
        2 年前

        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 年前

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

    • Kraivo@lemmy.world
      link
      fedilink
      arrow-up
      32
      ·
      edit-2
      2 年前

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

      • where_am_i@sh.itjust.works
        link
        fedilink
        arrow-up
        26
        ·
        2 年前

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

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

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

        • amanaftermidnight@lemmy.world
          link
          fedilink
          English
          arrow-up
          11
          ·
          2 年前

          Ah yes, the fursons and furdaughters.

          • kus@programming.dev
            link
            fedilink
            English
            arrow-up
            11
            ·
            2 年前

            We prefer the gender neutral fur baby in this household.

            • pastaq@lemmy.ml
              link
              fedilink
              arrow-up
              4
              ·
              2 年前

              That’s ageist.

    • IGuessThisIsForNSFW@yiffit.net
      link
      fedilink
      arrow-up
      9
      ·
      2 年前

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

    • scottywh@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

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

    • Comment105@lemm.ee
      link
      fedilink
      arrow-up
      2
      arrow-down
      9
      ·
      2 年前

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

      • Konlanx@feddit.de
        link
        fedilink
        arrow-up
        77
        ·
        edit-2
        2 年前

        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 年前

          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
            arrow-down
            1
            ·
            edit-2
            2 年前

            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 年前

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

            • sociablefish@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              2 年前

              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 年前

            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 年前

          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 年前

          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 年前

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

  • Throwaway@lemm.ee
    link
    fedilink
    arrow-up
    24
    arrow-down
    2
    ·
    2 年前

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

  • Coreidan@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    4
    ·
    2 年前

    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 年前

      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 年前

        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 年前

          Meanwhile google is about to break the internet with html drm

      • JonEFive@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        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 年前

          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 年前

    NaN

    • Ddhuud@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      2 年前

      !NaN

      (Translation: I agree)

  • asdfasdfasdf@lemmy.world
    link
    fedilink
    arrow-up
    12
    arrow-down
    5
    ·
    2 年前

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

    • Moc@lemmy.world
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      edit-2
      2 年前

      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.

    • HarkMahlberg@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      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 年前

        deleted by creator

        • HarkMahlberg@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

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

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      2 年前

      deleted by creator

      • Kerrigor@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 年前

        Forced to develop on Windows

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          deleted by creator

  • terminhell@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    2 年前

    Hol’ up

  • royal_starfish@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    2 年前

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

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: [email protected]

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.

  • 1.09K users / day
  • 3.23K users / week
  • 8.01K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 24.9K subscribers
  • 1.56K Posts
  • 57.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org