←back to thread

Why F#?

(batsov.com)
447 points bozhidar | 1 comments | | HN request time: 0.242s | source
Show context
7thaccount ◴[] No.43546330[source]
F# is beautiful, but I could never crack the nut and get fluent in it. I think the big problem is I only know a little C#, so it is difficult to figure out the object oriented methods that F# depends on. It was the same thing with Clojure and Scala for the JVM. I have zero interest in first learning C# or Java, just to use those platforms.
replies(2): >>43546337 #>>43546786 #
netdevphoenix ◴[] No.43546337[source]
you are not supposed to do oop in f#
replies(6): >>43546372 #>>43546385 #>>43546428 #>>43546456 #>>43549887 #>>43549949 #
7thaccount ◴[] No.43546372[source]
I'm aware, but you need to understand the .NET ecosystem to get anything practical done (at least when I was using it in 2017). All the books written on it (I own 3) are also the same way and assume you're a skilled C# dev.
replies(1): >>43546507 #
miloandmilk ◴[] No.43546507[source]
100% this, I spent many months going through the most recent books on F# including one which the latest version was only released last year I think.

They all seem to try and shield you from the fact that you are much better placed if coming from C# (which everyone seems to refer to as .net these days) and have a solid understanding of the .net class library.

All the main web frameworks sit on top of asp.net and pretty much all official documentation for that is in c#

Such a shame because I learnt so much about types from trying to crack f# for real world application. fsharpforfunandprofit taught me heaps which I apply to other languages, but I don't want to become a c# developer which comes with all the years of changing best practices to be able to really be productive in f#.

Sorry if I am coming across as bitter but I just can't see learning f# in isolation from c# which is an absolute shame.

replies(1): >>43546778 #
neonsunset ◴[] No.43546778[source]
What is the issue with learning C# alongside it, if only the bits necessary to improve the F# experience? Both are excellent languages.
replies(1): >>43547962 #
1. miloandmilk ◴[] No.43547962[source]
They are both excellent languages, I just literally don't have the time to commit to do that at the moment.

I think if I ever have time for another go I would learn enough to be proficient in c# before diving back in.