746
you are viewing a single comment's thread
view the rest of the comments
[-] Ultra980@lemmy.world 31 points 1 year ago

I hate all these "hurr durr javascript bad" posts. It's really not so bad, and worse languages exist. It's really just a bad, overused joke.

[-] CanadaPlus 11 points 1 year ago* (last edited 1 year ago)

It’s really not so bad, and worse languages exist.

Esoteric languages do not count. Super obsolete ones don't either. At that point you're left with maybe PHP.

It’s really just a bad, overused joke.

Now that might be true. I guess the main counterpoint is that it's not like you never encounter it, so it's natural it gets joked about a lot.

[-] whatsarefoogee@lemmy.world 3 points 1 year ago

Yeah, I really don't know what widely used language is worse than Javascript besides php (which is hardly used in new projects).

[-] CanadaPlus 4 points 1 year ago

Weirdly, Kbin is written in it, though.

[-] qaz@lemmy.world 3 points 1 year ago

I can assure you that Laravel is still used for new projects

[-] magic_lobster_party@kbin.social 8 points 1 year ago

That’s one of the overused memes we can leave behind at Reddit.

[-] whatsarefoogee@lemmy.world 1 points 1 year ago

It is an overused joke, but it doesn't make it any less true.

[-] alokir@lemmy.world 6 points 1 year ago

I'd bet that most people who think this way either haven't used it in the last 10 years or they only know it from the memes.

[-] whatsarefoogee@lemmy.world 8 points 1 year ago

Nope. Use it very often, though mostly usually with typescript.

Raw Javascript becomes a massive hindrance in any project past half a dozen files and 1000 lines.

Typescript makes it a lot more usable.

[-] beejjorgensen 1 points 1 year ago

This was not our experience with raw JS programs in the 10k-20k loc range composed of scores of files.

[-] icydefiance@lemmy.world 5 points 1 year ago

The problem is refactoring. Want to rename a method? If the name isn't unique enough to search for, you can't do it. There's too much risk that you'll miss things and create severe bugs. Of course, that can be solved with really thorough unit tests, to some extent. But then you're just spending a lot of extra time writing tests for things that typescript will enforce automatically.

You also get much better autocomplete from the editor with typescript, which speeds up development a lot. You save a pretty huge amount of time if you don't have to constantly look through documentation or even dig through a bunch of code to figure out what methods are available and how to use them.

[-] alokir@lemmy.world 1 points 1 year ago

I agree, I also prefer Typescript, but I don't think I've ever seen a meme about JS not having strongly typed variables.

They either don't center around any specific problem or things that are also mostly true about TS.

[-] jedibob5@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

It does some funky things with type coercion and comparison which I don't particularly like, but I generally understand why it does things that way.

A lot of the weird quirks of JS come from the desire to avoid completely blowing up and crashing as much as possible, which makes sense in a web dev context. Forcing weird operations to at least return something can prevent an unhandled error state in a single component from causing an entire page to crash, even if that component ends up malfunctioning as a result.

[-] tool@r.rosettast0ned.com 1 points 1 year ago

Even now, the only thing that Javascript has going for it is that it's not Groovy...

[-] monk@lemmy.unboiled.info 2 points 1 year ago

It's really just a bad overused joke.

You've said that, not us =P

[-] Contortion@kbin.social 2 points 1 year ago

@Ultra980 try being a PHP dev :(

[-] Gork@lemmy.ml 2 points 1 year ago

The best languages allow you to program not just emojis as outputs, but with emojis themselves. 🫳⌨️🖥️

[-] nomadjoanne@lemmy.world 1 points 1 year ago

Not my favorite language, but I don't remotely hate it. The story of its creation is rather fascinating too.

this post was submitted on 18 Jul 2023
746 points (93.2% liked)

Programmer Humor

32302 readers
531 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS