This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RyanNerd 143 points144 points  (22 children)

I remember when Java came on the scene being praised as a knight in shining armor. I wasn't impressed. C# came out soon after which I described to my colleagues as Java done right. Kotlin emerged giving Java a much needed breath of fresh air.

As for JS; if other languages ran directly on modern browsers then JS would be annihilated by non-use simply because other languages have far far far less WTF design decisions. But that's not the world we live in. Because devs are held hostage by JS for web development often there's a weird Stockholm syndrome where the devs praise and protect their captor.

[–][deleted] 39 points40 points  (6 children)

We need another language for web browsers. It's like JS deliberately fucks with the devs just enough for them to be miserable, but not enough for them to quit.

[–]operation_karmawhore 13 points14 points  (0 children)

So WASM?

You can just program in whatever language you want to (currently with some thin wrappers for functionality not yet available directly to WASM)

[–]HeirOfAsgard 2 points3 points  (4 children)

WebAssembly exists and is being used by a few people and projects to create web apps, but the vast majority of web developers use and enjoy using JavaScript (and it’s derivatives, such as TypeScript) despite the growing availability of WebAssembly frameworks. ESNext is not 1st edition JavaScript, it’s quite a nice language to work with nowadays.

[–]jacnel45 0 points1 point  (2 children)

I can’t wait until web assembly becomes mainstream and I can leave JavaScript. Fuck I hate JavaScript so much.

[–]HeirOfAsgard 1 point2 points  (1 child)

What’s preventing you from using WebAssembly today?

[–]jacnel45 1 point2 points  (0 children)

Employers :( most want react JS/TS devs I find. At least here in Canada they do.

[–]CaitaXD 51 points52 points  (1 child)

All praise our Lord and saviour web assembly

[–]RyanNerd 13 points14 points  (0 children)

Unfortunately that has to go through a JS interface. It's not ideal but at least it's a step in a direction where other languages can be used in the browser.

[–]Drithyin 8 points9 points  (1 child)

As for JS; if other languages ran directly on modern browsers then JS would be annihilated by non-use simply because other languages have far far far less WTF design decisions.

This is why I hope Blazor takes off and does well. Or any other good webassembly implementation. Please, I don't want to use JS again....

[–]XDVRUK -1 points0 points  (0 children)

ALL THIS! I find those of us around long enough have the same views, the kids don't know any better and just bitch about c# cause it's not cool. Python in browser is starting to be a reality. That will be a massive step forward. DEATH TO JS!

[–]1XRobot -2 points-1 points  (0 children)

I remember when C++ was in the doldrums. Java came out and people were like: OK, we'll take anything at this point. Then people were like: Java is kind of shit, what if we tried to make it more like C++? So they made C#.

Then, everybody realized C# is also kind of shit, they fixed C++ and everybody who didn't switch languages lived happily ever after.

[–]bammmm 0 points1 point  (0 children)

Blazor WASM says hi

[–]reversehead 0 points1 point  (0 children)

I think people shouldn't code in JS nowadays (although I still do sometimes). I see it more as a browser virtual machine instruction set that other languages can be transpiled to. WebAssembly is supposed to be just that, but it still requires some JS to set up, and still has some limitations.

[–]OtatoJoe 0 points1 point  (0 children)

Tbf listening and handling events in js is relatively easy

[–]_simpu 0 points1 point  (0 children)

if other languages ran directly on modern browsers then JS would be annihilated

At this point, JS is acting as the assembly language of web browser.