* Using some of existing (commercial or open sourced) Scrum tools
Thursday, February 4, 2010
Starting with the Startup - Start Using Scrum
* Using some of existing (commercial or open sourced) Scrum tools
Sunday, January 31, 2010
Starting with the Startup - Educating the Team
- Cores of the agile and the Scrum
- Why everything in Scrum is time-boxed
- What is user story and what are the differences between user story and use case
- What means DONE
- What is goal of the sprint
- What is velocity and why it gives better estimation when things will be done than "classical" approaches
- Why testing is so important in the agile approach
- What is burndown chart and how it helps the whole team
Tuesday, January 26, 2010
Starting with the Startup - Selecting Processes
- We are startup company with small number of developers.
- We have rough idea what is our goal
- Our main focus are desktop and mobile web applications
- The market where we are moving is changing rapidly
- We are not sure and not aware of all the features we will need in our applications
Starting with the Startup
Monday, January 4, 2010
New feature on spend day with kids
Tuesday, October 27, 2009
RSS Builder in Grails in a Few minutes
As I planned to include RSS feeds into www.spenddaywithkids.com I needed possibility to create kind of RSS Builder. The good example of what I needed is IceRocket RSS Builder. So you are not generating RSS feeds directly from the data on your site but you are writing them manually. This way RSS feeds become kind of communication channel between the web site and users.
I would stay with IceRocket but I couldn’t find possibility to do even simple formatting for RSS items. So my thought was let see how it is complicated to do it in Grails. And it turned out that it takes only few minutes to get very similar functionality. So here is short example done almost step by step.
Note: As my site is currently running on Grails 1.0.3 maybe not everything will be compatible with 1.1 version out of the box.
So let go with implementation.
First create grails application and named it rssbuilder.
grails create-app rssbuilderThen create two domain classes:
class RssChannel {Ah, don’t forget to install two plugins: Feeds Plugin and RichUI plugin.
String name
String channelLink
String description
static constraints = {
name(blank:false, nullable:false, unique:true)
channelLink(blank:false, nullable:false, unique:false, url:true)
description(blank:true, nullable:true, maxSize:30000)
}
}
class RssItem {
String title
String itemLink
String summary
RssChannel rssChannel
Date dateCreated
Date lastUpdated
static constraints = {
title(blank:false, nullable:false, unique:false)
itemLink(blank:false, nullable:false, unique:false, url:true)
summary(blank:false, nullable:false, unique:false, maxSize:50000)
rssChannel(blank:false, nullable:false, unique:false)
}
}
Now we can generate controllers and views for two domain classes:
grails generate-all RssChannelWell now if you start application you are able to specify RSS channel and items for RSS channel. To provide possibility to specify better formatting for RssItem we can reuse <richui:richTextEditor tag from the RichUI plugin. In the create and edit view of the RssItem change summary and bind it to the richTextEditor. More or less you should input tag with the following:
grails generate-all RssItem
<richui:richTextEditor name="summary" value="${rssItem?.summary}" width="525" height="525" />Now to generate RSS feed we can reuse functionality of the Feed plugin. So create FeedController class with command grails create-controller Feed.
The code of the feed controller should be:
def rss = {
if (!params.id) {
render "missing id in params"
return
}
RssChannel rssChannel = RssChannel.get(new Long(params.id))
if(!rssChannel) {
render "rss channel not found"
return
}
render(feedType:"rss", feedVersion:"2.0") {
title = rssChannel.name
link = rssChannel.channelLink
description = rssChannel.description
RssItem.findAllByRssChannel(rssChannel, [sort:"dateCreated", order:"desc"]).each() { item ->
entry(item.title) {
link=item.itemLink
item.summary
}
}
}
}So now if you start application and create RSS channel and some items in that channel all you need to know is ID of that channel.If the Id of the channel is e.g. 1 in the browser write http://localhost:8080/rssbuilder/feed/rss/1 and you will see your feed.
I believe this was really easy :)
As soon as I switch fun places to go with kids to the Grails 1.1 I will create plugin from this.
Monday, October 26, 2009
Grails scaffolding for domain classes in packages
While working on one simple subproject for spend day with kids I got one interesting issue. I don't use scaffolding too often but this time I needed to get proof of concept. And I came to something where I am not sure if it is a bug or feature. And just to be clear this is happening with Grails version 1.0.3 and I am not sure if it is reproducible in later versions.
Note: Having packages for domain classes is highly advisable and you should always use packages for all domain classes.
So let get to the point. I have create following domain class (please notice that package is defined).
com.jan.rssbuilder.domain.RssChannelAnd after that I have created RssChannelController this way:
package com.jan.rssbuilder.domainAfter accessing this controller I got following exception:
class RssChannelController {
def scaffold = true
}
java.lang.IllegalStateException: Scaffolder supports action [index] for controller [com.jan.rssbuilder.domain.RssChannelController] but getAction returned null!After changing controller by specifying domain class everything worked fine:
package com.jan.rssbuilder.domain
class RssChannelController {
def scaffold = com.jan.rssbuilder.domain.RssChannel
}