Me
About
Gallery
Company
Girl


Projects
Ruby on Rails
Basecamp
Highrise
Backpack
Campfire
Ta-da List
Writeboard


More
Feed
Archives

August 18, 2:31

'Arghh, Rails on Ruby is better than Java'

Chris Nelson was recommended by Jim Weirich (the Rake star) to have a look at Ruby on Rails at a Cincinati Java Users Group meeting. When he did, this was what he saw:

[I]t's called Ruby On Rails.  And gosh darn it, it's just too darn good.  Makes me sick.  I'm no Ruby guy, believe me you.  I don't go in for that alternative language kind of thing one bit.  Unamerican if ya ask me.  But confound it, I was blown away.  Just watch the video ok.

Naturally, Chris has some concerns after watching the video. He's holding them dear as they're the only thing keeping him from "...spend[ing] every minute of my time at work crying while I code". I'd advise a big box of Kleenex for work tomorrow, Chris.

(UPDATE: Avik, another Java guy, discovers Ruby on Rails)

It worked from the database first.  The video showed him adding tables and then poof they had screens appear.  That's cool but where's my objects, mmkay?

The database holds just the attribute definitions. The stuff you would normally slave over as manual getters and setters in the Java class along with definitions in the XML mapping file and the DDL's. By the magic that is Ruby, these will now be available to the model class that can be further extended with domain logic ala:


class Milestone < ActiveRecord::Base
  # deadline is defined in the DB as a date field
  def late?(comparison_date = Date.today)
    deadline < comparison_date
  end
end

Basecamp has domain model of 44 such classes comprised of 406 methods (for a total of 2.8 KLOC). Rails believes strongly in the domain-driven approach and goes out of its way to make it easier to archive. Keep business logic in the domain. Use the classes and methods to form a domain language ("Is the milestone.late?").

Umm, hmmff rurfle scalability mumble mumble

Rails follows the scaling model of PHP: Nothing shared. Rasmus Lerdof had a great conversation with IT Conversations about this very topic. Basically, it means that you use the database as the sole integration point. This enables you to throw as many application servers (Apache + FCGI/mod_ruby) at the behavior as you like while scaling the state using database clustering. The tools for scaling like this are free, open source, and doesn't require an advance degree in rocket surgery to setup.

The jsp like sytax is gross

Yet ERb (embedded Ruby) is nothing like JSP (embedded Java). Java is such a heavy-weight language that it's completely unsuited for template generation. Java needs taglibs, velocity, and similar attempts to banish the life of scriplets. This is simple not the case with Ruby that has syntax like:


<% for post in @posts %>
  Title: <%= post.title %>
  <%= "(Today!)" if post.posted_on == Date.today %>
<% end %>

And for the more complex stuff, you off-load that to template helpers. It's obvious that templates shouldn't be chok full of scriplets, but the core case of conditions, iterations, and outputs are expertly handled by Ruby.

How do I change those supermagical database editing pages.  He showed how to create a separate page, but what if i want to change the way it generates the db edit pages, just changing a few things or what not.  How do I that, hmm, can I, hmm, hmm?

This is the beauty of scaffolding in Rails. It's not an all-or-nothing offer, but a buffet. You can choose to overwrite each individual controller action or template. So you start out by overwriting the list.rhtml template to do application specific listing while still relying on the scaffolded create and update actions. So you start with a complete wireframe and fill in the details bit by bit.


Challenge by Chris Nelson on August 19, 5:41

So i had to find some more stuff to complain about, so i can go to work tomorrow :)

Challenge by Chris Nelson on August 19, 5:42

Sorry, see my blog for details: http://www.cinjug.org/blogs/cnelson/index.html

Challenge by dustin on February 14, 17:55

jam multajn gvidistojn -- malsago kaj idiotaj demandoj. Ci tiuj kreitajoj nenion suspektas -- ili tute ne komprenas la sarkasmon. Neniam dum mia vivo mi estis tiel kontenta, tiel trankvila, tiel plena de bena paco, kiel hierau, kiam mi eksciis, ke Mikel-Angelo ne vivas plu. Ni eltiris ci tiun sciigon el nia gvidisto. Li kondukis nin tra mejloj da pentrajoj kaj skulptajoj en la vastaj koridoroj de Vatikano, tra mejloj da pentrajoj kaj skulptajoj en dudek aliaj palacoj; li montris al ni la grandan pentrajon de la Siksta Kapelo kaj freskojn, kiuj suficus por freskigi la tutan cielon, -- preskau cio estis farita de Mikel-Angelo. Ni decidis uzi kontrau li rimedon, per kiu ni venkis jam multajn gvidistojn -- malsago kaj idiotaj demandoj. Ci tiuj kreitajoj nenion suspektas -- ili tute ne komprenas la sarkasmon.

Challenge by george on May 09, 21:40

Hello. I am new here. It is very interesting.
Sex creampies Gallery creampie pics Free cunt creampie Creampie vaginal cum shot Cheat creampie stories Sex advice creampie Creampie vaginal cum shot Grannies pussy creampies Galleries free creampie movies Creampies pussy Creampie video free Mature black babes nasty creampies cunt spreads Creampie vaginal cum shot Cheat creampie stories Eating anal creampies Creampie internal, cumshots Creampie pussy cunt Unsuspecting teen creampies Creampies pussy Galleries free creampie movies Anal creampie movie free Creampie sex videos Grannies pussy creampies Free cunt creampie Creampie sex videos Brittanys interracial creampie videos Free and creampie and panty and pics Creampie pics free Anal creampie movie free Anal creampie movie free Mature mature plump fat hardcore pics creampie nasty fetish Creampie gangbang pregnant cum load inside Mature mature plump fat hardcore pics creampie nasty fetish Creampie eating stories Cheat creampie stories Creampie sex videos Anal creampie mpegs Anal creampie movie free Creampie vaginal cum shot Creampie stories Galleries free creampie movies Creampie internal, cumshots Mature mature plump fat hardcore pics creampie nasty fetish Creampie stories Grannies pussy creampies Creampie gangbang pregnant cum load inside Hairy internal creampie pussy Creampie cock in pussy Creampie eating stories Free creampies pics Amateur creampie pictures Creampie vaginal cum shot Anal creampie movie free Mature mature plump fat hardcore pics creampie nasty fetish Free thumbnails of creampie women Creampie cock in pussy Sex creampies Creampie gangbang pregnant cum load inside Free thumbnails of creampie women Mature black babes nasty creampies cunt spreads Creampie pussy cunt Creampies pussy Amateur creampie pictures Porn movies creampie frei tgp Anal creampie movie free Free creampies pics Internal cum shot creampie video Sex advice creampie Mature black babes nasty creampies cunt spreads Free thumbnails of creampie women

Challenge by serge on June 04, 11:57

Hello. I am new here. It is very interesting.
south indian mature women mature gallerys nud3 senior women free thumbnail pictures of older women south indian mature women south indian mature women mature nudists photos free naked older women mature nudists photos mature anal mature living mature ladies in lingerie mature living mature anal older moms mature women stories mature amature mature gallerys mature nud3 pics mature women stories south indian mature women lyrics to older country songs mature women stories mature gallerys mature spunker mature women stories mature ladies in lingerie free thumbnail pictures of older women older s3xy women nud3 senior women mature nud3 pics mature living free naked older women mature bitches nud3 senior women nud3 senior women mature living mature gallerys south indian mature women older s3xy women

Challenge by irgy on June 04, 20:04

Hello. I am new here. It is very interesting.
xyx creampies creampies movies creampie video store teen anal creampies mature creampies creampie video store xyx creampies creampie t9p creampies free creampie video store free anal creampie movies creampies free creampie pussies free creampie pics free creampies movies wife oral creampies creampie pussies creampies free free creampie pics free creampie video clips free creampie video free anal creampie movies ass creampie japanese creampie links cum creampie creampie eating stories creampie video clips creampie ass creampie ass ass creampie creampie ass hairy creampie free creampie thumbnails creampie eating stories free creampie video free creampie pics free hairy creampie free creampie video creampies free creampie ass

Challenge by atmor on June 05, 5:14

Sorry for my links
free panty thumbnail gallery nylon stocking galleries feet in nylon nylon stocking galleries girls in fishnet stockings girl panty pics nylon galleries free pantyhose thumbs free panty thumbnail gallery pantyhose crossed legs men who wear pantyhose russian pantyhose women nylon stocking galleries pantyhose crossed legs pantyhose and nylon feet and toes feet in nylon cum on panties girls in body stockings girls in fishnet stockings girls in body stockings free pantyhose thumbs pantyhose chat boys in pantyhose nylon stocking galleries cum on panties girl panty pics girl panty pics pantyhose chat pantyhose crossed legs girls in fishnet stockings mature pantyhose pictures girl panty pics feet in pantyhose pics pantyhose mpeg girls in body stockings nylon galleries boys in pantyhose nylon stocking galleries girls in fishnet stockings mature pantyhose pictures

Challenge by angel on June 05, 17:38

Hi. This is my links.
mature asian dating mature women mature men galleries mature wives mature women nud3 mature nud3 women mature over 50 old naked women older women younger men dating mature women free mature mature women in stockings mature nud3 women mature women nud3 older thumbs mature wives dating mature women old naked women mature women in stockings mature women in stockings free mature p0Rn mature babes mature wives free mature older women younger men mature women in stockings mature over 50 mature men galleries mature babes mature asian old naked women mature women nud3 mature nud3 women mature over 50 mature women nud3 mature nud3 women older men younger women old naked women mature women in stockings free mature s3x

Challenge by lorry on June 05, 21:14

Hi. This is my links.
pictures of women in crotchless pantyhose visible panty lines pics pictures of men wearing pantyhose young girls in panties pictures of men wearing pantyhose visible panty lines pics men's pantyhose satin panty galleries satin panty galleries pictures of men in pantyhose young teens in bra panties pantyhose links.com pantyhose links.com free panty movies pantyhose links.com mature pantyhose pics young girls in panties teens in panties free links used pantyhose free pantyhose thumb galleries men's pantyhose free pantyhose thumb galleries free panty movies young girls in panties young girls in panties mature ladies in pantyhose panty fetish young teens in bra panties used pantyhose nonnud3 teens in pantyhose cheerleader panty pics young girls in panties teens in panties free links pictures of men wearing pantyhose free panty movies free pantyhose thumb galleries used pantyhose pictures of men in pantyhose cheerleader panty pics free panty movies

Challenge by angel on June 06, 11:33

Hi. This is my links.
mature asian women mature index free older women galleries mature pic gallery mature asian women mature women over 40 mature index mature asian women free older women galleries older women stories how to meet older women mature pic gallery older 1esbians mature index naked old women thumbs mature big tits older women stories mature mistress mature asian women mature asian women naked old women thumbs free older women galleries mature hardcore links naked old women thumbs mature asian women mature hardcore links mature glamour mature hardcore links older women stories older holland mature women over 40 older black women mature big tits older women stories mature big tits young girls older men mature pantyhose pictures mature glamour free older women galleries mature index

Challenge by nickol on June 08, 0:29

Hello. I am new here. It is very interesting.
pantyhose images winnie-cooper pantyhose celebrities in pantyhose panty thumbnails mature ladies in pantyhose satin panty galleries satin panty galleries panty post wet pantyhose men caught wearing pantyhose celebrities in pantyhose celebrities in pantyhose panty post mature ladies in pantyhose mature ladies in pantyhose panty post hooters girls in pantyhose satin panty galleries panty thumbnails men caught wearing pantyhose mature ladies in pantyhose satin panty galleries men's pantyhose panty post panty thumbnails men caught wearing pantyhose panty post satin panty galleries panty thumbnails girls in nylons panty thumbnails pantyhose images hooters girls in pantyhose panty fetish mature ladies in pantyhose free teen panties girls in nylons white pantyhose celebrities in pantyhose free teen panties

Challenge by alan on June 08, 4:21

Sorry for my links
pantyhose men shiny pantyhose pantyhose foot gallery wolford pantyhose crotchless pantyhose panty girls wolford pantyhose panty girls pantyhose fetish crotchless pantyhose pantyhose fetish silkies pantyhose teen panty pictures silkies pantyhose pantyhose fetish panty girls wolford pantyhose bra and panty pics free panties free panties pantyhose foot gallery free panty galleries mature women in nylons panty girls wolford pantyhose little school girls panties wolford pantyhose teens in pantyhose men in panty pics panty line pics mature women in nylons crotchless pantyhose little school girls panties bra and panty pics free panties pantyhose men wolford pantyhose men in panty pics men in panty pics free pantyhose sites

Challenge by boris on June 08, 19:30

Hello. I am new here. It is very interesting.
mature cart00ns daily mature boobs nud3 mature black women mature older t9p mature content free mature s3x pics nud3 mature black women mature older t9p free pics mature ladies victor mature mature older t9p older pussy nud3 mature daily mature boobs mature cart00ns mature cart00ns daily mature boobs mature personals meet older women free mature movies meet older women older women pictures mature cart00ns nud3 mature men victor mature victor mature bcn mature mature 1esbian mature content top mature t9p's nud3 mature mature older t9p free mature movies nud3 mature black women mature 1esbian top mature t9p's daily mature boobs mature cart00ns victor mature victor mature