by jiggy2011 · 14y ago · 0 comments
Would be interested in known your experiences and opinion compared to something like django or rails.
How difficult is it to build something with a complex domain model?
The one caveat I'd suggest from experience: good web frameworks exist now, so use them, and don't write your own like we did. I'd recommend Yesod.
Yes.
>Would be interested in known your experiences and opinion compared to something like django or rails.
Rails is an abomination, so pretty much anything would be better than that. We rolled our own framework in scala. Despite initial resistance from some dynamic language proponents here, it is now the only thing anyone here will use for web development. Even the python fan won't touch django now.
>How difficult is it to build something with a complex domain model?
Easier than in dynamic languages. The problem with complex models is that humans can't hold all that information in their heads. Static typing lets us offload a bunch of important information to the compiler and have it error check for us as we go. Our biggest issue has been that scala isn't strong enough, I'd much prefer to be using haskell.
I hear that. I learned Haskell because I thought it would help me understand Scala better (namely the type system), but Haskell spoiled me and I don't want to use Scala anymore. Only thing keeping me on Scala atm is Lift, a truly excellent rethinking of web frameworks. If I ever find the time I want to start porting Lift to Haskell.
Or is it more than you just want to use something statically typed that isn't Java?
We use scala in a pretty functional way, but most of the gains there come in the processing/displaying side rather than the model. Just because that portion lends itself to a functional style of applying chains of functions on data to transform it.