by stevenwei · 16y ago · 0 comments
Package and module imports are a lot saner in Python. I'm glad I'm no longer messing with require_once, autoloaders, and all sorts of functions polluting the global namespace.
Python having first class functions and classes makes a whole lot more sense to me. PHP's call_user_func_array and passing around string names of classes and functions for callbacks is just so ugly.
In terms of web framework experience I was using Symfony in PHP and switched to Django for Python. I liked both, but I've found that Django is easier to use. I'm not a big fan of Django's templating language though compared to Symfony (which was just straight PHP).
Django's templates aren't bad though, even if a little awkward at times.
Seems to me like any designer smart enough to get comfortable with Django's templating language probably wouldn't have any trouble getting comfortable with Python itself!
It's not like you'd ever do anything particularly complicated (programming wise) from within your templates anyway.
edit: more digging:
http://docs.djangoproject.com/en/dev/releases/1.2-alpha-1/#s...