By rlamarch
via dirtsimple.org
Published: Feb 26 2009 / 12:22
I was recently looking at the source of a wxPython-based GUI application, about 45.5KLOC in size, not counting the libraries used (e.g. Twisted). In examining the code, I found that they had done lots of things that make sense in Java, but which suck terribly in Python. Not because "Python is slower than Java", but because there are easier ways to accomplish the same goals in Python, that wouldn't even be possible in Java. Some examples ...
Comments
Jim Wilson replied ago:
100% true - when you move to a new language, take the time to learn the common practices in that language, for the sake of everyone involved.
mheath.myopenid.com replied ago:
Let me summarize this post for you. Java and Python are different.
jerryji replied ago:
The only reason I can think of for someone to vote this post down is that he/she has no idea who the author, PJ Eby, is. And saying that P J Eby is the main developer behind PEAK is probably not going to help either.
kirlich replied ago:
Why should someone vote up or down based on author. I thought that we are supposed to vote based on content.
TroubleX replied ago:
It isn't? Awwww.
jerryji replied ago:
If the original blog is a true rant, then it's a "please don't write Python programs the Java way" rant rather than a """just another ... anti-Java ... rant""".
And where in his blog did PJE state __bluntly that you're an idiot__ if you're not 10 times as productive with Python as you are with Java?
So who's really ranting """without ever qualifying his statement to put it in the highly specific contexts""" here?
amnorvend replied ago:
It seems that PJE *does* dislike Java. But that's not the point. He's using the article to point out the different ways python is different from Java.
Voters For This Link (35)
Voters Against This Link (4)