How did you start using F#?
Inspired by https://github.com/Microsoft/visualfsharp/issues/1339 and all the other parts we maybe should ask how existing F# developers were "convinced" to start using F#. I think this might bring some insights in how more people can be attracted.
So I'll start with my story:
- https://channel9.msdn.com/Blogs/pdc2008/TL11 did really make me curious (I was a student at the time)
- Out of the curiosity I looked at https://msdn.microsoft.com/en-us/library/hh314518(v=vs.100).aspx (actually the book version) because I really liked C# and this book make it easy to "migrate my brain". The examples in there made me really happy with programming again :)
- It was participating in open source projects from there
- FSharp.Formatting <- actually to generate docs for my existing C# projects
- FAKE
- and later Paket
- Now I use F# wherever possible (even though I look at alternatives from time to time, but nothing convinced me jet)
If someone has an idea to aggregate the data later let me know.
For me, it was dumb luck. I thought I was a happy C# developer, then in 2015 I saw the Advent of Code and thought this seems like a set of simple mathematical problems that would lend itself to F# (up till then, I knew about F# but didn't really "get it").
In doing the first 5 questions, I had the most fun coding I'd had in many years, I could solve the problems fast, and if it compiled, it worked first time! That was crazy to me. The code I was left with was clear, concise and something I could be proud of.
Since then, I've done more and more with it, and found the language is full of so many pleasant features, smart defaults, and overall just well designed. Now when I use other languages, I really notice the general ceremony in everything, how painful OO is, and how I really do need DU types for solving day to day problems.
Now I have a strong passion for F# and do my best to let people know about it.
I was exploring Visual Studio and stumbled upon the Visual F# tutorial project in the New Project dialog. From there I worked my way to the F# for Fun and Profit site and finally bought the Expert F# 4.0 book.
I had to build a small DSL at my work while I was still in school, so I googled "build DSL C#", only to see a link saying "use F# to build your DSL". I was interested, so I built one and loved it. I didn't know about FPParsec. Since then, F# has been my favorite language.
I had developed a communication manager in C# -- mostly by myself. I had CI with a suite of automated tests. Had QA'd it myself and even a few beta testers. Once it was deployed, guess what happened? NullPointerException even though my code was littered with null checks and validation. My mind was opened. There must be a better way, then I found it: F#. Powerful and expressive. I am most happy when coding in F#.
In 2007 - 8 I was working on an optimisation engine for the U.K power system. My C# solution was lost in a sea of static members and delegates (pre-linq) I spoke with a colleague at the time about there must be a better way, googled a little and the MSR site showed this language called F#. From there on happy days.. :)
I'd been toying with F# around the time F#3 came out. I struggled big time to "get it", but it was third time lucky for me (massively helped by going on a two day course run by some blokes called Tomas and Phil...). I'd just finished working on a large rules engine for a customer in finance and trying to create a composable, reusable set of rules within the confines of "accepted" OO design standards was a nightmare. I started to realise that what I'd been trying to do for the last 18 months was design a functional pipeline in an OO straight-jacket.
After that I started working on more data oriented solutions, as well as distributed systems - again, F# was a great tool for me to use. I never looked back.
I was building a hobby-project in C# and I wanted full test coverage. However, this led to me either writing a million assertions in each test case or writing a ton of Equals implementations for classes that didnt need them - and then of course since I had written those I would have to test them as well. While I could have my tools generate these Equals, that just felt like I was adding more and more crap-code just for my tests sake and I didnt like it. So I was googling around for ways to get around it, and I found a reference to F# records which has automatic implementation of structural equality. So I quickly rewrote just my data model in F#...and then it kept going, in a couple of weeks time I had rewrote the entire project (apart from the tests) in F#.
Looking back at that code, some of it is quite atrocious. But then I was hooked.
Sometime around 2005 or 2006, I got interested in the idea of translating C# to JavaScript, because I thought it was quite silly that you had to write a lot of logic twice if you wanted to add some client-side functionality to your ASP.NET WebForms applications. I though this would make a good topic for a final Bachelor project at the university.
I came across the Abstract IL project on one of the Microsoft Research web sites, done by a person named Don Syme. Abstract IL seemed to provide a nice way of reading IL and I thought I could use that to read compiled C# code and convert it to JavaScript. Around that time, I got invited to a regional MVP conference that was happening in Cambridge and I emailed Don asking if he will be there and if we could meet.
Don was kind enough to reply to a poorly written email by an undergraduate student and met with me. He showed me a much nicer way of doing this using "quotations" in this new language called F#. I thought that was fun, so I ended up learning F# and writing F# to JavaScript translator instead.
I started F#, during my master thesis on session types. I have been told to use F# and type providers to see if we could have an implementation of session types in F#. So in fact, it was a first deep usage of F# I had, but because of a bit of background I had with Ocaml I wasn't lost with the syntax. The learning curve was really fast, and I learned a lot coming to F# even about things unrelated to F# but to other languages.
So far, I have mainly used F# for meta-programming in small projects (Type providers), and since I am using F# I find it hard to go back to other languages.
I was writing my first attempt of a diploma thesis at the time when F# was hitting public beta. I immediately saw that it was a much better fit for what I was trying to do (compared to my ugly C# prototype). In the end I did not finish that first attempt for various unrelated reasons but from this time on I was a convert. Today I think it's a better choice for basically every programming problem.
I was looking for a better a way after being stuck in OO hell for a while. I came across a talk on Functional Programming and chose to learn F# (coming from a C# background). I've never looked back. In fact about to ship a largish application to production in the next few weeks, 100% F#.
Just watched https://channel9.msdn.com/blogs/charles/luca-bolognese-c-and-vbnet-co-evolution-the-twain-shall-meet
I wanted to pick up functional programming again (after some exposure to Haskell and Scheme in university), and did C# in the day job. I didn't want to spend time learning new APIs on top of learning another language, and being already familiar with .NET I saw this beta ML-like language created by some random guy in MSR ;). I started reading functional programming papers that I wanted to understand better, and decided to do that by prototyping an F# implementation of them.
I was working at a fairly large financial/actuarial services company, and I happened to overhear a snippet of conversation where someone mentioned F#. Raised it with my then boss who said "I wouldn't bother with that - it's just FORTRAN for .NET". And I thought - 'that can't be right', so I googled it. I then came across Luca Bolognese's great talk at PDC2008 (https://channel9.msdn.com/Blogs/pdc2008/TL11) and I was hooked. I really didn't find the learning curve hard - I just came in to work early for a few weeks and spent an hour in Cafe Nero before work reading Expert F# and experimenting with code. It wasn't long before I knew enough to start writing non-production utilities to help with my day job. I've never looked back.
Takeaways:
- Never underestimate the power of reverse psychology, even if it's accidental.
- Sometimes you just need to read a big, fat book while eating a big, fat muffin. Often 'it's too hard' really means 'I made practically no effort'.
A coworker and I were tasked to do a project. He was a python guy and I was a C# guy. We both didn't want to give in so we decided on F#. The project was successful and programming in F# changed my way of thinking. It was like I had another tool my arsenal for solving problems.. I was hooked and now I try to write F# whenever I can.
Like surban, I saw the F# node in the New Project dialog in VS2010, and wanted to know what that was about.
It took me about three tries of just opening the tutorial and staring at the code to even get started wrapping my head around the different syntax and the functional concepts. Before that, I didn't have any exposure to ML languages or even functional paradigms in general (a bit of Java in school, C++/C# privately).
Now that I actually know how easy it could be, I get sad each time I need to write another null-check, or write another Equals override for a poco in C#.
Currently I am introducing a few little F# projects into our C# solution at work. If it was up to me, we would write all new code in F#, but some of my coworkers are kind of averse to change, so where it makes sense, I create small modules in F# and wrap them with a C#-friendly interface.
After spending ~10 years doing pro software development in Lingo/ActionScript/JavaScript/VBScript/VB/C#/VB/.NET, I felt like there must be a better way...
So, while getting up-to-speed in Ruby and Python (and realizing they are no better), I stumbled across this blog explaining "functional programming" via Java. I didn't really follow a lot of it. But I liked the bits that I did understand. And, overall, it seemed promising. So I started looking in to it. But I couldn't make much headway with Haskell or OCaml (and I was still foolishly mistakenly asserting that "strong static typing" was the only way to code... blame JavaScript). This was 10-11 years ago and the tooling and documentation and communities were, in a word: insufferable. Then, right as I was near giving up, I stumbled onto an MSR site about an FP language for .NET -- with a Visual Studio plug-in no less. Being able to focus on language/concepts and not tooling/libraries seemed to lower the bar quite a bit. Then, shortly after I started playing around, Robert Pickering released Foundations of F#. That sealed the deal for me. I had an approachable guide. And that, combined with being able to use Lutz Roeter's Reflector, was enough to get me "over the hump", so to speak. I mean - hey - we didn't have Scott Wlaschin blogging back then (though Dustin Cambell wrote some helpful little gems). And then I found HubFS (anyone remember that? No? TL;DR: F# community has always been terrific for learners). Anyway, after nearly two years of nights and weekends, I felt brave enough to try slipping F# into production (circa 2009). And have now done so on 7 teams at 6 employers over the last 8 years.
Although, I still think there's a better way (hint: the issue isn't the language or the paradigm). But that's a bit off-topic for this thread. ;-)
Back in 2011 my CTO asked us, the programmers, what technical talks are we interested in (because we're hosting local .NET user group and organize talks periodically). I said that I'm interested in functional programming and F# and I'd like to listen to some external speaker talking about F#. And guess what? I was asked to be the speaker talking about F# a couple of months afterwards :)
So, I've learned F# and gave a talk at the local .NET user group conference. It was a small beginner lecture, but it was a successful one, and our local universities asked me to give it a couple of times again (and I've done it).
After that I've started using F# in some of my pet and scientific projects, and still enjoying it today.
I did OCaml in college (loved it), got my first job in a C# shop, tried Haskell but got bored, got REALLY bored with Microsoft CRM at work, decided to try F# to be less bored. Started making build scripts, cleanup scripts, several throwaway prototypes to replace CRM screens, and I haven't lost interest yet!
The best way to learn is to work on a real problem.
Don't tell anyone, but what I did was: Solution -> Right-click -> Add -> New Project -> Visual F#.
A year or so later F# code was in production (May 2010) balancing the schedule for a fleet of UK power stations.
After twenty years of trying this was my first release of something I had written with zero production defects. All the more remarkable because it was written in a language that I had never used before. I used to think that I was the problem, turns out it was the tools that I and most of the software industry was using all along.
I needed no further encouragement. It gave birth to the NOOO Manifesto.
More projects followed including the rewrite of an existing C# solution in F#. This came with the stunning realisation that the F# solution could fit in the blank lines of the C# solution with some room to spare for comments.

The rest is history.