News for hackers. Stuff that matters.
Re:Escaping from Anaconda (Python) by zahlman on Thursday August 29, 2024 @10:28AM (#41391171)
This should be read in the context of the next article (https://paulromer.net/environment-as-code/) for full understanding.

That said, I'm not a huge fan of the approach described. It's leaning a bit too much on Wittgenstein's Ladder for my taste, but more importantly it's putting concepts out of order. The article seems to dismiss virtual environments as more complex, but they really aren't that bad - they're honestly easier to work with than the approach the author discovered organically, of creating "real" environments by repeatedly reinstalling Python and setting up dependencies from a requirements.txt file. This glosses over the hard part of populating the requirements.txt file, while also not building the necessary conceptual framework to understand dependency graphs (and thus lockfiles).

I was especially bothered by the fact that this advises blindly moving a file around using the GUI without trying to understand the purpose of that file, and describing what Anaconda does as "taking over the system". While I'm sure that works, if students are in the position described then they should learn fundamental developer skills first. I.e.:

> There is a lot to learn when you are getting started. Try out virtual environments later, when you are ready. If you do not know how to edit a file, run a command from the terminal, and have pip install libraries from a requirements.txt file, you are not ready.

It takes mere minutes to learn these skills, and they should have been taught way before exposing the student to anything that actually justifies setting up Anaconda. There are countless interesting projects for students that don't require third-party libraries at all, let alone the SciPy stack (and even that installs just fine with Pip nowadays anyway).

It's also indefensible, IMO, to say:

> python3.11 and python3.12 are examples of major versions.

> python3.12.4 and python3.12.5 are minor versions.

While I understand the impetus ("Python 3 is the brand now"), this is simply incorrect, and incompatible with how every relevant extant piece of documentation uses the terms (including for tools like Pip that will immediately become relevant to the student).

Re:Escaping from Anaconda (Python) by VHRanger on Monday September 02, 2024 @03:03PM (#41427963)
Calling 3.11 vs 3.12 a major version change is incorrect in orthodox semantic versioning terms.

However, for python, it makes sense. A bunch of code breaks in 3.12 vs 3.11, for instance. Also, python 2 vs python 3 are very incompatible at this point, and it's been a split over a decade old.

Re:Escaping from Anaconda (Python) by extr on Monday September 02, 2024 @03:18PM (#41428063)
Spoken like someone who has never had to teach non-programmers from complete scratch. Yes it would be ideal to spend hours setting up the conceptual framework for environment management. But now you’re teaching a “Python conceptual frameworks” course instead of whatever you were originally supposed to talk about (usually some specific package or workflow). It’s liable to be frustrating and feel irrelevant for people who are not and will not be career programmers. Better to get going quick and circle back around to that stuff if/when necessary and it’s properly motivated.

This is why R actually really great btw, R/RStudio make it insanely easy to “just get going” with a package installer UI.

Re:Escaping from Anaconda (Python) by greazy on Monday September 02, 2024 @03:47PM (#41428255)
Agreed this is why R up take is so high compared to python in non CS fields. But I've seen people quickly hit a bottleneck of deps hell and flounder because the tools RStudio provides are (imo) not great. Posit (Rstudio) was too heavily invested in their IDE. I'm glad to see them branching out into (see their up coming ide positron).
Re:Escaping from Anaconda (Python) by YWall39 on Monday September 02, 2024 @04:39PM (#41428615)
yes, number 1 reason why the researchers around me pick R. RStudio just works.

I had to run someone's 10 year old R workflow last week. Ran perfectly.

Last years python code will not run unless someone was careful enough to make a requirements.txt. Try explaining that to the non computer scientists. My python support colleague runs into that constantly. She is not a happy support person.

Re:Escaping from Anaconda (Python) by hot_gril on Tuesday September 03, 2024 @02:04AM (#41431755)
Same with NodeJS. The way it does package management is more "Pythonic" than Python. Even importing your own files is simpler, just relative paths instead of the __init__.py and packages.
Re:Escaping from Anaconda (Python) by hot_gril on Tuesday September 03, 2024 @02:05AM (#41431763)
I still find it useful to describe some things as "taking over my computer," or in other terms, "I don't fw that." Sure I can if I need to, but I have more important things to take care of. This is why Python projects come with Dockerfiles.
Re:Escaping from Anaconda (Python) by promer on Tuesday September 03, 2024 @02:28PM (#41437655)
Thanks for pointing out this error.

You are correct that the post misused the terms major version and minor version.

I'll fix it, and note the error and your catch, because

- I don't want to spread misinformation; and

- the right thing to do is to acknowledge the contributions that others make.