• arc@lemm.ee
    link
    fedilink
    arrow-up
    8
    arrow-down
    5
    ·
    1 day ago

    Could be worse, could be programming Javascript (or Typescript).

    • jol@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      ·
      23 hours ago

      An text file with a <script> block and nothing else, containing a console log, is all you need. You already have all the boilerplate to run it in any computer. No extra dependencies, no installing anything. Literally just a notes editor app. This is a valid HTML file:

      <script>
      console.log("Hello World")
      </script>
      
      • Lysergid@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        18 hours ago

        I think you forgot to pollyfill your console.log and now you have some error in some script in some callback

    • Seeders@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      19 hours ago

      I love javascript. Shit. Just. Works.

      Even if you, the programmer, are a complete fucking moron, by god javascript will try to make your program run as long as possible.

      • arc@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        Javascript doesn’t “just work”. It’s a language originally designed to glue actions to html elements and it is fundamentally broken in ways that will be never be fixed. Weird syntax, weird type coercion, horrible base types & functions, surprises galore. Even Typescript, which is basically a precompiler, is just JS with some type checking. The only reason anyone uses either is because it is ubiquitous - people have to use it.

      • ReluctantMuskrat@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        16 hours ago

        Even if you, the programmer, are a complete fucking moron, by god javascript will try to make your program run as long as possible.

        I mean it might not work as intended but it’ll run and not complain!