14

I know I rag on Javascript, but this is actually how I see it. It always did what I needed, but I am not enamored nor dismayed by it. I think the technology behind it is pretty cool too.

Comments
  • 4
    Python is fine.
  • 3
    I feel like Fine ans Shit should be swapped in this meme :)

    If you are unexperienced and dumb, you see it as shit. If you are very experienced and intelligent, you see it as shit.
    Most devs are quite regular with average experience and intelligence. And they find JS fine.
  • 2
    As long as you don't get hit by the many many weird gotcha in JS, then its fine.
  • 3
    I actually picked my brain a bit this week while dealing with bullshit nestjs and typeorm, and managed to shit out a decently half baked generic API controller with full typescript support, and without bullshit eval nor code gen tools.

    Kinda similar in concept to c++ variadic templates and anonymous classes.

    Managed to reduce my client's codebase size by 80%. (And secure me the gig longtime cuz I don't think their node devs can tinker with it on their own.

    Must agree that while, of course, dealing with clownshit was frustrating, as always, I kinda enjoyed the process, and now I can say I have a much more in depth knowledge of the shenanigans typescript does.
  • 3
    @magicMirror Kind of like trying to not get hit by water drops during a rain storm.
  • 2
    lmao, same. I just don't get what the endless complaining is about. Skill issue, maybe?
  • 5
    Every language has its place. JS is a very brief and syntactically elegant glue language. It’s excellent for mapping the data you got from the server into the UI. It’s also a good glue to get your DB a rest api. It’s reasonably fast for both roles.

    Node.js has a C++ module api for a reason. If you need to crunch numbers, just write your number crunching algo in C++ and connect it to Node as an external dependency. You can also spawn subprocesses in both node and browser. Right now I’m making an online image compressor, and the compressor part is written in C++ and compiled to WASM. It works fine and almost as fast as the same tool used as is from the terminal.

    You don’t judge a fish by its ability to climb trees.
  • 1
    @kiki fair. Though the problem is that js is also used for business logic for whole apps or backends.

    I’m not judging the fish by its ability to climb trees.
    I’m judging people trying to make fish climb trees and pretend like there is nothing wrong with that or don’t realize what the problem is.
  • 1
    @Lensflare about the fish: yes, I agree, and that analogy wasn’t directed to what you said. It was directed to the same people you were talking about.

    I write business logic in JS. Because a SQL database is always the backbone behind every single application that serves a business, JS layer becomes rather thin. Anyway, it works for me for years now
  • 0
    @kiki as you have said, it‘s a glue language.
    If we talk about the language being shit or not, it doesn‘t mean that it doesn‘t work. It‘s Turing complete and of course it works. Working is the absolute bare minimum that it has to be. The question is if it‘s shit or fine.
    It‘s also completely irrelevant if that language is the only choice. Shit is still shit, no matter if have alternatives or not.
    Using a loosely typed scripting/glue language for anything else than scripting and gluing is shit. That‘s true for every language. JS is shit because of a lot of other reasons on top.
  • 3
    All languages are actually fine. People just like to bitch, me included.
  • 3
    @lungdart I just want to have language wars.
  • 0
    @lungdart absolutely not.
  • 0
    @Lensflare you are talking about Brainfuck aren't you?
  • 1
    @Demolishun brainfuck is better than js. It‘s a joke language just like js is but at least it‘s free of bullshit and nobody uses it for serious things, besides clowns maybe. JS is a joke that most people didn‘t get.
  • 1
    @Lensflare "sometimes life is what happens after the joke" Jedi Gym

    Not sure I got the quote right. Old video from youtube.
  • 1
    I don't find js offensive, but it is bad at a few things that can't be ignored
  • 1
    @Lensflare well... yes.
    But I would have use the Fan and the Brown Sticky substence metaphor.
    Or as t. Prachett wrote one: "and then the midden has hit the windmill"
  • 2
    javascript is a decent compile target, but a terrible language.

    and as compile target, it's become obsolete the day that webassembly was conceived.
Add Comment