Power of Groovy and Grails
I recently started learning Groovy and Grails. I found it to be quite productive compared to traditional Java based web development.
Groovy itself is much more compact than Java, and it plays really well with Java. You can call a Groovy class from Java or a Java class from Groovy. Groovy is also a supported language on the Java platform via JSR #241.
For example, to read a file in Groovy, you just need to write the following:
Note the use of closure being passed to the eachLine() method.
If you do web development using Java, you are probably aware of the build-restart-test cycle that you have to go through for every change. You can setup hot deployment to work around it, but it is complex and doesn't always work that well. Groovy and Grails eliminate this inefficiency, as you can make a change and refresh the browser to see your change. (I have seen some complex changes to break in Grails as well, but I am hopeful that it will get better as this platform matures.)
Grails also comes with a number of plug-ins, which make most common tasks really trivial.
Using the power of Grails and Groovy, I was able to quickly setup 3pundits.com.
3pundits.com is an attempt to provide education related information to parents, students and teachers. More services are coming soon.
Do you use Groovy or Grails? What has been your experience?
Groovy itself is much more compact than Java, and it plays really well with Java. You can call a Groovy class from Java or a Java class from Groovy. Groovy is also a supported language on the Java platform via JSR #241.
For example, to read a file in Groovy, you just need to write the following:
new File("filename").eachLine{line-> println line}
Note the use of closure being passed to the eachLine() method.
If you do web development using Java, you are probably aware of the build-restart-test cycle that you have to go through for every change. You can setup hot deployment to work around it, but it is complex and doesn't always work that well. Groovy and Grails eliminate this inefficiency, as you can make a change and refresh the browser to see your change. (I have seen some complex changes to break in Grails as well, but I am hopeful that it will get better as this platform matures.)
Grails also comes with a number of plug-ins, which make most common tasks really trivial.
Using the power of Grails and Groovy, I was able to quickly setup 3pundits.com.
3pundits.com is an attempt to provide education related information to parents, students and teachers. More services are coming soon.
Do you use Groovy or Grails? What has been your experience?
8 Comments:
Thank you, it's a nice blog, keep posting.
See more: Data Science Online Training
Thanks for providing a good post.
Martial arts classes in velachery
Flute classes in velachery
Dance classes in velachery
Zumba classes in velachery
Yoga class in velachery
Keyboard class in velachery
Violin class in velachery
Guitar class in velachery
Chess class in velachery
Kung fu class in velachery
Light music class in velachery
Music class in velachery
Bharatanatyam classes in velachery
Hindi tutions in velachery
Drawing class in velachery
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Microsoft Azure Training in Electronic City
This comment has been removed by the author.
I really appreciate for your efforts to make things easy to understand. I was really many students struggling to understand certain concepts but you made it clear and help me bring back my confidence.
hardware and networking training in chennai
hardware and networking training in tambaram
xamarin training in chennai
xamarin training in tambaram
ios training in chennai
ios training in tambaram
iot training in chennai
iot training in tambaram
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
angular js training in chennai
angular js training in velachery
full stack training in chennai
full stack training in velachery
php training in chennai
php training in velachery
photoshop training in chennai
photoshop training in velachery
You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.
hardware and networking training in chennai
hardware and networking training in annanagar
xamarin training in chennai
xamarin training in annanagar
ios training in chennai
ios training in annanagar
iot training in chennai
iot training in annanagar
Your good knowledge and kindness in playing with all the pieces were very useful
data science training in chennai
data science training in omr
android training in chennai
android training in omr
devops training in chennai
devops training in omr
artificial intelligence training in chennai
artificial intelligence training in omr
Post a Comment
<< Home