Why groovy on grails




















What kind of applications are built using Groovy on Grails? Improve this question. Ken Liu Rachel Rachel Also, it's just Grails. Not Groovy on Grails that makes no sense.. You're lucky Marc Palmer hasn't seen this question : — leebutts. It's just Grails. Yes, 5 years ago in the Ruby on Rails guys complained and the framework that was called 'Groovy on Rails' was renamed to just Grails.

It's never been called Groovy on Grails except by confused recruiters and their victims. Add a comment. Active Oldest Votes. What is Groovy on Grails? It doesn't exist under this name anymore. It's simply called Grails now. What is Groovy? What kind of Applications are built using " Groovy on Grails"? Grails is used to build web applications that run on the JVM.

What are the advantages of Groovy on Grails? Because of point 5. Improve this answer. Ofer Zelig Pascal Thivent Pascal Thivent k gold badges silver badges bronze badges. Can you explain more why you wouldn't recommend using grails with an existing data model? Can you explain more on what you mean by High productivity, focusing on business instead of plumbing.

HarryPham - Boilerplate code and dealing with "how things are done" rather than "what things do we do" of implementation — cdeszaq. Pascal Thivent - I might end up rewriting someone else's program from scratch, and if it weren't for your point about not recommending using Grails with an existing data model, Grails would be the clear winner for the framework to use.

I haven't seen the program's DB architecture yet, but I imagine it's fairly simple given the program's straightforward functionality. Would your recommendation change at all if the existing DB architecture is simple?

Could the cumbersome workflow be avoided by migrating the data in the legacy DB to a new DB, and if so would this be hard to do? Since Grails 3, there are different profiles that you can use, to customize the Grails framework for your specific needs. It is no longer solely a web framework, it can successfully be used to develop lightweight REST microservices, without the footprint of a templating engine, or even an ORM layer.

It is so little code, but under the hood, Grails and the Elasticsearch plugin will automatically index all users by name and enable us to search by name. The actual search call is also very concise:. All will be done auto-magically for us. The plugin even has an API for displaying search results — it can highlight the match found inside searched text.

This is just an example how a plugin can provide a huge bundle of functionality which can make us that much more efficient by avoiding the need for us to implement it ourselves. In Groovy, you can add methods and properties to existing classes, or even just certain instances of them. For instance, you can add a formatting method to the java. What if you want to sort a list of users by a computed value and you only need this in one case i.

You could add a property on each of those instances and then just sort or filter the collection by that property:. Below are some examples. Additional methods for manipulating java. When you want to really get descriptive with date manipulation, you can simply use the Groovy added TimeCategory class:. Then there are the IDEs.

They understand the project structure and will help you navigate through folders and resources and have shortcuts for the commands you will most often use e. With Grails you will execute commands to run a project or set-up a new plugin functionality and you will need different configurations, which is also covered by the IDEs.

Code completion works nicely in Grails web template pages where you will often reference controllers and actions. Just as with everything in life, there are caveats with Grails also. There is a lot of magic being done under the hood which can often be a good thing, but sometimes the result will not be what you expected. Bugs will happen just because of not using typing yes, types are optional in Groovy and not being careful enough.

And yourself. But these powerful lines of code might not be as self-explanatory to your coworkers. Or even to yourself in a couple of months. Time is indeed money and time to market is critical. You need to be able to act quickly and implement the solution before time runs out and your competition beats you to it. And it really felt silly to think how much more time it took me in Java to write code that stores something in database and displays it in a web page.

Grails may indeed be a useful answer. You could. Your application might even run a little faster. But you will get the job done faster with Grails. Subscription implies consent to our privacy policy. Thank you! Check out your inbox to confirm your invite. Engineering All Blogs Icon Chevron. The Grails framework relies on expressive domain-specific languages DSLs for validation, querying, markup rendering, and more. Groovy, Grails, and related technologies have seen astounding growth in interest and adoption over the past few years, and with good reason.

GR8Conf is a series of conferences founded to spread the word worldwide. The GR8Conf Europe is celebrating its 10th year, and it's expected to be a blast. As in the conference had a DevOps day, this year DevOps topics will be mixed with the rest of the topics. Enhance your knowledge and skills with some of the most recognizable names from the Groovy development scene from all around the world. Experience three days full of Groovy and Grails talks and networking Get the latest version Download 5.



0コメント

  • 1000 / 1000