this post was submitted on 06 Mar 2025
27 points (90.9% liked)

General Programming Discussion

8279 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 6 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
[–] Wojwo@lemmy.ml 7 points 1 month ago
[–] GissaMittJobb@lemmy.ml 7 points 1 month 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.

[–] troyunrau@lemmy.ca 6 points 1 month 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

[–] keinBloudsinn 6 points 1 month ago (1 children)
[–] parlaptie@feddit.org 2 points 1 month ago (1 children)
[–] Diplomjodler3@lemmy.world 2 points 1 month ago

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

[–] adarza@lemmy.ca 4 points 1 month 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?

[–] fubarx@lemmy.ml 3 points 1 month ago* (last edited 1 month ago)
[–] KingThrillgore@lemmy.ml 3 points 1 month ago

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

[–] davel@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

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

[–] TARgz@lemmy.world 2 points 1 month 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.

[–] vrighter@discuss.tchncs.de -2 points 1 month ago

python is worse than js, imo