Play web framework is quite nice. Edit and save Java source code, refresh browser to see the change instantly. No compile/restart/XML config etc. Testing, ORM and other good stuff are built in too.
There is a Scala module to let you use Scala, also you can mix it with Java. From Play's doc, "Thanks to the flexibility of the play framework architecture, the Scala support is provided with a simple module. "
To me Fantom is more pleasant to work with than with other JVM languages. Fantom(a great language) + a powerful and fun web framework = awesomeness and more users of Fantom.
My question is: because of the differences between Fantom and Scala, is it easier to develop such a module (than the Scala one)? And what do you think of the Fantom and Play combination? Thanks.
brianSun 13 Jun 2010
Play looks nice from what I have seen. Depending on how you wanted to approach the problem you could put Play inside of Fantom as a WebMod to be combined with other Fantom WebMods. Or you should be able to easily do something like what I assume the Scala module is doing (I am not familiar with what is going on under the covers there though).
There are lots of really nice things in Fantom that make writing web apps like this really nice:
standardized web API (without all the servlet cruft)
standardized webmod API for composing web functionality
But where Fantom really shines is when your front end is all Fantom-JavaScript just making REST callbacks to the server. In that architecture your front end gets to leverage FWT and all your existing Fantom data structures. And your back end gets simplified to just a database CRUD interface via Json, XML, CSV, etc. This is the architecture we use for our product SkySpark and its been working out really great.
Kevin95 Sat 12 Jun 2010
Hi all,
Play web framework is quite nice. Edit and save Java source code, refresh browser to see the change instantly. No compile/restart/XML config etc. Testing, ORM and other good stuff are built in too.
There is a Scala module to let you use Scala, also you can mix it with Java. From Play's doc, "Thanks to the flexibility of the play framework architecture, the Scala support is provided with a simple module. "
To me Fantom is more pleasant to work with than with other JVM languages. Fantom(a great language) + a powerful and fun web framework = awesomeness and more users of Fantom.
My question is: because of the differences between Fantom and Scala, is it easier to develop such a module (than the Scala one)? And what do you think of the Fantom and Play combination? Thanks.
brian Sun 13 Jun 2010
Play looks nice from what I have seen. Depending on how you wanted to approach the problem you could put Play inside of Fantom as a WebMod to be combined with other Fantom WebMods. Or you should be able to easily do something like what I assume the Scala module is doing (I am not familiar with what is going on under the covers there though).
There are lots of really nice things in Fantom that make writing web apps like this really nice:
sys::Env.compileScript
But where Fantom really shines is when your front end is all Fantom-JavaScript just making REST callbacks to the server. In that architecture your front end gets to leverage FWT and all your existing Fantom data structures. And your back end gets simplified to just a database CRUD interface via Json, XML, CSV, etc. This is the architecture we use for our product SkySpark and its been working out really great.