4 ms·
I guess I'm contrasting Python with my Java experience so far as banging out prototypes quickly. In Java, I don't think the type system gets in the way so much
by johnwheeler 10y ago
I guess I'm contrasting Python with my Java experience so far as banging out prototypes quickly.
In Java, I don't think the type system gets in the way so much as its classpath. It's been a long time since I've done Java, but you'd have to get your jars in order and write an ant or maven script to do the compile/run steps (or at least a bash script).
I like that with Python I can just do pip install whatever and begin using the module immediately in my main method. In Java, It's not standard practice to copy jars into the system classpath IIRC, so you'd have to copy them around every time you want to do something new.
I need to investigate Rust's command line interface. Obviously, the more it can get close to
python main.py
vs.
javac -cp foo/Bar.jar:baz/Quux.jar Main.java; java --classpath foo/Bar.jar:baz/Quux.jar Main
the better it will be for this use case I mention.
Thanks to both of you for responding!
- Cyph0n 10y agoI believe Rust's package manager, Cargo, is quite similar to pip in functionality. I haven't used it myself, so I could be wrong.
- steveklabnik 10y agoIn some ways. It's also got the features of https://github.com/pypa/pipfile https://github.com/pypa/pipfile
- jdright 10y agoIt is way better than pip on the sense it works everytime. pip is not painless. It is close but miss by little. Got to hate it because of numpy.
- DougBTX 10y agoCalling `cargo run` has made it easier for me to treat it as a scripting language since it combines the build and run steps in a single command. Good luck with it!
- deleted 10y ago[deleted]