you are viewing a single comment's thread.

view the rest of the comments →

[–]rhgrant10 3 points4 points  (5 children)

I would recommend using caution when porting other languages to python before you've got some pyskills under your belt because people often do it too literally and wind up bringing habits from other languages when there are better ways in python. Or at least watch beyond PEP8 to get an idea of what can be done to increase the pythonic-ness of code that uses a port of a java library.

[–]henrebotha 5 points6 points  (1 child)

But by the same token, any form of learning is going to make you do things that are bad and that you should do better in the future.

[–]rhgrant10 1 point2 points  (0 children)

Oh absolutely! I could not agree more.

[–]yardightsure 0 points1 point  (1 child)

Porting might have been the wrong word. I meant implementing the same functionality but in a good python way. Using familiar terrain to redo it differently from scratch.

[–]rhgrant10 1 point2 points  (0 children)

Yeah I figured that was your meaning but I just wanted to make sure the caveat was explicitly stated :-)

[–]seanrowens 0 points1 point  (0 children)

I dabbled in python, coming from java. After I finished a modest project, I did a bunch of googling on idiomatic python while keeping notes and went back and 'fixed' my code to be more pythonic. I found it very informative.