The Artima Developer Community
Sponsored Link

Python Buzz Forum
RAMP Development

2 replies on 1 page. Most recent reply: Feb 3, 2005 1:15 AM by Aaron Brady

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Aaron Brady is lead developer for Crestsource
RAMP Development Posted: Feb 2, 2005 7:06 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Aaron Brady.
Original Post: RAMP Development
Feed Title: insom.me.uk
Feed URL: http://feeds2.feedburner.com/insommeuk
Feed Description: Posts related to using Python. Some tricks and tips, observations, hacks, and the Brand New Things.
Latest Python Buzz Posts
Latest Python Buzz Posts by Aaron Brady
Latest Posts From insom.me.uk

Advertisement
Like it? It's my new retro-nym, it stands for "Rails Apache MySQL POSIX" ...

Read: RAMP Development


Miles Clark

Posts: 1
Nickname: alzoid
Registered: Feb, 2005

Re: RAMP Development Posted: Feb 2, 2005 9:53 AM
Reply to this message Reply
I'd be interested in your thoughts on what specific parts of Rails integration make it a smoother experience than the Quixote/CheetahTemplate/SQLObject combo.

Thanks!

Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Re: RAMP Development Posted: Feb 3, 2005 1:15 AM
Reply to this message Reply
Well, the absence of wiring up. It may sound trivial, but it mounts up.

For my app, I subclassed Cheetah.Template.Template with a few extra variables. I created an instance of this at the top of each Quixote method. At the end I returned str(t) (where t is the template instance).

Each form (CRUD) template had some error checking code, and a few SQLObject calls, like Hotel.search('id > 5') - that kind of thing. The results of all of these were set as attributes on the t variable, so that the template could access them.

So, anyway, the easier integration, for me, comes from not having to hand-wire(sic) my code to my template, to my database. It's not /quite/ dependency injection (though there is an IoC framework for Rails), but it means less instantiating things myself, and more of the framework doing it for me.

These are not earth shattering changes, but then, CRUD forms aren't earth shattering problems.

Rails simply takes care of the annoying plumbing code, which can be automated. I still like Quixote/CheetahTemplate/SQLObject, and will likely use them again in the future, but *all* programmers who enjoy their environment are naturally bound to defend the tools they know.

In short, there's nothing (that I can see) that you can do with Rails that you can't do with the similar Python stack. IMHO it's just a little easier.

Flat View: This topic has 2 replies on 1 page
Topic: Trackback Spam Previous Topic   Next Topic Topic: An ISAPI-WSGI implementation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use