• Poob@lemmy.ca
    link
    fedilink
    arrow-up
    44
    arrow-down
    1
    ·
    1 year ago

    This makes absolutely no sense. Front ends that include JavaScript still use css.

  • corytheboyd@kbin.social
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    1 year ago

    Would be funnier if it was just “JS” on the right, because obviously HTML and CSS are involved too, but JS is where all hell breaks loose

    • nalyd@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      1 year ago

      I’m not sure either, fork bombs are a thing you could probably do in JavaScript, but I don’t know of a thing called an Atomic Bomb in programming? I think if you put lots of atomic operations you’ve just reinvented single threaded programming but with more overhead

      • Avid Amoeba@lemmy.ca
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        1 year ago

        JS is Touring complete. You can write anything in it, including SkyNet or whatever else you can think of that will destroy the world.

        • Rikudou_Sage@lemmings.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          1 year ago

          I want my world destroyed fast, thank you very much. Do you want them to stop mid-murder to prolong your pain because they’ve ran out of RAM?

          Say no to JS Skynet, embrace C++ Skynet!

  • Pxtl@lemmy.ca
    link
    fedilink
    English
    arrow-up
    11
    ·
    1 year ago

    If you’ve seen the Barbie movie, there’s a scene where America Ferrera rants about the paradoxes in the expectations on women. The whole “be strong but not pushy” thing.

    That’s CSS.

  • fragmentcity@lemm.ee
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    4
    ·
    1 year ago

    How many people who post JS BAD memes could provide a single example of why it’s bad without looking it up?

    • thedeadwalking4242@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      It was made in 10 days, its type system is a mess, its syntactic shit, and there are just better replacements out there that will never see the light of day due to how big its already gotten

    • RagingNerdoholic@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      I use it regularly (web dev). A lot of complaints and mockery stems from using it badly. None of the programming languages that are regularly the butt of everyone’s jokes force you to use them badly, they just allow you to. If you follow good practices, you’ll be just fine.

      • wols@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Many of the programming languages that are regularly the butt of everyone’s jokes don’t just allow you to use them badly, they make it easy to do so, sometimes easier than using them well.
        This is not a good thing. A good language should

        • be well suited to the task at hand
        • be easy to use correctly
        • be hard to use incorrectly

        The reality is that the average software developer barely knows best practices, much less how to apply them effectively.
        This fact, combined with languages that make it easy to shoot yourself in the foot leads to lots of bad code in the wild.

        Tangentially related rant

        We should attack this problem from both directions: improve developers but also improve languages.
        Sometimes that means replacing them with new languages that are designed on top of years of knowledge that we didn’t have when these old languages were being designed.

        There seems to be a certain cynicism (especially from some more senior developers) about new languages.
        I’ve heard stuff like: every other day a new programming language is invented, it’s all just a fad, they add nothing new, all the existing languages could already do all the things the new ones can, etc.
        To me this misses the point. New languages have the advantage of years of knowledge accrued in the industry along with general technological advancements, allowing them to be safer, more ergonomic, and more efficient.
        Sure, we can also improve existing languages (and should, and do) but often times for one reason or another (backwards compatibility, implementation effort, the wider technological ecosystem, dogma, politics, etc.) old quirks and deficiencies stay.

        Even for experienced developers who know how to use their language of choice well, there can be unnecessary cognitive burden caused by poor language design. The more your language helps you automatically avoid mistakes, the more you can focus on actually developing software.

        We should embrace new languages when they lead to more good code and less bad code.

    • TechCodex@programming.devOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      The meme was not about bad or good… It’s about Colors (CSS = Barbie), and Complexity (JS = Oppenheimer)

    • Blimp7990@reddthat.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year ago

      WAT?

      also, humans are really bad at rote memorization and this is a bad metric for you to use, in life.

      Ask people on the street why NOx is bad. What about an easy one like methane? Or how about asking someone whether driving your car for 30 miles or eating a hamburger is worse for the environment (yes, its obviously the hamburger). Etc, etc, etc.

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

        2 equal signs will coerce the second operand into the type of first operand then do a comparison of it can. so 1 == “1” is true. this leads to strange bugs.

        3 equal signs do not do implicit type conversion, cuts down on weird bugs. 1===“1” is false.

        edit: it appears to be more complicated than that for double equals and the position of operands don’t matter. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality

      • axsyse@lemmy.sdf.org
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Identity. “A is literally B” instead of “A equals B”. This is necessary here in JS because if A is the string “-1” and B is the integer -1, JS evaluates A==B as true because reasons

        • ForbiddenRoot@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          because if A is the string “-1” and B is the integer -1, JS evaluates A==B as true because reasons

          Interesting. If it were the other way around, I think I would have been fine with it (i.e. == used for comparison with type like any other language and === without type). But as it stands now I would hate it if I had to write in JS (but I don’t so it’s fine).

          • Rikudou_Sage@lemmings.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            It’s not that bad, honestly, just something you get used to. When I switch to C++ after a while, I sometimes write === and when I switch back to JS after some time, I occasionally forget to use ===.

            In C++ it’s obviously an error and for JS I have my IDE set to warn me about ==. I think I’ve used == in JS (and PHP) intentionally once in the last ~5 years.