Python's Default Web Layer

August 27, 2006 at 08:42 PM | categories: python, turbogears, django | View Comments

Apparently Django might become the defacto Python framework. Django is pretty good, but I'm kind of surprised that Turbogears didn't get the nod.

Link
Read and Post Comments

Waiting For Python Web Frameworks

April 23, 2006 at 04:22 PM | categories: python, ruby, turbogears, rails, django | View Comments

I've tried out Turbogears and Django, ultimately putting together a quick prototype in Django, because the built in admin interface was the only thing left for me to complete.  It was simple enough to port over my object from Turbogears, add in some meta data and push the whole thing to "production". Unfortunately, I started coding in Django right before the "magic" removal branch went public.  The documentation didn't mention anything about a massive API change that seems to require lots of changes to any code you write.  Not that it is too important to me, it will be faster for me to start over and move the methods into the new branch.  Still frustrating. Of the two, I think Turbogears has the long term advantage.  I love the fact that someone took the time to integrate a bunch of seperate programs into a whole (it's not quite coherent yet).  The desire to re-invent the wheel is strong with all programmers and I've done it myself a couple times.  Turbogears also is not quite ready, they have some nice widgets that will be a joy to use, but when I tried, I couldn't find any documentation beyond the wiki.  The example in the wiki didn't work with my build, so I decided I would come back to it after I had tried  Django.  Maybe after they come out with 1.0. Which leaves me to ponder trying out Ruby on Rails.  Frankly, I've been avoiding it because I want to stick with Python.  I've been using Python for all my Unix Scripting and I love the way it is put together.  I've heard good things about Ruby, but I also want to deepen my Python experience, not dilute the languages I know with yet another one.  But considering Rails is past 1.0 and is gaining momentum, it would be a mistake not to look into it further. There is no doubt in my mind that I ever want to go back to writing straight PHP if I don't have to though.  These new frameworks make writing web applications a joy.  The thought of thousands of lines of poorly written PHP make me shudder.

Read and Post Comments

Dynamic Languages on the JVM

April 22, 2006 at 03:17 PM | categories: python, ruby, java, django | View Comments

I've been focusing on Python lately, mostly for web development. It is strange, but it doesn't quite feel ready yet. Obviously, there are large production sites deploying on some of the frameworks like Django, but compared to Java and Tomcat, Python web development is still in the infant stages. Even so, the productivity that Python provides over Java is astonishing. PHP just makes me laugh, though PHP 5 does clean up a lot of the warts. The only good thing I can say about PHP right now is that it is ubiquitous and easy to learn. I don't know how I missed it but in late 2004, there was an awesome meeting of the minds at Sun which included:


 

If Sun would release the JVM under the GPL or BSD or even the Mozilla MPL, and create awesome support for dynamic languages, it would explode all over the web server scene. Heck, I would pay good money for a JVM that had first rate support for Python. It would also help consolidate Ruby, Python, Perl and Java. I guess Parrot could do this, but honestly it will take years for it to be as fast as the JVM on all the platforms Java currently supports. The JVM is an impressive bit of Sun kit, but Sun has tied too closely to the Java language. Sun, open up the JVM even if you keep the Java spec under your control. This is the best of both worlds and would take a major bite out of .NET. Unfortunately, Sun will probably let the JVM wither away just like they are doing with Solaris. Sigh.
Read and Post Comments