Live data from Hacker News

WebSharper: Make web apps in F#

websharper.com

1–10 of 86 posts

Re: WebSharper: Make web apps in F#

#2
This looks super interesting. I don't think I've ever seen anything like it.

At first I thought it was similar to Classic ASP or JSPs, but after looking at some the examples, it's more like a JS framework in that it generates HTML dynamically with client side code. But, the thing that really looks cool to me is the interop between client and server that you can do.

You can use the exact same "type Person = {Name:string; DOB:DateTime;}" on the server and client. That's about as DRY as you can get, I think.

Re: WebSharper: Make web apps in F#

#3
post #2

This looks super interesting. I don't think I've ever seen anything like it. At first I thought it was similar to Classic ASP or JSPs, but after looking at some the examples, it's more like a JS framework in that it generates HTML dynamically with client side code. But, the thing that really looks cool to me is the interop between client and server that you can do. You can use the exact same "type Person = {Name:stri…

That reminds me strongly of what the Ocsigen[1] project has been doing for years: Eliom as a web framework that generates both server and client side code via js_of_ocaml.

Unfortunately, it kinda suffers from a not so shiny website, cluttered documentation and high complexity. I kinda dream of those things being solved, then it would be a really appealing option.

[1] http://ocsigen.org/

Re: WebSharper: Make web apps in F#

#4
post #2

This looks super interesting. I don't think I've ever seen anything like it. At first I thought it was similar to Classic ASP or JSPs, but after looking at some the examples, it's more like a JS framework in that it generates HTML dynamically with client side code. But, the thing that really looks cool to me is the interop between client and server that you can do. You can use the exact same "type Person = {Name:stri…

That reminds me strongly of what the Ocsigen[1] project has been doing for years: Eliom as a web framework that generates both server and client side code via js_of_ocaml. Unfortunately, it kinda suffers from a not so shiny website, cluttered documentation and high complexity. I kinda dream of those things being solved, then it would be a really appealing option. [1] http://ocsigen.org/

That does look very similar. Thanks for sharing.

What's really different about these is that you don't need all the ceremony of designing routes and controllers for anything other than navigation. Need to add a phone number to a contact? Don't make a whole controller and route. Just write a function that updates the database and call that function from the client code.

And, if you care about separation of concerns, I think you can just put the RPC calls in a separate module. But, really, it's so little code, I might not even do that.

Re: WebSharper: Make web apps in F#

#8
post #2

This looks super interesting. I don't think I've ever seen anything like it. At first I thought it was similar to Classic ASP or JSPs, but after looking at some the examples, it's more like a JS framework in that it generates HTML dynamically with client side code. But, the thing that really looks cool to me is the interop between client and server that you can do. You can use the exact same "type Person = {Name:stri…

It looks similar to Elm[1] to me. Which is great as far as I'm concerned, I'm a big fan of that approach - the more exposure it gets, the better!

[1] - http://elm-lang.org/

Re: WebSharper: Make web apps in F#

#9

WebSharper is really fantastic. F#'s a great language, and not having to leave it and deal with JavaScript is a great boon. So many problems simply disappear due to type checking.

I wanna knit that last sentence on a sweater for myself. Okay, maybe not, but I really liked it.
Post reply on HN