3 ms·
Fully agreed that current web programming is complex and that was the driving force behind making Opa. What might not be clear in the presentation of Opa is tha
by hbbio 15y ago
Fully agreed that current web programming is complex and that was the driving force behind making Opa.
What might not be clear in the presentation of Opa is that it's not some new glue on top of existing components.
It's instead a whole new, clean, technology for writing and running web applications.
And given that the language is statically typed (with inference in most cases, so it's easy for the programmer) with first-class web values, the whole point of Opa is that the compiler knows quite a lot about your application when generating the binaries. The typing system determines wether part of the code will run on the client side, on the server side (or both) for instance. This mechanism is very different from Ruby on Rails for instance, although both approaches share the goal of making the programmer's life easy.
Building RESTful services is exactly where Opa excels. Have a look at http://doc.opalang.org/index.html#_hello_web_services http://doc.opalang.org/index.html#_hello_web_services and the following chapter.