SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
TechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 2 years ago

Javascript can create atomic bombs

programming.dev

message-square
63
fedilink
607

Javascript can create atomic bombs

programming.dev

TechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
63
fedilink
  • WtfEvenIsExistence@reddthat.com
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    2 years ago

    deleted by creator

    • judgeholden@hexbear.net
      link
      fedilink
      English
      arrow-up
      31
      arrow-down
      1
      ·
      edit-2
      2 years ago

      deleted by creator

      • Scott@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        10
        ·
        2 years ago

        👏

        • starman@programming.dev
          link
          fedilink
          English
          arrow-up
          8
          ·
          2 years ago

          👏👏

          • HumanPerson@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            6
            ·
            2 years ago

            👏👏👏

            • 𝒍𝒆𝒎𝒂𝒏𝒏@lemmy.one
              link
              fedilink
              arrow-up
              7
              ·
              2 years ago

              👏👏👏👏

              • VicFic!@iusearchlinux.fyi
                link
                fedilink
                arrow-up
                2
                ·
                2 years ago

                👏👏👏👏👏

                • KIM_JONG_JUICEBOX@lemmy.ml
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  2 years ago

                  Little diddy bout Jack and Diane

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

        The real question is since when CSS is good?

      • SnowdenHeroOfOurTime@unilem.org
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        2 years ago

        ITs NoT StRoNgLy TyPeD aNd Is ThErEfOrE gArBaGe

        • starman@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          2 years ago

          Give me one advantage of language that isn’t strongly typed

          • SnowdenHeroOfOurTime@unilem.org
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            It’s not a debate I care to have, I just think it’s funny that people want to build websites but hate how websites are built.

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

            Fluent polymorphism via duck typing. It’s useful when you’re treating objects as a collection of properties, and therefore it’s not their type that matters but which properties they have. Types can still be used to label common collections of properties but it’s less painful to talk about objects that are “like an X but with/without certain properties,” or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification.

    • exscape@kbin.social
      link
      fedilink
      arrow-up
      24
      ·
      2 years ago

      CSS is used to create the design, basically the look (colors, layout and so on), but no substance.
      JavaScript is used to implement code and logic.

      HTML + JavaScript would typically (since you’re supposed to use CSS to create colors and design) look very dull, thus the black-and-white Oppenheimer.

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

        document.querySelector('.whatever').style.color = "red";

        Don’t recommend, though.

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

          Sure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.

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.

  • 157 users / day
  • 1.2K users / week
  • 2.57K users / month
  • 10.2K users / 6 months
  • 437 local subscribers
  • 35.8K subscribers
  • 1.73K Posts
  • 38.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org