ASP.NET and F# - Creating MVC web applications in F#
1–10 of 17 posts
Re: ASP.NET and F# - Creating MVC web applications in F#
#2Re: ASP.NET and F# - Creating MVC web applications in F#
#3If you get to write all your business logic in F# and there are no needless sources of headaches, I guess that could be pretty nice if you already use ASP.NET.
Re: ASP.NET and F# - Creating MVC web applications in F#
#4Re: ASP.NET and F# - Creating MVC web applications in F#
#5If you get to write all your business logic in F# and there are no needless sources of headaches, I guess that could be pretty nice if you already use ASP.NET.
Re: ASP.NET and F# - Creating MVC web applications in F#
#6Somewhere I read an article about how easy it is to create your own view engine for MVC. Given F#'s facility with DSLs, it seems it wouldn't be too infeasible to make an F# view engine too.
http://amazedsaint.blogspot.com/2010/06/creating-custom-view...
Unrelated, but every time I see an F# article I think of a quote from Juval Lowy I heard on the Dot Net Rocks podcast (I think), which went something like "Yeah, with F# you can just slam your fingers onto random keys and it will be valid code"
(edit:formatting)
Re: ASP.NET and F# - Creating MVC web applications in F#
#7Somewhere I read an article about how easy it is to create your own view engine for MVC. Given F#'s facility with DSLs, it seems it wouldn't be too infeasible to make an F# view engine too.
Re: ASP.NET and F# - Creating MVC web applications in F#
#8Somewhere I read an article about how easy it is to create your own view engine for MVC. Given F#'s facility with DSLs, it seems it wouldn't be too infeasible to make an F# view engine too.
Some links to create your own engine in asp.net mvc: http://www.singingeels.com/Articles/Creating_a_Custom_View_E... http://amazedsaint.blogspot.com/2010/06/creating-custom-view... Unrelated, but every time I see an F# article I think of a quote from Juval Lowy I heard on the Dot Net Rocks podcast (I think), which went something like "Yeah, with F# you can just slam your fingers onto random keys and it will be valid…
There are a lot of subtleties to the syntax that are not easy for someone new to the language to figure out, especially if you are new to the functional family of languages. The error messages are not always helpful. I can see F# will be a great tool for certain problems, and once you are really proficient I can understand making a statement like this.
Re: ASP.NET and F# - Creating MVC web applications in F#
#9Earlier quoted context omitted.
Some links to create your own engine in asp.net mvc: http://www.singingeels.com/Articles/Creating_a_Custom_View_E... http://amazedsaint.blogspot.com/2010/06/creating-custom-view... Unrelated, but every time I see an F# article I think of a quote from Juval Lowy I heard on the Dot Net Rocks podcast (I think), which went something like "Yeah, with F# you can just slam your fingers onto random keys and it will be valid…
...and it will be valid code There are a lot of subtleties to the syntax that are not easy for someone new to the language to figure out, especially if you are new to the functional family of languages. The error messages are not always helpful. I can see F# will be a great tool for certain problems, and once you are really proficient I can understand making a statement like this.
Re: ASP.NET and F# - Creating MVC web applications in F#
#10But I wouldn't use it with ASP.NET. Learning F# is pretty heady and it would give your average .NET developer fits to learn it. You'd lose an advantage of using the .NET platform then - it's pretty easy to get average developers to be productive in .NET/C#. Forcing developers to learn F# would grind productivity to a halt.
Also, because of the whitespace requirements, F# is lousy in the webforms view engine. (Perhaps a Mako-like templating engine for F# would make sense).
Stick with C# for your web work and your libraries that your web site are using. Life will be easier.
If you really want to delve into F# on the web, these guys did a framework designed to be used with F#: http://www.bistroframework.org/
They also did a .NET port of the django templating engine: http://ndjango.org/