Hacker News new | ask | show | jobs
by davidgl 3408 days ago
A more concise cheat sheet: http://dungpa.github.io/fsharp-cheatsheet/
2 comments

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

* ...

Rosetta Code might help there:

- http://rosettacode.org/wiki/File_input/output#F.23

- http://rosettacode.org/wiki/HTTP#F.23

However, it's probably not terribly interesting since those are things that exercise the BCL, so any C# example would do to show you how it's done.

Expert F# by Don Syme et. all is a fantastic book for precisely this purpose.

People are doing themselves a disservice if they scramble for a collection of cheat sheets since there are so good books available.

Can you go straight to this book or do you need to get a certain comfort level with f# first? I have the latest edition for F# 4 but haven't read it yet, plan to as part of my learning the language but haven't figured out order.
It's pretty good.
I certainly looked at the cheat sheets, played around a lot, read lots of online tutorials. Only once I had a basic understanding did I read Don's Expert F#, its great, but not for beginners.
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/

This site actually does precisely that http://fssnip.net
That's a great idea. I think most people come to F# knowing a bit of .NET already, so these types of things are often overlooked.