SitePoint Sponsor |
|
User Tag List
Results 1 to 16 of 16
Thread: Rails isn't the only one...
-
Nov 16, 2005, 13:08 #1
- Join Date
- Jan 2005
- Location
- Franz Josef Land
- Posts
- 28
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Rails isn't the only one...
There is more to Ruby than Rails!
Personally I prefer Nitro architecture over Rails; check it out here: http://www.nitrohq.com/viewI code therefore I am.
-
Nov 16, 2005, 14:17 #2
- Join Date
- Nov 2004
- Location
- Romania
- Posts
- 848
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why do you prefer Nitro over Rails ?
-
Nov 25, 2005, 07:48 #3
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I wonder how many people have had a stab at Nitro. I've been keen to look at it one day... and I've heard some people speak highly of it. However it hasn't have the media attention and doesn't have the documentation / community supporting it.
If I remember rightly, it sort of is like the Apache Cocoon architecture of "modal" programming.
Are there any good examples you could highlight, and any good sites that use it?
-
Nov 26, 2005, 11:35 #4
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'd be interested in specifics too. Is there a Nitro equivalent to the "install Rails and build a cookbook in an hour" tutorial?
I read a little and found Why might I use Nitro instead of Rails. Filled with a lot of jargon, but a few interesting points managed to seep through. The "Programmatic xhtml rendering" on that page looked particularly interesting to me.Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Nov 26, 2005, 12:33 #5
- Join Date
- May 2004
- Location
- Wenatchee, WA
- Posts
- 107
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sounds like they're trying to recreate J2EE with Ruby...no thanks.
-
Nov 26, 2005, 15:40 #6
- Join Date
- Jul 2004
- Location
- Central Coast, CA
- Posts
- 321
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by samsm
Just curious, have you had a stab at Ruby's XML builder (that's available in rails). It's pretty much the same thing they're talking about.
IMO, I would rather die now than convert all of my <p> into <p> Pieces of example code like this scare the hell out of me:
Code:<?xml version="1.0"?> <!-- example page --> <html> <?r title = 'Example' version = params['version'] ?> <h1>#{title}</h1> <?r if version > 1 ?> <b>Version:</b> #{version} <?r end ?> </html>
Studio Rockstar's Blog - A journey to quitting the dayjob.
-
Nov 26, 2005, 20:00 #7
- Join Date
- Nov 2004
- Location
- Romania
- Posts
- 848
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think the encoding you mention (<> and stuff) is an error in their HTML.
Nobody in their right mind would edit html or xml like that
And I don't think it tries to mimic Cocoon from what I see here.
But rather it is a framework that supports multiple paradigms, as their own page states:
"Multiparadigm web applications"
Anything that comes out of Ruby is great, and I also heard good things about Nitro.
Maybe I will take a closer look when I have the time.
Maybe JCdev can share with us the advantages of Nitro.
-
Nov 26, 2005, 20:02 #8
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Brak
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Nov 26, 2005, 20:32 #9
Originally Posted by samsm
Code:xm.instruct! # <?xml version="1.0" encoding="UTF-8"?> xm.html { # <html> xm.head { # <head> xm.title("History") # <title>History</title> } # </head> xm.body { # <body> xm.comment! "HI" # <!-- HI --> xm.h1("Header") # <h1>Header</h1> xm.p("paragraph") # <p>paragraph</p> } # </body> } # </html>
-
Nov 26, 2005, 21:32 #10
- Join Date
- May 2004
- Location
- Wenatchee, WA
- Posts
- 107
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code snippets like that make me want to weep with delight!
-
Nov 27, 2005, 09:26 #11
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I understand the mechanics of it, I just haven't tried it and have no sense of whether it pragmatically works better than a template-based approach.
Any opinions on that point?Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Nov 27, 2005, 10:43 #12
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think normal .rhtml is better for html, but builder is better for xml. This is especially true if there is one designer and one programmer.
-
Nov 27, 2005, 10:52 #13
Originally Posted by samsm
-
Nov 30, 2005, 14:53 #14
- Join Date
- Nov 2004
- Location
- Yakima WA.
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nitro is a very nice web framework. The documentation is lacking but it lets you start simpler than rails and get as complex as you want. The main difference is in the OR Mapper. Rails has ActiveRecord which creates ruby accessors in your model classes based on the structure of the database table. While Og( the nitro ORM) goes the other way. In Nitro you define the columns in your ruby classes and they are automatically persisted to the db. You don't ever touch SQL unless you want to optimize a query. Kind of like ActiveRecord's migrations, og classes look similar. Og makes it easy to write plain ruby objects and then add persistence later with a few lines of code. Its a fundementaly different way of doing ORM than the way rails does it but each has their advantages. Og is well worth looking into but in the end I prefer rails to nitro. The lack of documentation is my main peeve with nitro. Nitro is a very capable framework though and the ruby programming that makes up the framework is very nice and has a lot to be learned from.
Cheers-
-Ezra
-
Nov 30, 2005, 19:59 #15
Presumably you could swap out ActiveRecord for Og in a Rails app? Does anybody know how you'd go about this?
-
Nov 30, 2005, 20:27 #16
- Join Date
- Jul 2004
- Location
- Central Coast, CA
- Posts
- 321
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Luke Redpath
Require og, then base your models off Og's base instead of ActiveRecord::Base.Studio Rockstar's Blog - A journey to quitting the dayjob.
Bookmarks