The CodeNarc plugin provides static code analysis using CodeNarc library. CodeNarc analyzes Groovy code for defects, bad practices, inconsistencies, style issues etc. CodeNarc provides a Groovy DSL for defining RuleSets. Install CodeNarc plugin into you grails project. Now create one groovy file say CustomRules.groovy and add following code into it. [java] ruleset { Println SystemOutPrint […]
This post is for people who are already familiar with Git and work on multiple branches (esp. feature branches). By practice, feature branches are the branches created from a root branch (master or any other as per your branching model) and once feature is complete/tested – they are merged back into the same root branch. […]
In one of my project we were reading the cookies so that we could do the processing accordingly. Now reading the cookie is easy but writing a unit test case for that action was little bit tricky for me because I wanted to test the behavior in case of when I find the cookie and […]
In one of our projects, we are using a webflow for an order wizard. We needed to track the number of users converting a draft to a confirmed order using Google Analytics. This would have been simple if the URLs were different for each step. However, that is not the way webflows work and a […]
This post is all about enabling codecs (like encodeAsURL, decodeURL, etc) in your Grails Unit tests. I am assuming that you are already familiar with writing unit tests. Scenario: In our application code, if we have something like below: [groovy] String serviceUrl = "http://example.com/service" String username = "usernameStr" String password = "passwordvalue" String urlStr = […]
Hey guys. Since this is my first blog, i don’t even know that the subject I’m going to write on is even bloggable. But here I go. As part of my responsibility in a recent project, I was asked to implement a taglib that could allow a user to rate his likeness for a movie […]
Lately i had some spare time, hence decided to utilise it for developing some cool GUI elements. What is effects tag lib?? It is just a new tag lib which is intended to contain some cool grails tags for GUI manipulations. new tags will be added to it on timely basis, this is the first […]
git log is one of most useful commands to see information about commit , author , date and subject(comment) while using GIT.This displays information in blocks and hardly 5 – 7 can be listed on normal screen size. But git provides –pretty option , so that we can format the output of git log; Here […]
Hello world, this is my first blog ever. So, apologies for any kind of mistakes committed :p Now lets get down with the actual business. Today I am going to talk about application development on Android platform. I am still a newbie on Android platform (a recent adapter in fact). I decided to write this […]