Lemmy Coupou.fr
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago

The Divine Trinity of JavaScript

lemmy.ml

message-square
10
link
fedilink
183

The Divine Trinity of JavaScript

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
10
link
fedilink
alert-triangle
You must log in or register to comment.
  • davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 year ago

    Biblically accurate programming language.

  • Flamangoman@leminal.space
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 year ago

    And in the case of 2024 year old baby Jesus, the Holy Spirit is… NOT the Father!

    • Darken@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      deleted by creator

  • ramble81@lemm.ee
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Transitive Property: Am I a joke to you?

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    15
    arrow-down
    3
    ·
    1 year ago
    ==
    

    Well there’s your problem, you’re using an operator that shouldn’t exist. Triple equals all the things and if you want to coerce types write it out explicitly.

    • mogoh@lemmy.ml
      link
      fedilink
      arrow-up
      17
      ·
      1 year ago

      While you are basically right, the problem is that there is an operator that should not exist. Though that is not the biggest problem of JavaScript.

      • deadbeef79000@lemmy.nz
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Surprise Type coercion is our greatest weapon!

        What about the limitless coffers of Rome implicit global scope?

        Well then, surprise type coercion and the limitless coffers of Rome implicit global scope are our greatest weapons.

    • Zagorath@aussie.zone
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      == is acceptable for null checks. And basically nothing else.

      • shrugal@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        It should probably be replaced with a more bespoke operator for that, like x isempty or something.

        • kinttach@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          1 year ago

          The ?? operator?

    • Justas🇱🇹@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      ["a"] + ["b"] = "ab"

      Goodnight, everyone.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 253 users / day
  • 1.75K users / week
  • 3.15K users / month
  • 10K users / 6 months
  • 1 local subscriber
  • 35.9K subscribers
  • 1.89K Posts
  • 39K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org