this post was submitted on 06 Mar 2025
26 points (90.6% liked)

General Programming Discussion

8104 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

I used to hate web frontend development. But now I'm realising I just hate JavaScript. Python is also interpreted meaning it can be hosted in a sandbox, also dymically typed, has dicts which baiscally use JSON syntax, supports multiple paradigms, etc. Instead of a language whose creators probably said "let's make this language we named after Java a million times worse than Java"

all 13 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 2 days ago

You're broadly going to have a bad time trying to force the wrong language for the job, fwiw.

You could always stop doing web frontend dev - there's plenty of other stuff in programming to do. If you're into UI dev, then modern native mobile dev runs on either Kotlin for Android or Swift for iOS, both of which are highly competent languages. Their modern UI toolkits are Jetpack Compose for Android and SwiftUI for iOS, both of which are reactive in the style of React, but unburdened by the shortcomings of JavaScript.

[–] [email protected] 7 points 3 days ago
[–] [email protected] 6 points 3 days ago (1 children)
[–] [email protected] 2 points 2 days ago (1 children)
[–] [email protected] 2 points 2 days ago

You can do front end with it too, albeit in a somewhat limited way.

[–] [email protected] 6 points 3 days ago

There have been attempts. With WebASM. There's even an interesting compiler for it. Not super fast, but potentially useful. Good luck with gaining traction though. https://wasmer.io/posts/py2wasm-a-python-to-wasm-compiler

[–] [email protected] 3 points 2 days ago

Isn't this what NaCl and WebAssembly was supposed to allow?

[–] [email protected] 4 points 3 days ago

random duck results include many sites claiming things like:

Convert your Python Code to Javascript. This exceptional AI-powered tool converts your Python code into Javascript code easily, eliminating the need for manual re-coding. Save your precious time and unlock cross-platform development like never before with our converter tool

what could possibly go wrong?

[–] [email protected] 3 points 2 days ago* (last edited 2 days ago)
[–] [email protected] 2 points 2 days ago

Not as popular as it used to be, but I still maintain some CoffeeScript apps... even write new code in it.

https://coffeescript.org/#introduction

You still have to know JS, but you might find it more palatable this way.

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)

This will become increasingly realistic as WebAssembly matures. In the meantime, my out-of-left-field suggestion is to check out ClojureScript.

[–] [email protected] -2 points 2 days ago

python is worse than js, imo