Link Details

Link 160649 thumbnail
User 209500 avatar

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 ...
  • 35
  • 4
  • 5595
  • 1

Comments

Add your comment
User 207602 avatar

Jim Wilson replied ago:

1 votes Vote down Vote up Reply

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.

User 349415 avatar

mheath.myopenid.com replied ago:

-3 votes Vote down Vote up Reply

Let me summarize this post for you. Java and Python are different.

User 241219 avatar

jerryji replied ago:

0 votes Vote down Vote up Reply

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.

User 234189 avatar

kirlich replied ago:

1 votes Vote down Vote up Reply

Why should someone vote up or down based on author. I thought that we are supposed to vote based on content.

User 278475 avatar

TroubleX replied ago:

1 votes Vote down Vote up Reply

It isn't? Awwww.

User 241219 avatar

jerryji replied ago:

0 votes Vote down Vote up Reply

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?

User 362291 avatar

amnorvend replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java