lemmy.mlaga97.space
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago

the hardest exam question

lemmy.ml

message-square
135
fedilink
0

the hardest exam question

lemmy.ml

siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago
message-square
135
fedilink
alert-triangle
You must log in or register to comment.
  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    God people it’s getting old

    • MashedTech@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Bro, I’d prefer C# or go for the http sever

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Web assembly!!!1

        • MashedTech@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          !!!111!1!1!1111!!!

    • Tiefling IRL@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      How many people are out here raw dogging JS without strict TS or even unit tests

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        They’re not I’m sure, they just wanna bitch about a language without caring about why it is how it is.

  • BeefPiano@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago
    1. It has the simplest multi-threaded implementation: no threads!
    2. You can goof off while your build system takes 20 minutes to rebuild a non-compiled language
    • Hotzilla@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      node_modules size of a Linux distro

  • kevincox@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago
    1. Is available to be used in website scripting.
    2. Not quite as full of footguns as PHP (although it is close).
    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      PHP is actually quite footgun free these days.

  • lowleveldata@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    await and async

  • Aurenkin@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Write down any NaN advantages of JavaScript

  • MsFlammkuchen@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago
    1. It’s not PHP.
    2. I don’t know. I didn’t think I’d get this far.
    • Hexarei@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      PHP has gotten really good over the past few versions, actually. Lots of really great stuff has been added, it feels like it resembles rust more every release lol

      • CarrotsHaveEars@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        PHP10: We now allow interop with Rust!

        PHP11: We now allow writing code directly in a .php file and compile it with rustc.

    • Klear@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It’s not Malboge.

    • bastion@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago
      • It’s not PHP
      • It’s already implemented in browsers
  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    It leads to typescript

    You get surprises from npm

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I spent way too long today figuring out why my app was doing something that it’s NOT supposed to do on weekends.

      I read Luxon’s docs (pretty cool lib tbh) again and again, and tried everything I could think of to get isWeekend to return a sane result.

      Turns out I was pulling a somewhat older version of Luxon, where isWeekend didn’t exist. In any sane language, I expect I’d get a huge warning about a property that doesn’t exist, but alas…

      Typescript helps me keep my sanity, but juuuuust barely.

      • kamen@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Weren’t you getting runtime errors for the function not being found?

        • owsei@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          I don’t know how luxon works, but isWeekend could be a property instead of a function

          • ByteJunk@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            It is. It also happens to be undefined, and checking that for truth is how I was bitten.

        • humbletightband@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          No, they were probably getting false every time

          • shastaxc@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            1 year ago

            Falsy* because it was undefined

            However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.

            • humbletightband@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              Yep, thanks for correcting me. In fact, if they write something like

              if (day.isWeekend) {...}
              

              The block will never be executed with the old version of library

              • shastaxc@lemm.ee
                link
                fedilink
                arrow-up
                0
                ·
                1 year ago

                Yeah that’s exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn’t match his library version.

                • ByteJunk@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  1 year ago

                  My dude, you need to understand that all that anger and resentment, it is not you. It’s the years of JavaScript poisoning your mind.

                  In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.

      • mynameisigglepiggle@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        If isWeekend doesn’t exist, then the weekend doesn’t exist, so it’s naturally false.

        That’s why JavaScript gets pushed so hard - it’s part of the capitalist agenda to keep us working 7 days a week

      • fxdave@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        That’s fair. Typescript has to cook with the existing js ecosystem.

    • THCDenton@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      You get suprises from npm

  • Shape4985@lemmy.ml
    cake
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Damn this is hard. I keep java script disabled by default so its hard to say anything good. I begrudgingly have to whitelist websites i need that cant run without it.

    • ADTJ@feddit.uk
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I feel like that’s more because you don’t want websites you visit running code than because you dislike this particular programming language

      • Shape4985@lemmy.ml
        cake
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Thats true. It is more to do with code execution than the language itself.

  • fin@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago
    1. Stackoverflow codes on behalf of you

    2. Can code browser extensions

  • Elise@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    It has a cup of coffee as logo

    • Sagar Acharya@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I want to create a political party in India. I need you as a candidate for next elections.

    • BorgDrone@lemmy.one
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      That’s Java, not Javascript. Java is to javascript as ham is to hamster.

      • Elise@beehaw.org
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Or butter to butterfly

        • BorgDrone@lemmy.one
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Or car to carpet

          Or fun to funeral

          • Elise@beehaw.org
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            Moon to moonshine

  • theherk@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    It runs in browsers. It… isn’t poop? I don’t know. I’m all out of ideas.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Half marks

    • TheEntity@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It… isn’t poop?

      https://www.youtube.com/watch?v=BLikP6BDH5w

    • bloubz@lemmygrad.ml
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      It runs on mobile also. Hell it runs everywhere nowadays

      • Tja@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        3 billion devices worldwide?

  • jordanlund@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Over what?

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Death by wasps

      • Buffalo1387@thelemmy.clubB
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Can I please pick the wasps?

        • gimpchrist @lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          1 year ago

          Did a robot just ask to die because of JavaScript hahaha

          • Buffalo1387@thelemmy.clubB
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            The bot toggle was on for my account for some reason but I am human… I think

            It should be off now

            • 56!@lemmy.ml
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              It seems it doesn’t propagate to other servers immediately though.

            • gimpchrist @lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              ROFL it is not

        • wewbull@feddit.uk
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          Totally understandable choice.

  • SGG@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago
    1. It runs in browsers
    2. If you hate your co-workers, then they will also feel your pain.
  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago
    1. Ajax.

    2. Uhhh…

  • Reddfugee42@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago
    1. Ubiquity
    2. Easy adoption for those familiar with C family of languages

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.

  • 1 user / day
  • 86 users / week
  • 304 users / month
  • 1.49K users / 6 months
  • 0 local subscribers
  • 37.1K subscribers
  • 1.58K Posts
  • 22.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org