It's an amusing coincidence that there's a Rust survival game and a Rust language, so when I'm to figure out what I need to install on a Debian machine to start coding,the advice I get back includes "Find a flat place to build. Kill some animals as soon as possible."
Conversation
Notices
-
mhoye (mhoye@mastodon.social)'s status on Friday, 08-Apr-2022 01:24:31 UTC mhoye - Santa Claes πΈπͺππ°π likes this.
-
Jonathan (jonbro@friend.camp)'s status on Friday, 08-Apr-2022 01:25:29 UTC Jonathan @mhoye oh yeah? I've been meaning to chase down a container system for python so that I can have all the required versions of it installed without the utter pain that I'm in with it now.
-
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Friday, 08-Apr-2022 01:25:29 UTC Santa Claes πΈπͺππ°π @jonbro @mhoye anaconda, pyenv and pyenv-virtualenv work wonders together.
conda create -p ~/.pyenv/versions/py310 βy python=3.10 pyenv virtualenv py310 myproject-py310 cd /path/to/myproject pyenv local myproject-py310 -
mhoye (mhoye@mastodon.social)'s status on Friday, 08-Apr-2022 01:25:30 UTC mhoye Gotta say, this is a major improvement over my first-touch experience with Python, which was "use a package manager to install a package manager to install a package manager so you can spray python dependencies all over your system and never know for sure what version of python you're running ever again", which I understand has maybe sort of improved since?
-
mhoye (mhoye@mastodon.social)'s status on Friday, 08-Apr-2022 01:25:31 UTC mhoye Consensus - by which I mean "the people who answered whose advice I have confidence in" - seems to be "you can do this, but it is mildly inconvenient to do so, and the Rust toolchain contains itself well enough that you don't need to."
-
mhoye (mhoye@mastodon.social)'s status on Friday, 08-Apr-2022 01:25:32 UTC mhoye Actually, serious question: can I use the Apt repositories for Rust development _at all_ or do I need to start doing the curl-and-contain dance?
-
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Friday, 08-Apr-2022 02:19:00 UTC Santa Claes πΈπͺππ°π Python is what it is, that's a far bigger nut to crack, but pyenv allows me to just cd into my project and run the code and it will run with the correct python version and the right packages installed. -
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Friday, 08-Apr-2022 02:19:00 UTC Santa Claes πΈπͺππ°π @mhoye @jonbro I'm sure the developer of pyenv really enjoyed getting all the details right, but for me as a user of pyenv that's not what it's about. It brings me great usability and saves me a load of time, effort and mistakes compared to manually activating virtualenvs or remembering to run `pipenv exec` or whatever the alternative method may be. And those still don't address the Python version, which pyenv-virtualenv does. -
mhoye (mhoye@mastodon.social)'s status on Friday, 08-Apr-2022 02:19:01 UTC mhoye @clacke @jonbro Respectfully, that looks like a very complicated way of tying aliases and envvars to shell builtins. There are a lot of tools in this space that exist because writing code is fun and understanding other people's code isn't, and this is a decent example of a problem where the right approach isn't to figure out how to solve it, but to figure out how to not have that problem in the first place.