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
[–] 7 points 1 year ago
[–] 7 points 1 year 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.

  • source
  • [–] 6 points 1 year ago (1 child)
  • [–] 6 points 1 year 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

  • source
  • [–] 4 points 1 year 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?

  • source
  • [–] 3 points 1 year ago

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

  • source
  • [–] 3 points 1 year ago*
    [–] 2 points 1 year ago* (last edited 1 year ago)

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

  • source
  • [–] 2 points 1 year 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.

  • source
  • [+] 1 point 1 year ago
    [–] -2 points 1 year ago

    python is worse than js, imo

  • source