Live data from Hacker News

Tour of F#

docs.microsoft.com

11–20 of 140 posts

Re: Tour of F#

#11
post #7
post #5

A more concise cheat sheet: http://dungpa.github.io/fsharp-cheatsheet/

I don't know if there's such a thing (maybe I should write one myself, as I plan to learn F# :) ), but a cheat sheet that is a bit higher level would be useful. Things like: * how do I read a text file * how do I write a text file * how do I download a file using HTTP * ...

That's a great idea. If you set up a github or wiki, I'd be happy to help out and fill in areas. If you want to get more people to help, market the cheat sheet as "The Right Way".

There's no better way to invite help from strangers. :)

http://www.phptherightway.com/

Re: Tour of F#

#13
post #3
post #2

One observation from watching Go and Rust gain popularity is that having an online code evaluation tool like https://play.rust-lang.org/ or https://play.golang.org/ can do wonders for adoption. People can experiment in a sandbox without having to hop into a development environment, and peers have an easier time debugging by easily sharing and reproducing problems. For anyone interested in trying out F# online, looks…

I like this one https://dotnetfiddle.net/ (F# needs to be selected as a language)

I like playing with F# in a Jupyter notebook.

https://notebooks.azure.com/

Re: Tour of F#

#14
post #2

One observation from watching Go and Rust gain popularity is that having an online code evaluation tool like https://play.rust-lang.org/ or https://play.golang.org/ can do wonders for adoption. People can experiment in a sandbox without having to hop into a development environment, and peers have an easier time debugging by easily sharing and reproducing problems. For anyone interested in trying out F# online, looks…

there is also http://try.websharper.com/ for toying with the language and websharper.

Re: Tour of F#

#15
Author of the article here. Happy to see this up on HN!

The article is actually more of an annotated version of the F# Tutorial Script[0] which ships inside Visual Studio 2017 (also in other version of Visual Studio, but the Tutorial script is a bit different there).

You can get started with F# just about everywhere everywhere:

* Visual Studio[1]

* Visual Studio for Mac[2]

* Visual Studio Code (via Ionide plugins)[3]

* .NET Core and the .NET CLI (`dotnet new console -lang F#`)[4]

* Azure Notebooks (Jupyter in the browser via Azure) [5]

[0]: https://github.com/Microsoft/visualfsharp/blob/master/vsinte...

[1]: https://www.visualstudio.com/vs/visual-studio-2017-rc/

[2]: https://www.visualstudio.com/vs/visual-studio-mac/

[3]: https://marketplace.visualstudio.com/items?itemName=Ionide.I...

[4]: https://dot.net/core

[5]: https://notebooks.azure.com

Re: Tour of F#

#16
What's the quick start for using F# on the Mac? Can I get a good native development environment? Am I better off running a Windows VM to get better tooling?

Re: Tour of F#

#17
The problem I had going into this without a strong functional background is that often times to do practical things you're forced to work with .NET libraries - these .NET libraries are not nice functional libraries and don't encourage you to think functionally. Eventually I felt like everything I wrote was wrong and I just gave up on it.

Re: Tour of F#

#18
post #16

What's the quick start for using F# on the Mac? Can I get a good native development environment? Am I better off running a Windows VM to get better tooling?

There are multiple ways to use F# on the Mac. I use both Visual Studio Code with Ionide and Visual Studio for Mac.

VSCode plugin: https://marketplace.visualstudio.com/items?itemName=Ionide.I...

VS for mac: https://www.visualstudio.com/vs/visual-studio-mac/

There is a guide for VSCode + Ionide here: https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

Re: Tour of F#

#19

The problem I had going into this without a strong functional background is that often times to do practical things you're forced to work with .NET libraries - these .NET libraries are not nice functional libraries and don't encourage you to think functionally. Eventually I felt like everything I wrote was wrong and I just gave up on it.

I had the same feeling with Clojure. I'm not sure it's due to not having a strong functional background; I think it might be the reality of interop between very different languages.

Re: Tour of F#

#20
post #16

What's the quick start for using F# on the Mac? Can I get a good native development environment? Am I better off running a Windows VM to get better tooling?

There are multiple ways to use F# on the Mac. I use both Visual Studio Code with Ionide and Visual Studio for Mac. VSCode plugin: https://marketplace.visualstudio.com/items?itemName=Ionide.I... VS for mac: https://www.visualstudio.com/vs/visual-studio-mac/ There is a guide for VSCode + Ionide here: https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tuto...

What's the difference between VSCode and Visual Studio for Mac, for developing F#? What's the reason that you find yourself using both? I thought it would be preferable to just have one IDE.
Post reply on HN