Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
TechCodex ( TechCodecPawx@programming.dev )  to Programmer Humor@lemmy.mlEnglish · 3 years ago

Javascript can create atomic bombs

programming.dev

message-square
21
link
fedilink
419

Javascript can create atomic bombs

programming.dev

TechCodex ( TechCodecPawx@programming.dev )  to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
21
link
fedilink
alert-triangle
You must log in or # to comment.
  • argv_minus_one ( argv_minus_one@beehaw.org ) Banned
    link
    fedilink
    English
    arrow-up
    41
    ·
    3 years ago

    Problem: Oppenheimer, unlike JavaScript, was actually competent.

  • Poob ( Poob@lemmy.ca ) 
    link
    fedilink
    arrow-up
    28
    ·
    3 years ago

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

    • KrankyKong ( KrankyKong@lemmy.ml ) 
      link
      fedilink
      arrow-up
      17
      ·
      3 years ago

      deleted by creator

      • Poob ( Poob@lemmy.ca ) 
        link
        fedilink
        arrow-up
        3
        ·
        3 years ago

        The only sites I can think of that don’t look like they use css are motherfuckingwebsite.com and bjarne stroustrup’s website.

        Any site that uses JS for more than trivial things is going to be a disaster without styling of some kind.

        • KrankyKong ( KrankyKong@lemmy.ml ) 
          link
          fedilink
          arrow-up
          2
          ·
          3 years ago

          deleted by creator

    • Avid Amoeba ( avidamoeba@lemmy.ca ) 
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      Maybe, but they don’t need to. You could write an HTML styling engine in JS if you wanted to.

  • GreenMario ( GreenMario@lemm.ee ) 
    link
    fedilink
    arrow-up
    20
    ·
    3 years ago

    Mid 90s HTML pre CSS:

    • lud ( lud@lemm.ee ) 
      link
      fedilink
      arrow-up
      6
      ·
      3 years ago

      Now it’s: I AM THE FLEXBOX!

  • corytheboyd ( corytheboyd@kbin.social ) 
    link
    fedilink
    arrow-up
    18
    ·
    3 years 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

  • WtfEvenIsExistence3️ ( WtfEvenIsExistence@reddthat.com ) 
    link
    fedilink
    English
    arrow-up
    9
    ·
    3 years ago

    Is this some highly sophisticated programmer humor that I’m too tech-illiterate to understand?

    • exscape ( exscape@kbin.social ) 
      link
      fedilink
      arrow-up
      19
      ·
      3 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 ( rikudou@lemmings.world ) Banned
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

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

        Don’t recommend, though.

        • exscape ( exscape@kbin.social ) 
          link
          fedilink
          arrow-up
          2
          ·
          3 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”.

  • Pxtl ( Pxtl@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 years 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 ( fragmentcity@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 years ago

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

    • RagingNerdoholic ( RagingNerdoholic@lemmy.ca ) 
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 years 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 ( wols@lemm.ee ) 
        link
        fedilink
        arrow-up
        4
        ·
        3 years 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.

        • CapeWearingAeroplane ( CapeWearingAeroplane@sopuli.xyz ) 
          link
          fedilink
          arrow-up
          3
          ·
          3 years ago
          • be easy to use correctly
          • be hard to use incorrectly

          C++ has entered the chat

          • Rikudou_Sage ( rikudou@lemmings.world ) Banned
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 years ago

            Which subset of C++ specifically? That thing’s ridiculously huge.

    • smileyhead ( smileyhead@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago
      <span>Please enable JavaScript to use this app</span>
      document.getElementById("noscript").style.display = 'none';document.getElementById("noscript-info-with-bold-text").style.fontWeight = 'bold';document.getElementById("status__content__text").textContent="JS ecosystem is all hack upon hack upon hack upon hack. We love hacks, but don't want to relay on them to access my bank or watch a movie. Just send me a webpage, not a soup of obfuscated, impossible to edit scripts that assemble god sake app. That's the reason we can't have new browser engines anymore, try to disable one wrong thing and whole app breaks. Browsers are made as interactive documents viewers, not disposable operating systems.";
      
    • TechCodex ( TechCodecPawx@programming.dev ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

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

    • smileyhead ( smileyhead@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      deleted by creator

    • trimmerfrost ( trimmerfrost@lemm.ee ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Quite a few

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

      deleted by creator

      • Rikudou_Sage ( rikudou@lemmings.world ) Banned
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        WAT

        Reminded me of this: https://www.destroyallsoftware.com/talks/wat

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

          deleted by creator

      • areyouevenreal ( areyouevenreal@lemmy.antemeridiem.xyz ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        deleted by creator

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
  • 41 users / week
  • 231 users / month
  • 1.72K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code