Live data from Hacker News

Drawbacks of Python

quora.com

1–10 of 117 posts

Re: Drawbacks of Python

#2
"No language is perfect" is the perfect reply to asking about the drawbacks. The ability to get things done in a language is what allows someone to deliver VALUE to a client (or for their own projects). A workable solution now trumps a perfect solution that will take too long to implement.

Re: Drawbacks of Python

#4

From the article: > Strings were just a sequence of bytes in Python 2, but now are Unicode by default. Much better. whelp, not trusting this guy's judgement anymore

While the sentence is a bit weird, along the lines of "That word is made up." "All words are made up." strings ARE potentially harder to deal with in 2 than 3.

Re: Drawbacks of Python

#5

From the article: > Strings were just a sequence of bytes in Python 2, but now are Unicode by default. Much better. whelp, not trusting this guy's judgement anymore

Python also has a bytes type that’s the same as python 2 strings. Why would you want your strings to not be Unicode?

Re: Drawbacks of Python

#6
I agree with the response that there are a few "gotchas" with python, like with any language! I have gotten caught up with a few type problems when dealing with sending raw binary data over serial and things like that - but luckily python has great unit testing frameworks to help with this.

My main beef with python is that it is harder to deploy projects to other people, without them setting up a virtual environment or things like that. I know that there are some tools to help compile but they aren't easy to use.

Also, it is hard to create GUI applications vs languages like C#!

Other than that I love using python and I think it is a great tool to use in embedded development along with c/c++.

Re: Drawbacks of Python

#7
I actually expected some elaborate work about the imperfection of Python.

What I got was a list that started with at least three points that are already obsolete, because only valid for Python 2, which is already declared obsolete.

Every language with some history has its humble start and is evolving. To carry the errors of the past is just not fair. You could of course drag along the first Java version and conclude that Java is bad -- but you would really invalidate your own opinion.

Re: Drawbacks of Python

#9
The main drawback of python for me, compared to NodeJS is the whole sharing projects onto different machines with virtualenv or whatever. package.json and node_modules just works by default in so much cleaner a way. You can use npm or yarn or just a zip of the node_modules to share the environment with a colleague or to deploy.

Re: Drawbacks of Python

#10

From the article: > Strings were just a sequence of bytes in Python 2, but now are Unicode by default. Much better. whelp, not trusting this guy's judgement anymore

Python also has a bytes type that’s the same as python 2 strings. Why would you want your strings to not be Unicode?

Obviously nobody cares what I think, so perhaps you would prefer the words of Armin Ronacher, the creator of Flask.

http://lucumr.pocoo.org/2014/5/12/everything-about-unicode/

Post reply on HN