Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
-- Steve Jobs

Friday, October 14, 2011

Grails - user - Paragraphs

Grails - user - Paragraphs
What's the standard design solution for the following problem :

The application prompts the user for some text. This is entered in a text area. And it's easy to store it as a long String. But how to preserve the line breaks to keep the separate paragraphs ? Should the text be stored as String[] ? Should the controller convert the text area String into String[] ?

Managing Content through Tagging in Grails: Part 1 | Packt

Managing Content through Tagging in Grails: Part 1 | Packt
Tagging is a loose, community-based way of categorizing content. It allows a group of people to categorize by consensus. Anyone is able to tag a piece of content. The more a tag is used, the more meaning it takes on and the more widely used it becomes. This categorization by consensus has been dubbed as folksonomy (http://en.wikipedia.org/wiki/Folksonomy)
So let's get started by building our tagging support.

Thursday, October 13, 2011

Integration and unit tests in large Grails project | Stack Overflow

Integration and unit tests in large Grails project - Stack Overflow
It is usually more complicated to write unit tests due to having to deal with mock objects than integration tests in a large Grails project. This article even suggests we can even do away with unit tests altogether and write only integration tests which I tend to agree.
The only disadvantage I see is the speed of execution for integration test as compared to same unit test.
What are your thoughts about this from your actual experience working on a large scale Grails project?
If we write a unit test that tests exactly same method and also write integration test that also tests exactly same method, is this normal way of writing tests?
What you ended up with in terms of ratio of unit tests to integrations tests in actual large Grails project?
Have you successfully completed a large Grails project without writing any tests?

Wednesday, October 12, 2011

Grails 2.0.0.M2 released! | grails.org

Grails 2.0.0.M2 released!
We are pleased to announce that the second milestone of Grails 2.0 is now available to download. You can find out what's new in Grails 2.0 and what's been fixed through the release notes.

Monday, October 10, 2011

Grails - Plugin - FullCalendar

Grails - Plugin - FullCalendar
Adam Shaw has written a full page javascript calendar component using jQuery: http://arshaw.com/fullcalendar/ See the page above and the Screenshots tab for more.

Grails - Best Calendar plugin?

Grails - user - Best Calendar plugin?
I'm looking for a simple way to add some calendar views to my application. I need to render blocks of time on a monthly, weekly and daily view. The primary use case is a read-only view, so I don't really care about editing/creating abilities.

FullCalendar - Full-sized Calendar jQuery Plugin

FullCalendar - Full-sized Calendar jQuery Plugin
FullCalendar is a jQuery plugin that provides a full-sized, drag & drop calendar like the one below. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format (an extension is provided for Google Calendar). It is visually customizable and exposes hooks for user-triggered events (like clicking or dragging an event). It is open source and dual licensed under the MIT or GPL Version 2 licenses.