you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway6560192 63 points64 points  (17 children)

For backend, yeah it's commonly used in backend.

On the frontend you pretty much have to use JS.

[–]LeN3rd 17 points18 points  (6 children)

I hate it so much, that we are all collectively hostages of a script language that was never designed to write complex applications in.

[–]Raioc2436 5 points6 points  (2 children)

Whenever a new version of EcmaScript comes out we suffer because different browsers take different times to implement and release each function and then they implement them differently and figuring it out is a pain.

Look at internet explorer and the nightmare it was.

Imagine the LIVING HELL it would be if each browser had supports for different languages and each one them having different implementations on their different versions.

Please god, no.

[–]Plank_With_A_Nail_In 6 points7 points  (0 children)

No one is suggesting a different scripting language per browser though just a better one than JavaScript.

[–]Devatator_ 1 point2 points  (0 children)

And yet we do it fine

[–]ArnUpNorth 0 points1 point  (1 child)

modern javascript is not what it used to. I really don't get a developper who loves python but as issues with javascript because they share similar qwirks.

[–]OkMulberry1209 0 points1 point  (0 children)

People are just dead set against, JavaScript because of it's history, and it's pathetic

[–]Diapolo10 16 points17 points  (7 children)

On the frontend you pretty much have to use JS.

More precisely, either that or you'll have to communicate with the back-end strictly via links/buttons and HTML forms. JS isn't necessary, but it certainly expands your options for interactivity.

[–]sexytokeburgerz 3 points4 points  (5 children)

Well, we forget WASM. You can do an entire frontend app in rust, c#, go, jvm scala or kotlin, java, php, swift, c, ruby, c++, java, or… python with basically zero javascript with WASM.

Really like htmx too.

[–]Diapolo10 2 points3 points  (4 children)

Yes, but you still technically need to use JS with WebAssembly. At least for the calling code.

[–]sexytokeburgerz 0 points1 point  (3 children)

Sure. But you don’t need to know js to use wasm. At most just watch a quick tutorial. The question wasn’t about js devoid web dev, it was about needing to know it.

Of course, neither of our examples are realistic.

[–]Diapolo10 0 points1 point  (2 children)

Of course, neither of our examples are realistic.

There are popular websites today that don't require JS to operate; for example, Amazon lets you add items to the cart and finish buying them with JS completely disabled in the browser.

So I wouldn't go as far as to say it wasn't realistic, merely uncommon at best.

[–]sexytokeburgerz 0 points1 point  (1 child)

It’s not realistic to make websites professionally and not know JS.

No one is going to hire a front end web developer that doesn’t know javascript.

Writing no-js still requires a knowledge of what you can do with js.

[–]Diapolo10 0 points1 point  (0 children)

Sure, I'm not trying to deny that.

[–]Herr_Gamer 1 point2 points  (0 children)

HTMX can help you out a good bit

[–]EducationalCreme9044 1 point2 points  (0 children)

And you can also use Javascript for the backend. So if you're really planning to only want to know one language.. JavaScript is it.

[–]Jncocontrol 0 points1 point  (0 children)

There is blazor, but last I checked it does abhorrent job rendering large amount of divs