Resources for Grails Best Practices [closed] - grails

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
This question is too general for answers directly in stackoverflow (see this closed question) however I think the community would beneift from having starting points for high quality external articles which can dive into the topic in more detail.
I'd like to see the most informative article on Grails 'Best Practices' based on the following criteria:
how to split tasks between controllers/views/services/domain objects
testing
security
when to use plugins
database design considerations
topics specific to Groovy or Grails that would not be part of general best practice guides
Please answer with a link to an external article adding just a short summary. Please do NOT comment too much on whether you think individual ideas/patterns are good otherwise this question will be closed for 'soliciting debate and discussions'

This InfoQ article on Grails best practices has an excellent list of how to split logic between controllers/views/services/domain, testing, config and other Grails specific considerations.
It's a short article and I'd recommend it to any Grails developer

The GrailsPodcast website just had a good 'best practice' session: http://www.grailspodcast.com/blog/id/249 (currently offline)

There is a presentation by grails persistence expert Burt Beckwith explaining potential performance issues with out-of-the-box usage of hasMany/belongsTo mappings in GORM:
http://burtbeckwith.com/blog/files/169/gorm%20grails%20meetup%20presentation.pdf
Here's an example of how to apply one of the cases that Burt exposes:
https://mrpaulwoods.wordpress.com/2011/02/07/implementing-burt-beckwiths-gorm-performance-no-collections/

Related

Cypher Learning for Web Devepers [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I want to use Neo4j for my web applications. I am using Node.js for the server side. As I understand, I will have to learn Cypher to query the database.
On the website I could find only a Reference guide. I'm looking for some complete tutorial, at least for the introductory part, regarding the integration of this into the website development process. I don't know Java and I don't want to learn it at the moment.
Thanks for sharing!
Having some SQL knowledge, this webinar will take you step by step from 0 to beginner: http://watch.neo4j.org/video/60292144
After this, you will have to refer to your own server-side language to complete the integration, but that should be the most effortless part.
Here are some useful beginner knowledge sources:
Watch the webinars about Cypher on:
http://watch.neo4j.org/
Play around in http://console.neo4j.org
Check out the various node.js drivers that support Cypher--I believe the Thingdom one is the most popular:
https://github.com/thingdom/node-neo4j
Check out examples that use Cypher on Max's blog:
http://maxdemarzi.com/category/cypher/
Luanne posted an excellent guide to query optimization (which may be a bit advanced for newbies, but you should still read it), as well as other Cypher-related posts on the same blog:
http://thought-bytes.blogspot.com/2013/01/optimizing-neo4j-cypher-queries.html
Also, I've posted two introductory blog posts about Cypher just recently, and plan to post more:
http://wes.skeweredrook.com/cypher/
The Graph Databases book:
http://graphdatabases.com/
Feel free to post your newbie Cypher questions here--I'll set this to a community wiki in case anyone has any more resources to add.

Same code base differences to merge [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We had 2 projects in TFS with same code base. 2 development teams were working on those. We are now merging the code to a one project and this is not an easy task to do manually.
Before starting development in separate we have not used any functionality that TFS provides to make this sort of work easy. Like branching, labeling or any other.
Can I get some guideline or best practices to plan this kind of work so we can adopt it in future to overcome this sort of work.
Link for a TFS guide for developers will also be helpful.
Thanks in advance.
The TFS Branching Guide is probably a good place to start. It will help you with structuring your source based on different usage scenarios
You might also want to look at answers to this questions: How to branch and merge in TFS
In regards to a "TFS guide for developers" the MSDN documentation is a good starting point. Beyond that consider the various books that have been published - there are some good ones out there.

need some tutorials on Grails Shiro Security [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
hey all
i need some good tutorials demonstrating all the aspects of grails shiro securty, that how to use them using some example.
i already have read the tutorials explained in grails site but i need some tutorials with examples.
Please help friends...
m waiting for some positive response.
the shiro-plugin is great regarding it's functionality, but not too well documented - I agree.
So I guess you will not find any additional tutorials beyond what you already know.
As with most of the plugins, they are mostly simple wrappers around the main library, so a good start to understand shiro is the shiro documentation.
Next problem is to understand how Peter Ledbrook mapped the shiro functionality to grails features. For me, the most important thing was that shiro methods like SecurityUtils.subject.isPermitted are mapped to the methods you'll find in the realm. By modifying the realm file, you'll be able to do nearly all tricks you need to do (for instance get some permissions through LDAP).
If you could be more specific on what you need to know about shiro in detail, maybe I could give you a better answer :-)
You might check out the nimble plugin (http://www.grails.org/plugin/nimble). It uses Shiro and would probably be a good example.
You can find a sample app on the Grails site you just need to check out.
another one is here and here and some Videos on google
I know I am late but I actually had the same question today and following Ralf answer lead me here: http://shiro.apache.org/10-minute-tutorial.html, which I think is the best place to start

collaborative filtering in rails [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a solution for collaborative filtering in rails or even possible examples. So far I have only found acts_as_recommendable which looks useful but I noticed it hasn't had any updates in the last 2 years.
Does anyone know of any other solutions and/or examples?
Have you evaluated Apache Mahout? It is a Java based solution, with HTTP access to recommendation engine.
Reference:
Introducing Mahout
This pertains to the examples part of your question, as both the libraries mentioned below are in Java.
The article referenced in above answer, written by Apache Mahout-Taste library author, has neat examples, source code of the examples( using 2.5GB wikipedia data) , and an excellent packaging to run and see those examples in action, in a few minutes.
Apache Mahout-Taste
The specific section is Building a recommendation engine
Here is another open source recommendation engine.
easyrec
In 2013, there's the ActiveRecord Reputation System gem by Twitter. There's also a free RailsCast on the topic.
here is a 50 line recommendation system in Ruby: http://www.igvita.com/2007/01/15/svd-recommendation-system-in-ruby/
there is one link there which doesn't work (when he says "mathies click here" it points to Using linear algebra for intelligent information retrieval by Berry et al.: http://www2.denizyuret.com/ref/berry/berry95using.pdf )

What the best XNA blog? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I know good general programming blogs (like coding horror ;) ).
But I want very good specific XNA blog.
Suggestions?
Shawn Hargreaves and Nick Gravelyn are two names that I run across a lot when looking for information on XNA.
It's not as much of a blog, but Ziggyware also has a lot of great information.
And you can also find helpful information right on the XNA forums and GameDev.net forums.
Oh, also, I like to read Gamasutra, which has articles from people developing on XNA.
I really like Shawn Hargreaves blog. He has a lot of code examples and shows a lot of best practices and tricks to help development.
You can start from www.creatorsclubonline.com , they have a huge list of links to XNA specific blogs. (not sure if you are looking at beginner level or advanced level blogs)
Meanwhile here are some...
http://blogs.msdn.com/etayrien/
http://www.xnatutorial.com/
http://www.xnadevelopment.com/tutorials.shtml
http://www.xnatutorial.com/
http://www.phstudios.com/?q=node/16
best
It depends what it is you expect from a blog. If you're searching for knowledge and techniques, you'd be grazy not to spend some time at Riemer's tutorials as well!

Resources