Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm mostly doing Golang/Typescript nowadays and worked with C# in the past, but F# looks really intriguing.

While I'm generally productive with Golang, I'm not really happy with the language itself. It's a bit too simplistic for my taste. F# on the other hand looks like pure elegance. The big question is how long it takes you to be really productive with it, say for a GraphQL/REST backend for some SPA. I'm also a bit worried about the small community. I guess if things go wrong, you can always fallback on C#. Any tips to get up to speed quickly?



Download Rider, and use it to generate a dotnet core 5.0 web api in F#.

That will give you a restful api using F# that you can immediately modify to build out an endpoint. Figure out how to add in authn/authz using just regular aspnet core and you'll be ready to go. I like dapper for data access in F#, but plenty prefer a more traditional ORM like nhibernate or EF6.

You'd be surprised how much you can do with F#, the only caveat is learning to read docs in C#. Since that's considered the lingua franca of .NET, almost all docs will be in C# and need to be transliterated into F#. This is a skill that only takes a day or two to learn.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: