Live data from Hacker News

Breaking up with Python

cedwards.xyz

51–60 of 179 posts

Re: Breaking up with Python

#52

I'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…

Python is the number one language in the world right now. Exactly the opposite of passe.

Re: Breaking up with Python

#53
post #18

> Python’s documentation sucks I can't agree with this. I have always had a very good experience with python documentation. One can use the built-in "help" function which works seamlessly with the docstring feature of the language. The complaint in the blog post seems to refer to the UI of the website missing a table of contents for functions. Yeah sure they could add that but I don't see it as a big point. > Python’…

Python class syntax sucks. Other syntax is mostly nice. List comprehensions etc are great, I really wish I had those in c++. Plus, I wish I had a similarly useful standard library, repl, and package manager in c++.

Re: Breaking up with Python

#54
If you try to please everyone you end up without personality. Python has plenty of flaws but it feels also as a very distinct way of solving a vast range of problems. But its longevity will depend on how well its community can address legitimate complaints (which do not require it become all things to all people)

Re: Breaking up with Python

#56
post #34

Pretty amazing success for the Python standard library to be labeled as barebones.

Yeah, that caught me off-guard, too. I agree, though, the urllib module that he links to it's not the best thing ever when it comes to Python, and I say that as a guy who has written Python code for a living for 17 years now. But other than that I find the standard library more than ok. The only thing that I can agree on is the slowness, but even that is relative, as we're not all writing speed-critical code. The typ…

Disagree on typing. Modern types, as evidenced by typescript, are very helpful and don’t incur significant verbosity cost. They are expensive in large projects during linting.

My personal recommendation is to use typing and mypy in all new code, coming from somebody who was celebrating new-style classes in 2.2.

Re: Breaking up with Python

#57
post #49

It's rich that the author unfavorably compares python's docs to go's. Go's documentation is barely more than API auto-doc level documentation: and many if not most of the open source projects using it have followed suit. It's some of the worst documentation out there, in my opinion.

On other hand that is often the part of documentation with Python I would love to have. And for a while I have missed with many python things.

Re: Breaking up with Python

#60

I'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 is not horrible for doing basic things or light weight things.

And after they learn those and have few fights. They might be ready to research what to choose for next project.

Post reply on HN