HNHacker News
TopNewBestAskShowJobs

herberth-amaral

3 karma · joined September 9, 2012

submissionscomments
herberth-amaral··on Underscore.py / a python port of underscore.js
I appreciate your effort, but there are some things that I think you need to know about Python when you come from JS world:

- List comprehensions: helps a lot.

- (str|unicode).format method (http://docs.python.org/library/string.html#format-examples) provides you a very simple templating language.

- Avoid using camelCase in variable/method/function names. Yes, I know Python itself break some of those rules, but they're trying to do it right in Python3. In fact, it'll be better if you read the PEP8 document (http://www.python.org/dev/peps/pep-0008/)

Nevertheless I would like to welcome you to Python and I hope you have a great experience with the language :-)