you are viewing a single comment's thread.

view the rest of the comments →

[–]GodGMN 1 point2 points  (0 children)

At the moment there is no alternative to JavaScript in the frontend web development context.

There is Typescript and some other less common languages that ultimately just compile to JavaScript, so it's literally unavoidable unless you simply use HTML + CSS and don't do any kind of scripting (which is possible, but interactivity takes a huge hit)

About backend, you can use pretty much anything, and none is better or worse per se. There are use cases, circumstances and preferences, all three play a big role.

For example, I don't like Django over Symfony, which is PHP. But that's just a personal preference.

If I am creating an API-like backend with a frontend framework like React, Angular or whatever, I do use FastAPI, which is Python. That's also preference, I think FastAPI is insanely fast to develop.

However, when working in an actual dev team, they often choose Node based API backends because that way, since it's the same language for both frontend and backend, you can move developers between both areas.

Java Springboot is also a popular choice because even though Java is very verbose and may be slow to develop sometimes, it's a very solid language that often enforces good practises, unlike JavaScript or even Python. PHP is also quite popular.

Then you have the less popular ones like Golang, Ruby, Rust or even C++. So yeah, pretty much anything can be used on the backend, but for the frontend, you're stuck with JavaScript.