Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone used WebSharper on any full projects?

Tags:

c#

f#

websharper

It looks like quite a cool idea, but a cursory google search finds nothing but code snippets: no "large" projects that are made purely using WebSharper, that would serve as a sanity check "this really works". Any experience playing around with it for a somewhat extensive period of time (i.e. to make a blog or personal website) would also be useful.

In theory it sounds like a wonderful idea: compiling a single language to multiple things to run on client, server, etc.. Typically though, the abstraction is leaky and/or restrictive enough to make it just as annoying as writing the multiple languages by hand (that's my experience with GWT) and was wondering if WebSharper was any different.

like image 686
Li Haoyi Avatar asked Oct 27 '11 14:10

Li Haoyi


2 Answers

Speaking from experience on other products, what I generally look for are those uncommon scenarios where you'll spend 80% of your time on something that should be straightforward. An example of what I mean would be resetting page count in an SSRS 2005/2008 report such that you get 1/2, 2/2, 1/3, 2/3, 3/3. You can spend an inordinate amount of time trying to do that simple thing in SSRS which should be simple to do.

I have encountered no such scenario in over 100 hours working with WebSharper. The product is very "FSharpy" and I never have to look at the generated JavaScript code.

I really recommend you try it out, but know that the APIs are quite large and I personally got lost distinguishing between server-side markup and client side code at first.

All my sites are back-end and as such I cannot share anything.

like image 186
David Grenier Avatar answered Sep 22 '22 12:09

David Grenier


As creators of WebSharper we have used it internally quite a bit, the largest project to date being FPish (http://fpish.net). Our clients use WebSharper for large projects as well, this work includes an enterprise online data visualization solution. So yes, it passes the sanity check.

That being said, there are areas where WebSharper could do a better job to support larger projects, such as compilation speed, and we are working to address those.

You make an interesting point about the restrictive or leaky abstractions. I have not used GWT, so I cannot comment much on that. Because of its functional type system I find F# to be vastly superior to both Java and JavaScript, which makes me more productive using WebSharper. Switching to F# can be a hard sell though.

like image 31
3 revs, 3 users 62% Avatar answered Sep 21 '22 12:09

3 revs, 3 users 62%