Improving Your Python Productivity
ozkatz.github.com
ozkatz.github.com
TLDR:
* Use dict and set comprehensions.
* Use collections.Counter.
* Use json.dumps or the pprint module for pretty printing.
* Create simple web services with Python's XML-RPC library.
* Use open source libraries...
Case in point - even as a Python veteran, I've never seen/used collections.Counter before. It'll save me from writing the same stupid three lines over and over, and is probably implemented faster than I naively do. I'd say that this will improve my productivity.
I know 2.7 has been around for a long time, but so much production software is running on RHEL/Centos systems with 2.6.
[1] https://fedoraproject.org/wiki/Python26
[2] http://villaroad.com/2010/10/rolling-python-2-6-2-on-centos-...
echo '{"foo":1, "bar":[1,2,3]}' | python -m json.toolIn Java and .NET, that's what we try to do everyday: writing idiomatic Java/C# code (style, architecture, patterns, standard libs, etc).