4 ms·
It's interesting to see that a lot of the respondents wrote basically the same thing I did: the documentation for actually making even a simple application in p
by jarcane 12y ago
It's interesting to see that a lot of the respondents wrote basically the same thing I did: the documentation for actually making even a simple application in pure F# is basically non-existent.
- nbevans 12y agoThat's not true. There are loads of web learning resources for it.
- jarcane 12y agoI literally know of only a single pure F# application tutorial on the internet, Scott W.'s Calculator, and the style reads more like Java than any idiomatic FP code I've ever seen. There's scattered bits here and there elsewhere, but none actually present a complete picture of the process. They wind up resembling, as one survey respondant suggested, feeling like the old "how to draw an owl": Step 1) draw the eyes, Step 2) Draw everything else.
- pjmlp 12y agoFrom Microsoft itself "Real World Functional Programming" - https://msdn.microsoft.com/en-us/library/vstudio/hh314518%28v=vs.100%29.aspx https://msdn.microsoft.com/en-us/library/vstudio/hh314518%28... Some higher level presentations - https://channel9.msdn.com/Tags/fsharp https://channel9.msdn.com/Tags/fsharp Then there are the Erik Meijer teaching FP series, even though they are based on Haskell, given their ML common roots is also a good series to follow. http://channel9.msdn.com/Series/C9-Lectures-Erik-Meijer-Functional-Programming-Fundamentals http://channel9.msdn.com/Series/C9-Lectures-Erik-Meijer-Func...
- mineo 12y agoThis might sound a bit stupid, but I was looking into F# a while ago (26 days ago, if the timestamps of the few files I wrote don't lie :-) ) and now I'm wondering I could have found those things (especially RWFP because I usually don't like learning from videos) if I start on fhsarp.org? http://fsharp.org/about/learning.html http://fsharp.org/about/learning.html does not list them, and going from http://fsharp.org/about/index.html http://fsharp.org/about/index.html via the "Language Reference" link to https://msdn.microsoft.com/en-us/library/dd233181.aspx https://msdn.microsoft.com/en-us/library/dd233181.aspx doesn't list RWFP in the sidebar anymore.
- isaaca 12y agoI did a post last year on writing websites in F#. I personally recommend doing everything up to the API layer in F# e.g. restfully, and sticking to something like typescript on the client side. If you want a full F# end-to-end story check out something like Websharper or one of the F# <> JS cross compilers. https://cockneycoder.wordpress.com/2014/09/03/lightweight-websites-with-f/ https://cockneycoder.wordpress.com/2014/09/03/lightweight-we...
- jdh30 12y agoThere are 182 articles in the F# Journal. The F# News blog has had many applications on it: http://fsharpnews.blogspot.co.uk/2010/12/most-popular-f-samples.html http://fsharpnews.blogspot.co.uk/2010/12/most-popular-f-samp... So has Phil Trelford's blog: http://trelford.com/blog/ http://trelford.com/blog/ And many others.
- artmageddon 12y agoPerhaps there are now, but several years ago I felt that it was hard to come by.
- sago 12y agoRather than disagreeing, it might be helpful if you suggest a few complete (but simple) application tutorials written in F#. I'd be interested in that too.
- deleted 12y ago[deleted]
- tegeek 12y agoWhat do you mean pure F#? Majority of providers in FSharp.Data [1] are idiomatic F# code (also contains imperative & a bit of C#ness to use lib outside F#) 1. http://fsharp.github.io/FSharp.Data/ http://fsharp.github.io/FSharp.Data/
- jarcane 12y agoWhat I mean is writing a desktop application without falling back to using C# for all the front-end code and relegating F# to being a glorified DSL for data processing. Microsoft doesn't believe anyone wants to make apps in F#; Visual Studio doesn't even come with templates for it. You're expected to use F# to write libraries like Fsharp.Data, and write your app code in C#. If I wanted to code in C#, I'd code in C#, but I don't.
- tegeek 12y agoA desktop app on Windows either uses WPF or WinForms. In either case F# doesn't stop at all. In fact I would say that building WPF desktop on F# is more intuitive than C#.
- louthy 12y agoopen System.Windows.Forms [<EntryPoint>] let main argv = let form = new Form() let button = new Button() button.Text <- "Click me" button.Click.Add (fun _ -> MessageBox.Show "Hello" |> ignore) form.Controls.Add button Application.Run form 0
- tegeek 12y agoI would also like to add that F# is functional, imperative & OOP language. If any program uses any combination of these, it is still the F# code. But I agree there has to be more taste of "F#" since it is a functional first language.
- eggy 12y agoI love F#, and I was looking at Idris for a more functional program verification, theorem-proving language. Then I stumbled upon F* (Fstar) - https://www.fstar-lang.org/ https://www.fstar-lang.org/ It is like F# but uses the Z3 solver, and is very ML like.
- spikej 12y agoI find more trivial examples and exploratory code out there (using type providers, etc), than complete examples that show best practices -- at least for web development. I haven't come across any complete examples for simple web applications without too many dependencies that you can easily learn from
- fsloth 12y agoExpert F# 3.0 by Don Syme et all contains quite a lot of example code, including a simple web app using asp.
- fsloth 12y agoIt's the same learning path as other MS stuff - by the books- which are pretty swell. http://fsharp.org/about/learning.html http://fsharp.org/about/learning.html
- jast 12y agoHave you looked at http://fsharpforfunandprofit.com/ http://fsharpforfunandprofit.com/ ? This site contains lots of useful information and would be enough to get started. Another possibility is to read a few books, e.g., Expert F# 3.0, F# Deep Dives.
- jdh30 12y agoF# Journal articles walk through the design and implementation of dozens of different example applications including both client GUI and server with sockets and so on.