On 11/10/05, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> Not looking for a huge thread here....but I just watched a demo on Ruby on 
> Rails and am left with these impressions/questions:
>
> 1) On the surface...DAMN!  Sure could be better than CF for RAD

Yes, it sure can work as a killer RAD tool for web apps.

> 2) Demo was WAY too simple (basic blog).  I'd bet that if you had conditional 
> form validation (i.e. start date must be before end date), then Ruby starts 
> to fall down (as it seems to derive form validation from data types and 
> constraints).

Not at all -- Ruby's *really* flexible for that sort of thing. (As an
aside, *Rails* is what handles the automatic validation -- Ruby is the
language it's written in) You just have to actually write a little
code (just as you would in any language). You'd do something like

class someObject < ActiveRecord::Base
  def validate
    if end_date<start_date
       errors.add(:end_date, "must be before start data")
    end
end

There's a lot of helpers for validation and it's easy to write your
own into reusable libraries. Most of the magic is built into the
ActiveRecord library

> So....for those that have used or looked further into RoR....how does it 
> stack up when you have to build something other than a basic web app like a 
> blog/cart/webmail/etc.??  Does development take longer as you need to "tweak" 
> things from the basic functionality?

Assuming you know Ruby, it's *really* fast. I've worked on several RoR
sites -- including a moderately sized ecommerce site. This is fast.

But it's important to realize, Ruby vs. CF isn't really the issue --
it's the Rails framework vs CF framework X
(MachII/FB/MG/onTap/Batfink/whatever). Rails has a killer ORM in
ActiveRecord, testing built-in in a really nice way, several
templating languages, and a simple, flexible MVC controller in a
package that can generate scaffolding by itself. Nothing stops CF from
having a similar framework :)

As an aside -- pick up the Rails book from the pragmatic programmers
if you really want to get into rails... though there's been a ton
added to Rails since Aug.
--
John Paul Ashenfelter
CTO/Transitionpoint
(blog) http://www.ashenfelter.com
(email) [EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223871
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to