860
you are viewing a single comment's thread
view the rest of the comments
[-] arc@lemm.ee 8 points 4 months ago

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

[-] jol@discuss.tchncs.de 7 points 4 months ago* (last edited 4 months ago)

A 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>
[-] arc@lemm.ee 1 points 4 months ago

By that logic we should all program with .bat files

[-] jol@discuss.tchncs.de 1 points 4 months ago

Bash and bat scripts are really useful for that reason. You're making a bad generalization from my comment. But the premise from OP seems to be that a language's value is how hard it is to get started.

[-] Lysergid@lemmy.ml 1 points 4 months 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 2 points 4 months ago* (last edited 4 months 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.

[-] ReluctantMuskrat@lemmy.world 3 points 4 months 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!

[-] Seeders@sh.itjust.works 1 points 4 months ago

god damn right

[-] herrvogel@lemmy.world 2 points 4 months ago

Javascript is a beautiful language where '3' - 1 = 2 but '3' + 1 = '31'.

[-] Seeders@sh.itjust.works 1 points 4 months ago
[-] arc@lemm.ee 2 points 4 months 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.

[-] Seeders@sh.itjust.works 1 points 4 months ago

It's the greatest language on the planet.

this post was submitted on 13 Nov 2024
860 points (100.0% liked)

Greentext

5987 readers
1607 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS