Mastering the Grails Powerful Tiny Web Framework
Someone from IBM tips this article on their Developerworks site about Grails, a modern Web development framework that mixes familiar Java technologies like Spring and Hibernate. "Grails gives you the development experience of Ruby on Rails while being firmly grounded in proven Java technologies. This article show you how to build your first Grails application with the lessons learned from Rails and the sensibilities of modern Java development."
Do you even lift?
These aren't the 'roids you're looking for.
...getting interviewed about Groovy here.
There's some other good stuff there too, although the interview with Dr. Stonebreaker about column-oriented storage is kind of light on technical detail.
The Army reading list
I've heard that while the true Grail will bring you life, the false one will take it from you.
It seems that Rails set a milestone for development frameworks, and nowadays everything new has to be based or inspired or copied from Rails. Seems that Rails really made a breaktrough there, in fact, it seems to be responsable for most of Ruby's popularity. Rails has been translated several times to other languages, like Python (Django, also TurboGears to a lesser extent) and Java (Groovy to a lesser extent, now Grails that it's a ripoff even on the name).
This makes me think that sometime ago the buzzword of the moment was J2EE, and everything everyone made had to be J2EE compliant. Even C# and .NET was a big Microsoft ripoff of Java and J2EE to fight against the big migration of programmers to Java.
Which leads me to the fact that soon the buzz around Rails will be over, as much as nobody creates a new J2EE-based framework, now everything is taken for granted. So, what will be the next milestone? The next technology that will have people talking? Have everyone trying to clone its own?
Bridgekeeper: Stop. Who would cross the Bridge of Death must answer me these questions three, ere the other side he see.
Sir Lancelot: Ask me the questions, bridgekeeper. I am not afraid.
Bridgekeeper: What... is your name?
Sir Lancelot: My name is Sir Lancelot of Camelot.
Bridgekeeper: What... is your quest?
Sir Lancelot: To seek the Holy Grail.
Bridgekeeper: What... is your favourite colour?
Sir Lancelot: Blue.
Bridgekeeper: Go on. Off you go.
Sir Lancelot: Oh, thank you. Thank you very much.
Sir Robin: That's easy.
Bridgekeeper: Stop. Who would cross the Bridge of Death must answer me these questions three, ere the other side he see.
Sir Robin: Ask me the questions, bridgekeeper. I'm not afraid.
Bridgekeeper: What... is your name?
Sir Robin: Sir Robin of Camelot.
Bridgekeeper: What... is your quest?
Sir Robin: To seek the Holy Grail.
Bridgekeeper: What... is the capital of Assyria?
[pause]
Sir Robin: I don't know that.
[he is thrown over the edge into the volcano]
Sir Robin: Auuuuuuuugh.
Bridgekeeper: Stop. What... is your name?
Galahad: Sir Galahad of Camelot.
Bridgekeeper: What... is your quest?
Galahad: I seek the Grail.
Bridgekeeper: What... is your favourite colour?
Galahad: Blue. No, yel...
[he is also thrown over the edge]
Galahad: auuuuuuuugh.
Bridgekeeper: Hee hee heh. Stop. What... is your name?
King Arthur: It is 'Arthur', King of the Britons.
Bridgekeeper: What... is your quest?
King Arthur: To seek the Holy Grail.
Bridgekeeper: What... is the air-speed velocity of an unladen swallow?
King Arthur: What do you mean? An African or European swallow?
Bridgekeeper: Huh? I... I don't know that.
[he is thrown over]
Bridgekeeper: Auuuuuuuugh.
Sir Bedevere: How do know so much about swallows?
King Arthur: Well, you have to know these things when you're a king, you know.
I guess they didn't want to call it Jails?
Our apologies
The IBM developerWorks Web site is currently under maintenance.
Please try again later.
"Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
This sounds like a poor man's Rails. Why would I want to develop smartly using such a limited, powerless, unexpressive language? All the productivity you could want gets lost by working with Java and its bloated, overengineered, god awful API and toy object model that gets forced upon you all the time.
The sensibilities of modern Java development? What a poetic way to say "we've dumbed it down and made it a living toy-OOP hell". Besides, modern Java development is usually Google code search copypasta with some ugly so-called glue.
I was about to say 13256278887989457651018865901401704640, but it appears this number is private property.
AJAX.
Not that AJAX is a bad idea, but that it needed a word. And that word irritates the hell out of those of us who knew it as DHTML, or simply as Javascript.
Or, how's this: "Blog".
It's a journal, or it's a column. Either way, the only thing that makes it special is that it's on the Internet.
Or how about this: "Myspace".
This one makes me absolutely livid. It's Geocities 2.0, and you can just hear the resounding SMACK of a million programmers at once wondering why they didn't do it first. Not "think of it", because we already had Geocities, but do it.
I'm with you, somewhat, but that doesn't mean Rails is worthless.
Don't thank God, thank a doctor!
Bah! I want to write my own DAOs, and worry about customising each one for different backend databases because their JDBC implementations handle things differently, never mind the SQL differences!
...
.jar file for the data model and database access, so you can access the schema from traditional Java applications, not via the application server? All with nice Javadoc of course...
Actually at least you are in control when you do that. Somebody else's programming and database schema paradigm are quite often quite different from your own. It is good for everyone to have to all the parts so that they know how it works. Sure, they might use an off-the-shelf framework later on, but they need to know what's happening inside that framework.
These things make developing web applications easier for cheap Java programmers. You have to hope that the generated database schema is decent. I've seen frameworks generate schemas that were a complete brain-fuck to navigate using traditional methods, basically tying you into accessing the database via that framework only.
And "tiny" - it seems to include its own application server, database engine, several parent frameworks
Of course the important issue is when the Eclipse support is ready.
Does Grails allow the export of a Java
I will give this a play however. It seems perfect for small intranet applications. I assume it has a module for user accounts, etc?
If you're at all interested in Groovy or Grails, see Scott in person. His writing is good, but his speaking is better (obviously imo). He exudes an enthusiasm for and mastery of the subject which is lacking in many speakers in the tech circuit these days.
creation science book
... except when it doesn't. Java doesn't have to be over engineered,and I would hardly call its object model a toy ( cough perl/php objects are toys cough cough). Now is Java overkill for your simple blog app demo thats done so quickly in rails? Probably. You know right tool right project.
Well.. maybe. Or Maybe not. But Definitely not sort of.
This is misinformation.
Grails is based on Groovy, a language that is probably more powerful than Ruby, with optional static-typing.
It is built on solid and widely adopted frameworks, such as Spring and Hibernate, and yet still lets you tap into the underneath frameworks. So it can talk to legacy systems, such as CICS, and do message queues and lots of other stuff that CRUD-only Rails cannot do without further development or extensions...
So dare I say, Grails is better than Rails!
IBM's dW website always goes down Saturday evening for maintenance. I think it goes down a little early, but it's always down for at least some time.
So one day several years ago the suits came to me and told me I had to stop using Perl and start using Java. It was hell. I lived in J2EE hell, JSF hell, Portlet hell, Workflow engine hell, Seam hell, then I spent some time with EJB3 and that felt less like hell.
Then the clouds parted, the angels sang, and there before me stood Groovy and Grails.
Groovy is pure joy in a bucket. It was so much less painful to transition to Groovy. Grails made so much more sense than JSF and Seam. Jetty was so much easier to set up and run than a full application server. I was so much happier... and I was able to use any of the Java stuff I wanted and I could even write shell scripts in Groovy. I could use Grails tools to automatically generate so much code I would have had to write in any other framework... Perl included... I was so happy that the pain had stopped. The confusion lifted! The buzzword acronym laden pea soup had stopped. Life began to make sense. I actually began to prefer working in Groovy and Grails to working with Perl, CGI.pm, and Template engines.
This is shocking but Groovy and Grails might actually be better than Perl, Ruby, or Python. No really. I'm sure this will start a flame war. But honestly you need to look at it. You really do. My IDE of choice working with Groovy and Grails? vi. really. vi. I don't need a big heavy IDE like I do with Java.
> Rails has been translated several times to other languages, like Python (Django...)
Absolutely not. Django preexisted the Rails buzz by years (it was an internal application at LJworld initially), and one of the reasons it's so good is that, unlike many, it is precisely not trying to mimic Rails.
That doesn't invalidate your point, though. I just thought I'd point it out, because, you know, to reach the next milestone, you first need to stop targetting the current one, and as you point out, not many are doing that right now.
-- B.
This sig does in fact not have the property it claims not to have.
I have long been awaiting for something like this. Having all the server functionality in a small java framework I will definitively give it a try.. http://www.developeronline.blogspot.com/