• acute_kernel_panic@lemmygrad.mlOP
    link
    fedilink
    arrow-up
    5
    ·
    4 days ago

    Fair point. I compared the most common usecases of python and JS.

    Writing some random desktop application with python is actually quite nice. Distribution is easy and if you use the type system properly it doesn’t really matter that it is not statically typed (with my 7 years of python experience I can assure you, most people don’t use it properly). The standard libraries are really good. Where it can be annoying is managing your environments, but if you somewhat know what your doing its also really easy. Where these applications get finniky is, adding an ui. You either gonna use tkinter which looks just awful, qt or GTK. If using the last two it gets really annoying to package them.

    With JS everything will be awful. As for UI you’d use electron which is arguably even worse than tkinter.

    As for writing web server with a Python Backend vs JS Backend I can’t really argue with you there. Node is literally made for that so yea. However python Webservers are not that bad as people make them seem. They are quite good. Go is the right tool for the job though

    Frontend is not a fair comparison, because you need to do sooo much fuckery to even get python support, and then you got a webassembly interpreter that still calls the JS Dom API shit.