top | item 13610998

Getting Started with Functional Programming in F#

145 points| dcomartin | 9 years ago |codeopinion.com | reply

41 comments

order
[+] keithnz|9 years ago|reply
I've recently got back in to F#, one thing I like is the fact you can leverage the world of .NET

For instance, first thing I did was I used suave.io to expose a webservice for a digital IO module ( http://www.mccdaq.com/ ) and it amounted to around 50 ish lines of code. Runs flawlessly.

The F# community is pretty awesome as well with a good ratio between experts and people learning the language.

[+] jackmott|9 years ago|reply
SuaveIO is really nice to work with. Peformance is terrible but that could be fixed. Its on my list of things to have a go at improving some time with some PRs. I think the big low hanging fruit would be switching from async await to either Hopac or TPL, which is above my pay grade but there are lrobably othwr areas that could be tweaked. I encourage perf junkies to have a go at it, as it wonderful to work with.
[+] Rapzid|9 years ago|reply
fsharp would really take off if it had a framework as attractive as phoenix.
[+] elcapitan|9 years ago|reply
I'm currently learning F#, and liked everything so far, in particular that you can learn both functional style as well as interaction with existing .net apis, which allows you to build typical use-cases faster (as you would know them from imperative/oo languages, like building a small crawler). I wish there was a good ML-style language for the JVM.

VS Code has good integration, check out the Ionide plugin.

For a language introduction, this wikibook is quite ok: https://en.wikibooks.org/wiki/F_Sharp_Programming

[+] dualogy|9 years ago|reply
> I wish there was a good ML-style language for the JVM.

github.com/Frege and eta-lang.org may be tried out

[+] fnl|9 years ago|reply
> I wish there was a good ML-style language for the JVM.

Scala?

[+] pryelluw|9 years ago|reply
I just started learning F# with the help of a well known F# dev. It's been a fun challenge. Give yourself the chance to try it out. Do check out http://fsharpforfunandprofit.com Its a great resource.
[+] bogle|9 years ago|reply
I worked through quite a few of the exercises on http://exercism.io/ and can recommend the challenge and the community around it for learning by writing code.
[+] verinus|9 years ago|reply
That site sold me on F# and functional programming! Really good content I can recommend too.

Another good Source: http://blog.ploeh.dk/

[+] hacker_9|9 years ago|reply
Only problem is their tutorial code is all broken, I had to visit the github link to find what was missing and add it in.
[+] enricosada|9 years ago|reply
that website is gold anyway, not only for f#. Lots of nice concepts, explained simply.

And lots of good tutorial/ideas