Live data from Hacker News

Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

yesodweb.com

11–20 of 113 posts

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#11
Some points:

* Generating migrations automatically when saved may cause some troubles while making large changes. It's a default setting?

* Hamlet seems good but not so obvious for real-world designers. Would be great if you provide an easy way of switching to another template language.

* Keep the good work :)

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#12

A question I'd love to see a good answer to. We've got Yesod, we've got Happstack, and also Snap. What are the major differences between them? Is one of them a clear winner, the way Django/Rails are in Python/Ruby respectively?

If you prefer Django to Pyramid, you'll probably prefer Yesod to Happstack for basically the same reasons. Snap is more like the Java Servlet API.

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#13
post #6

I have one question about yesod: how easy is it to switch templating languages? I had a look at it more than once, but hamlet always turned me off. Is it easy to switch to, say, hastache?

hamlet is by far Yesod's best feature. I have already ported it to Ruby (hamlet.rb) and Javascript (hamlet.js). Many users come with different pre-conceptions about what a good template language should be, but once they actually start using Hamlet, they love it. So honestly I am not 100% sure how much effort using a different template language is because not a single user has wanted to switch to an alternative. That…

I agree. Having also used erb and haml, I find that Hamlet is the best of both worlds. close enough to HTML for designers to understand implicitly but with a lot of the HTML warts gone.

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#14

Some points: * Generating migrations automatically when saved may cause some troubles while making large changes. It's a default setting? * Hamlet seems good but not so obvious for real-world designers. Would be great if you provide an easy way of switching to another template language. * Keep the good work :)

It is a default but its quite simple to turn off. In one project, we turned it off and whipped up some quick shell scripts to do rails style up/down migrations.

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#17

Some points: * Generating migrations automatically when saved may cause some troubles while making large changes. It's a default setting? * Hamlet seems good but not so obvious for real-world designers. Would be great if you provide an easy way of switching to another template language. * Keep the good work :)

Thanks! Actually I am convinced that Hamlet is the best template language for real-world designers because it is just HTML. Our reports back from designers have all been very positive. For Haskell Hamlet (there is a Ruby & JS version) certainly manipulating Haskell code is different that what they are used to, but that has little to do with Hamlet. There is an advantage however: they get an error message right where the error is at compile time rather than having to trace things at runtime.

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#18
post #6

I have one question about yesod: how easy is it to switch templating languages? I had a look at it more than once, but hamlet always turned me off. Is it easy to switch to, say, hastache?

hamlet is by far Yesod's best feature. I have already ported it to Ruby (hamlet.rb) and Javascript (hamlet.js). Many users come with different pre-conceptions about what a good template language should be, but once they actually start using Hamlet, they love it. So honestly I am not 100% sure how much effort using a different template language is because not a single user has wanted to switch to an alternative. That…

>hamlet is by far Yesod's best feature

In your opinion.

>but once they actually start using Hamlet, they love it ... not a single user has wanted to switch to an alternative.

Hamlet is one of the major reasons we're using snap instead of yesod. Of the 5 devs here who worked on a test app in yesod, the most favourable reaction to hamlet was "well, I guess I could live with it if I had to". Just because we didn't come ask "how hard is it to use a decent template system with yesod" doesn't mean we love hamlet. We just tried out snap and happstack instead, where using whatever template engine you want is obvious and trivial.

Re: Yesod 1.0 - a robust, friendly, high performance web framework for Haskell

#19

A question I'd love to see a good answer to. We've got Yesod, we've got Happstack, and also Snap. What are the major differences between them? Is one of them a clear winner, the way Django/Rails are in Python/Ruby respectively?

Yesod is the clear winner in terms of features, number of users, active development and community, or probably any other of the usual metrics. That alone doesn't mean it is the best. Rails is the winner in Ruby, but I often prefer Sinatra.
Post reply on HN