Kung Fu Kung Fu

Fujian White Crane Kung Fu

Zope Zope

What I have and am doing with Zope

Photos Photos

Photoalbum, both old and new.

Receptsamlingen Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me Contact me

My contact details and how to contact me.

  Mobile version of this page Mobile version of this page


 

Why Django and Grok matters

ruby on rails, django, plone, frameworks, prototype, mootools, jquery, grok, zope3, twisted

1st of February 2008

Now I realise why I'm taking a serious look at new "shorthand frameworks" like Django and Grok rather than Twisted, Plone 3 or Zope3: Because of jQuery! The Javascript framework which makes writing normal Javascript a joke.

Ever since I discovered jQuery I haven't looked back. Seeing "manual" Javascript code makes my crinch. By jQuery'ifying a pile of pure Javascript code you can go from 100 lines of code splashed with semi colons and for-loops into 20 human-readable lines. There's lots of magic which I guess you've just got to get over and accept but what's so brilliant is that stepping out of the magic into the wild is so damn easy and near. My only regret is not using jQuery since the day it was released. Now I've been using it for at least a year and can't see any reason for using anything else.

Ruby on Rails looks tempting too with its own nifty magic but I'm just afraid the step into "raw mode" is going to be too big. Like Plone, if you just do what you're told you can do you're getting brilliant results but anything more exceptional than that and you're back to more trouble than if you had done it without a framework.

My personal current dilemma is that I can't decide which on to invest in fully: Django or Grok. Grok seems technically superior but Grok as a community is where Django was a very long time ago. I'm going to try to master them both and some point in the future drop one of them. This is what I did when the Javascript frameworks came out. I eventually gave up on Prototype and Mootools and put all my effort into jQuery instead and I'm glad I did.


Comment

Paolo - 8th May 2008  [«« Reply to this]
Hello, I'm in the same dilemma

Actually I'm using Django for my pet projects and I'm happy with it, but with all my honesty, if just grok would lack a bit less in terms of documentation (Django is fully documented instead) I would be with grok today. If it's true that Zope Component Architecture is initially hard to grasp it's also true that once you got it you are enabled to write well structured code that is ready to be extended/reused/maintained (isn't this a dream in the topten of us programmers?).
OTOH Django has something that grok will probably have just in the long period (hopefully): a vibrant, large and responsive *user* community.

Finally, I think that they both are great frameworks that worth a try, but IMHO the best choice is to mediate between them and use the best of which each one has to offer. At this aim, I'm actually trying to understand better zca and if it's possible to use it with django. At least in theory it should be possible and there is something about it on the web I'm going to read (http://www.stereoplex.com/two-voices/adapters-in-django-and-the-revenge-of-zope).
Harold - 3rd July 2008  [«« Reply to this]
Hi there,

So what have you decided ? I found your comments SO TO BE TRUE ! First we noticed a dramatic increase in speed by using JQuery instead of outsourcing to coders who made their own javascript. Plus standardisation etc.

We chose for Plone 2 years ago, versus RoR.. and I think we're regretting it now. Not only do we have a lot of ideas (such as collaborative, social elements, speficic url requirements etc) but I sometimes feel we need to hire "the world's leading Plone magician" to get things done. Django on the other hand gives us much more choice, if ever.. the magician and us do not get along, or we need more magicians or whatever.

So unless we stay in the Plone system, exactly as it was designed for, we also feel we're spending a hell of a lot more time tweeking/working around it.. than if we could do it from scratch.

Any ideas you have on comparing Plone/Zope with Django would be very much appreciated though !
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.