This link has been bookmarked by 175 people . It was first bookmarked on 09 Jul 2006, by craig hancock.
-
03 Jun 17
-
03 Jan 16
-
18 Nov 15
-
28 Jun 15
-
07 Jan 15
-
15 Oct 14
-
13 Aug 14
-
increase
-
-
06 Jan 14
-
01 Mar 13
-
but the goal of a classmethod is actually to do something that's usually not even possible in Java (like inheriting a non-default constructor). The idiomatic translation of a Java static method is usually a module-level function, not a classmethod or staticmethod.
-
Evil, evil, I say! Python objects are not Java beans. Do not write getters and setters.
-
-
20 Feb 13
-
04 Nov 12
-
classmethod is actually to do something that's usually not even possible in Java (like inheriting a non-default constructor).
-
Got a switch statement? The Python translation is a hash table, not a bunch of if-then statments.
-
The CPython dictionary implementation uses one of the most highly-tuned hashtable implementations in the known univers
-
This is what the 'property' built-in is for.
-
In Java, you have to use getters and setters because using public fields gives you no opportunity to go back and change your mind later to using getters and setters
-
time to learn about closures
-
You write a function that contains a function. The inner function is a template for the functions that you're writing over and over again
-
-
28 Dec 11
-
23 Jul 11
-
20 Jun 11
Romain Pouclet@hhamon Le DiC #sf2 me fait penser à ce post : http://j.mp/kragyZ avec Java = PHP. Je préfère un DSL à de la conf XML, mais en PHP c'est dur
-
17 Jun 11
-
02 Oct 10
-
13 Apr 10
-
16 Feb 10
-
20 Dec 09
-
20 Nov 09
-
28 Oct 09
-
20 Oct 09
-
23 May 09
-
17 Mar 09
-
26 Feb 09
-
-
But in Python, more often than not, code is easier to write than XML
-
Python objects are not Java beans. Do not write getters and setters. This is what the 'property' built-in is for
-
-
25 Feb 09
-
14 Feb 09
-
09 Feb 09
golimpioI 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). The code was written by Java developers who are relatively new to Python, and it suffers from some performanc
-
30 Jan 09
-
20 Jan 09
-
02 Jan 09
-
15 Dec 08
-
01 Dec 08
-
13 Nov 08
-
21 Oct 08
-
11 Sep 08
-
28 Aug 08
Chris LasherTransitioning to Python? Here are some tips and pitfalls to avoid. Even if you're not a Java (or C++) programmer this has some good tips.
python java programming tip guide for:third for:abml for:agbiotec for:behindtherabbit for:gidrew82 for:hokietux for:jemerick for:jewdan for:nuin for:neilfws for:mndoci for:rvidal
-
31 Jul 08
-
28 Jul 08
-
15 Jul 08
-
And static final fields should translate to module-level constants.
-
Python translation is a hash table
-
don't write getters and setters. They are a waste of CPU time,
-
In Python, this is silly, because you can start with a normal attribute and change your mind at any time, without affecting any clients of the class. So, don't write getters and setters.
-
-
06 May 08
-
12 Apr 08
-
26 Mar 08
JingleMan Sweepquite interesting
python java not programming article development xml blog interesting delicious
-
24 Mar 08
-
20 Mar 08
-
05 Mar 08
Adrian PerezNice reading, funny.
python article language programming for:yuukoichihara for:pinhos for:ajdiaz imported
-
29 Jan 08
-
11 Jan 08
-
10 Jan 08
-
30 Jun 07
-
28 Jun 07
-
15 Jun 07
-
06 Jun 07
-
18 May 07
-
17 Apr 07
Ivana VasiljSo, if you don't feel like you're at least ten times more productive with Python than Java, chances are good that you've been forgetting to use the time machine! (And if you miss your Java IDE, consider the possibility that it's because your Python progra
-
27 Mar 07
-
10 Jan 07
-
26 Oct 06
-
18 Oct 06
chris-4x4I 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). The code was written by Java developers who are relatively new to Python, and it suffers from some performanc
blog design development howto java python tutorial optimization programming
-
21 Sep 06
Sébastien SAUVAGEUn article sur les erreurs que les programmeurs Java font en Python (et les choses à ne pas faire en Python).
-
18 Aug 06
-
11 Aug 06
-
09 Jul 06
-
10 May 06
-
27 Apr 06
-
16 Mar 06
-
13 Feb 06
-
10 Feb 06
-
25 Jan 06
-
27 Dec 05
-
14 Dec 05
-
12 Jul 05
-
27 Jun 05
vikramsjnvery important and useful article about java programmers moving to python... and python programmers as well
-
17 Apr 05
-
13 Mar 05
-
18 Feb 05
-
30 Jan 05
-
22 Jan 05
Heinz Wittenbrink"This is only the tip of the iceberg for Java->Python mindset migration, and about all I can get into right now without delving into an application's specifics."
-
06 Jan 05
-
Or, if you have a thick skin and don't mind being laughed at, try explaining to a Lisp programmer why your application needs XML!
-
-
05 Jan 05
-
20 Dec 04
-
19 Dec 04
-
18 Dec 04
-
16 Dec 04
-
Python Is Not Java
-
Python Is Not Java
-
Python Is Not Java
-
-
08 Dec 04
-
07 Dec 04
-
-
Python Is Not Java 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). The code was written by Java developers who are relatively new to Python, and it suffers from some performance issues (like a 30-second startup time). 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.
-
Python Is Not Java 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). The code was written by Java developers who are relatively new to Python, and it suffers from some performance issues (like a 30-second startup time). 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.
-
Python Is Not Java 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). The code was written by Java developers who are relatively new to Python, and it suffers from some performance issues (like a 30-second startup time). 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.
-
-
04 Dec 04
-
03 Dec 04
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.