11

Python haters, gather 'round

oh come on... In java it's all simple as 123. You build an app, you have like 200 dependencies, you pack it all in a single fat jar and only deploy that single .jar. Don't need no internet, no installs, no pip, no nothing: just your .jar file and the JVM.

So java:
- build an app
- use 200+ deps
- build your whole project into a single fat jar
- deploy your jar in the env
- install [*khem khem* scp into the server] jre
- run

Now let's look at py, shall we?
- build an app
- use 1 dep
- deploy all the 20 .py files in the env
- make sure you have internet access
- install python
- install pip
- pip install <my dependency>
- run your app

Comments
  • 2
    @halfflat 'cuz java is simple and easy af? Just like the example in the post here?
  • 3
    ok, you'd then use cython and compile your python to c/c++ for whatever platform and rule that fat java all day everyday
  • 7
    When I use docker I do the same and don’t care about dependency hell.
    - make image
    - push to container registry or export
    - pull image from registry or import on any machine with docker and run like you want

    Use containers and leave servers alone.
  • 0
    @vane i like your approach, except I need the util I am building to be easily shell-scriptable. Ergo: easy to call, easy to deploy. Docker seems somewhat overkill..
  • 4
  • 0
    @jinx Brilliant, never heard of it before.
  • 1
    I love this counteracting post so much that I put it in my fav!
  • 2
    You still need Java installed. Use Rust, compile to machine code and never worry about runtime or dependencies ever again.
  • 2
    @olback Same with Golang
  • 2
    Uhm, you can pack your py deps into a wheel and deploy it without Internet. For the old eggs I don't know.
  • 1
    Ah yes the launguage that changes every singe fucking fuction and class every single version...

    Just use microsoft java and leave oracle java to power minecraft for the end of time.
  • 2
    @netikras
    deliver one fat jar? you fat bastard.

    Always deilver a zipped up version of your jar + another zip dependcy jars, packged with a script. So you don't have to redeploy a 1.6gb file every time!
    this way you only have to deploy your 15kb crappy java jar.

    ffs. stupid devs. every fuken time.
  • 1
    `pyinstaller --onefile` nice try oracle, i see right through your ruse
    now stop hijacking dR accounts and admit you're bad at making languages
  • 0
    @magicMirror 😁yeah right
  • 0
    pex's do the same thing for python, just saying
Add Comment