by Tim Berglund
If you’re building web apps for the JVM, there’s one thing you’re not missing: choices.
In the bewildering array of Java and JVM frameworks, Grails is emerging as a standard choice in environments ranging from startups to the enterprise. It’s a full-stack solution build on rock-solid components, fully relying on convention over configuration, and using the best application language the JVM has yet seen: Groovy. This is the place to be for web apps on the JVM.
In this talk, we’ll get a whirlwind introduction to Grails, visiting seven things you need to know about the framework to get started:
• Creating an app
• Development using the Tomcat server
• Interacting with the database
• Building your UI
• Processing web requests
• Tapping the huge plugin community
• Deploying to production
One of the key properties of RESTful Web applications is the ability to evolve over time. Too many Web APIs don’t evolve; they just get old, and useless; they rot. Why? Because they are little more than URI-based RPC calls returning serialized objects. Instead, Web APIs should rely on well-crafted media-type messages driven by links; they should be more RESTful.
This talk covers a handful of key design decisions that must be faced for every Web 2.0 API implementation. The choices are easy, the work is not. Too many frameworks and programming tools lead developers down the “wrong path” toward short-term expediency using record-based CRUD APIs returing XML or JSON without hyperlinks in the message; they follow the ROT (Representation Object Transfer) principles. Instead developers and architects need to ignore the “blandishments” of slick editors and frameworks and just knuckle down some hard slogging down the “right path;” the one that leads to a stable, scalable, re-usable, and evolve-able API based on Fielding’s REST principles.
Whether you are an individual developer, a small start-up, or a large, established company, now is the time to start creating more REST and less ROT.
25th–29th July 2011