I have earlier worked with play 1.2.4 and found the groovy template quite easier as compared to scala template in play 2.0. I have gone through the documentation of play 2.0. It seems that I should have some initial knowledge in scala. Please help me out or suggest me some tutorial to grasp a good knowledge in scala templates so that i can play with play 2.0....
Start with a beginner tutorial like this one
The playframework website- template section is a good next section to explore. You wont find everything you need on there but its got the nittygritties to templating.
You might also want to look into the basics of Scala syntax, this is a good tutorial
From there on you should have foundations and if you run into further obstacles I'm sure you can figure them out via trial and error or through asking more specific questions
Good luck
Related
i have to do a DSL and an interpreter of it using Eclipse modeling framework i think so , because i dont have a lot of information about it . I have four months to do it and i am very lost .
The DSL have to read files from sensors , and with the DSL you can make complex math operations . Anyone one know any free resource/book/tutorial/guide where i can read about that ( i can't find anything useful) or anyone can tell my some clues to follow and how start . Thank you so much.
I try to find some examples doing someting like that and i can't find anything.
Eclipse Modeling Project: A Domain-Specific Language (DSL) Toolkit and EMF: Eclipse Modeling Framework (2nd Edition) are two great books on this topic that you can get used for about five dollars each. While not free, they are well worth the small price. There is also a newer reference Implementing Domain Specific Languages with Xtext and Xtend that seems very relevant but I have not had the pleasure of reading it yet, so can't vouch for it.
There are also many free talks on these subjects on youtube and all the EMF, Xtext, etc. websites have quite a bit of tutorials.
Also, based on this question: Interpreter vs. Code Generator Xtext , Xtext does not appear to support interpreters but Xbase may.
There are examples of using XText to build an interpreter / interpreted language (eg. https://eclipse.org/Xtext/documentation/202_scripting.html).
For me, it took a while to get all plugins configurations correct, but it is well documented, on Xtext web and in github / tutorials.
Also, look at XTend (http://www.eclipse.org/xtend/) as this is a major birck in XText framework.
Is there any official documentation how to create play framework 2 plugin in scala, I find this link but it is not clear for me. I actually need to add to play command like "play migrate", is it possible to do with just sbt? Appreciate any help.
Its a bit uncertain what it is that you are trying to achieve. Maybe you can elaborate a bit ?
The play 2.3.x documentation on plugins, have been improved quite a bit over that of 2.2.x.
https://www.playframework.com/documentation/2.3.x/ScalaPlugins
I have tried and failed to create to find any good tutorials on writting plugins for Eclipse and the closest I have assumed a large degree of knowledge about the internals of Eclipse.
For what it is worth I have the programming skills to write the plugin. I need help with getting it plugged into Eclipse correctly.
The best tutorial I've found is Lars Vogels Plugin tutorial. Have a look at his other other Eclipse tutorials aswell. Alot of good content there.
Maybe this could be an interesting site for you:
http://www.eclipsepluginsite.com/
It covers setting up your plugin to advanced plugin tutorials.
I personally use it all the time.
I have been reading Groovy, and I'm half way down. I started to love groovy a lot, and apply it to solve some simple real world problem; As I love building web applications, i would go for reading Grails webframework as I know Groovy.
But If I want to build desktop-applications, which framework will be the good choice? I wanted to create a simple IDE for Groovy language(or say for any language), that can do syntax highlighting and other kind of stuffs.As mentioned earlier, I love Groovy a lot when compared to Java; And Griffon is a framework that is built on Groovy, mainly for creating Desktop-appplications. But I didn't find enough resources for Griffon!
Is Griffon is the good framework for those people who know and love Groovy(as I do)? Can I choose it for building a simple IDE as mentioned above? Or there are any other framework that is built on Groovy, which is good when compare to Griffon?
The problem I have found with Griffon is that a number of the plugins are a bit out of date in that they aren't using the latest UI libraries (e.g. Flamingo, Substance, and SwingXBuilder, altho I think this has just been upgraded to use SwingX 1.6).
I am using SwingBuilder directly, with a few extensions I have added via my own builder implementation:
http://code.google.com/p/ousia
If you want to build an IDE I can recommend the RSyntaxTextArea component, as it has great support for many programming languages and is pretty simple to use:
http://fifesoft.com/rsyntaxtextarea/
Griffon is a fairly good MVC based framework, and is built on top of Java Swing. So it can do anything that Swing can do.
To be honest I found Griffon a little too much for relatively simple UIs, so I usually write my apps in Groovy using SwingBuilder directly.
If you really want to get into Griffon I recommend getting the Book
Griffon in Action It seems to be the only place where everything is documented, although the web page is coming along and improving all the time.
There are definitely various resources out there that will let you learn more about Griffon, for example the Griffon Guide -> http://dist.codehaus.org/griffon/guide/index.html
"Griffon in Action" is another popular resource which you can buy in electronic form today; being the author of both makes me a little biased ;-)
You can keep up to date on Griffon news by following the mailing lists and #theaviary on Twitter
Up until now I've been using Scala 2.7.7 (with Programming in Scala as my main reference). But as I'm a relative n00b, and 2.8 seems as if it will be out soon, I thought it would be a good idea to start using 2.8 before I get into any bad/outdated habits.
I've seen http://www.scala-lang.org/node/1564 as a list of key new features, but does anyone have any recommendations on good articles which cover any/all of the new features in greater depth?
TIA,
Paul.
UPDATE: Have just found http://sites.google.com/site/scalatohoku/changes-and-improvements-on-scala-2-8 which seems as if it might have all the information there somewhere but was hoping for something a little easier to navigate (and preferably something I could download/print to read offline).
The true official source for current Scala improvements is:
SID: Scala Improvement Documents,
especially the ones with a status "active".
Those are PDF documents that you can easily download and read off-line.