Personally, I’ve been pretty happy with python, I think it works wonderfully as a glue language (like bash); I.E: you shouldn’t write a lot of it, you should use it for plumbing. Its fantastic for that.
Breaking up with Python
41–50 of 179 posts
Re: Breaking up with Python
#42I've been recommending Python to the occasional aspirational young programmer. Is it already passé? What would you recommend instead for a starter language? Looking for beginner-friendliness, widespread use, and longevity. edit: to be clear, I hope this won't devolve into a language flamewar. I'm sincerely interested in other devs' opinions, and hoping that either Python is still a good recommendation (which seems to…
It allows to solve the menial tasks someone with no programmng experience usually needs to solve, can interact with HTTP/REST-like APIs, sometimes has the modules for a popular solutions, is object oriented, lax on the indentation *smirk*.
Re: Breaking up with Python
#43> ...
> Python sucks. I mean the syntax itself.
So author notices that syntax sucks afters years of usage?
Re: Breaking up with Python
#44I don't fully agree with these arguments, but they all have some validity. I really felt his point on the documentation - it's great that it's reference-complete if that's what you're looking for, but it's maddening if you are coming to something to find out what it does.
I often find myself typing python3 import some_module dir(some_module) rather than trying to find functionality on the docs sites anymore
ipython3
import some_module
some_module?
# or
some_module??
You can also type the object's name and hit tab to get a drop-down menu that will list its methods and attributes, like dir() with a better UX. Modules are objects, too.Re: Breaking up with Python
#45Python remains the most popular programming language worldwide.
Re: Breaking up with Python
#46The article mentions using JavaScript in place of Python. I use JavaScript a lot for browser stuff but can JavaScript be used for the random command-line scripts that I implement in Python? (Genuine question, not rhetorical.)
Re: Breaking up with Python
#47I have just started getting into python as I'm experimenting with pytorch and after a lot of googling I'm still trying to figure out how to use conda properly. Could anyone point me to the best way to manage python environments and packages?
I always recommend the hyper modern guide to python. https://medium.com/@cjolowicz/hypermodern-python-d44485d9d76...
Re: Breaking up with Python
#48I have just started getting into python as I'm experimenting with pytorch and after a lot of googling I'm still trying to figure out how to use conda properly. Could anyone point me to the best way to manage python environments and packages?
- `conda env create|list|remove` commands to manage them
- `conda activate ` to enter your environment
- `conda deactivate` to return to your base environment
If you want to use a conda environment in jupyter, you must install ipykernel and create a kernel definition for your environment:
conda activate
mamba install -c conda-forge ipykernel
ipython kernel install --user --name
In practice I have found anacondas environment management and usage to be pretty seamless.Re: Breaking up with Python
#49Re: Breaking up with Python
#50the packaging ecosystem alone is enough to make anyone mad. I maintained a production system in python for a few years a while back and code refactoring was extremely painful.
I hope I'll never touch python again.