Live data from Hacker News

I'm switching to Python and actually liking it

cesarsotovalero.net

711–718 of 718 posts

Re: I'm switching to Python and actually liking it

#711

Earlier quoted context omitted.

There's nothing to learn. Get Claude code to install uv into your devshell and cut over your requirements. 5 minutes.

AI? :vomit_emoji:

Not being comfortable with AI isn't a valid reason for being intimidated by new tech. At this point any developer should be able to write a command line simple tool using a language that's brand new to them in a couple of hours. Simply using a new tool for the first time is trivial. Don't get left behind.

Re: I'm switching to Python and actually liking it

#712

Earlier quoted context omitted.

AI? :vomit_emoji:

Not being comfortable with AI isn't a valid reason for being intimidated by new tech. At this point any developer should be able to write a command line simple tool using a language that's brand new to them in a couple of hours. Simply using a new tool for the first time is trivial. Don't get left behind.

I'd rather work in a different field than be forced to use a LLM or vibe code all day.

Re: I'm switching to Python and actually liking it

#713
post #79
post #71

Earlier quoted context omitted.

Can you elaborate bit what is the problem here? Is it shape of the characters or something else?

Amazing. If you need to ask this question I am guessing you have spent too long with Python . No other language uses this underscore madness for special methods or otherwise. Because it’s just , I don’t know a more appropriate word for it , stupid.

JS used to have those, now they are deprecated though:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

so it settled on having this syntax for similar cases using "Symbol":

class Foo { *[Symbol.iterator]() { yield 1; yield 2; yield 3; } }

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re: I'm switching to Python and actually liking it

#714

Earlier quoted context omitted.

If you use uv you are using virtual environments . You're merely being shielded from a few minutes worth of education about how they work ( https://chriswarrick.com/blog/2018/09/04/python-virtual-envi... ).

For some reason copying a venv directory causes problems with internal links. Fun all around.

The problem is twofold:

- all generated console scripts hardcode the path to python during creation for the shebang

- some of the binaries generated by install processes can link to absolute paths in the venv

Conda does quite a bit of work under the hood to reduce disk space and ran into related issues described here: https://docs.conda.io/projects/conda/en/stable/dev-guide/dee...

Re: I'm switching to Python and actually liking it

#715
post #708
post #689

Earlier quoted context omitted.

Here's the thing: there has never been a lack of people who have declared this problem as solved in the 20 or so years since Python started Poking its way into my professional life. (And for about 12-13 years before that I could gladly ignore it since nobody did much of anything in it). People have said this since the days of the Blackberry. Multiple times people have explained why they think whatever they are madly…

I would take a look at uv adoption. That's what makes it different. It nails everything that all the other tools have done and it does it fast. So it's been what people have been using for a while now. Even poetry never seemed to get this ubiquitous of support.

I'm not saying uv isn't catching on. I'm saying most Python software still doesn't use it and for meaningfully complete adoption to happen, a solution has to be the default solution, preferably included in the standard distributions of the language.

Re: I'm switching to Python and actually liking it

#716

Earlier quoted context omitted.

Not being comfortable with AI isn't a valid reason for being intimidated by new tech. At this point any developer should be able to write a command line simple tool using a language that's brand new to them in a couple of hours. Simply using a new tool for the first time is trivial. Don't get left behind.

I'd rather work in a different field than be forced to use a LLM or vibe code all day.

Do you feel that way about IDEs also? Or compilers?

Re: I'm switching to Python and actually liking it

#718

Earlier quoted context omitted.

I'm not sure how "operator+" is supposed to be appreciably different from "__add__".

They have different locality of behavior, for one.

And what makes one name "special" while the other is only "pseudo-special"?
Post reply on HN