Live data from Hacker News

A whirlwind tour of object-oriented code in F# (2012)

fsharpforfunandprofit.com

31–40 of 130 posts

Re: A whirlwind tour of object-oriented code in F# (2012)

#31

Earlier quoted context omitted.

F# in VS Code: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g... F# in .NET CLI: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g... C# in VS Code: https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-... Supported Linux versions: https://docs.microsoft.com/en-us/dotnet/core/linux-prerequis... Supported macOS versions: https://docs.microsoft.com/en-us/dotnet/core/macos-prerequis... Ri…

Thank you for these links. I will look at them! But I am wondering qualitatively, along the lines of whb07’s sibling answer: is the experience good? Is it as good as on Visual Studio?

C# was usable in VS Code even 3 years ago

Re: A whirlwind tour of object-oriented code in F# (2012)

#32
post #21
post #8

The problem is F# doesn't get enough resources internally at Microsoft. How many times has VS shipped missing the latest version of F# tools? In terms of community, it's tiny. If I want to do functional programming, F#/.NET isn't the strongest option. I have several books on F# and as much as I'd like to learn/use it beyond toying around, I can't help but feel like all it's worth using for is tinkering (outside of th…

What is the strongest option for functional programming then? I love Clojure as a language but it's almost impossible to find decent jobs with it in my area.

Scala is probably the most pragmatic functional programming language to get a job in. It's on the JVM and you can use all the Java libraries, and it also lets you fall back to an imperative style if you need to.

Re: A whirlwind tour of object-oriented code in F# (2012)

#34
post #26

For all the love Microsoft has been getting these days, I still don’t get how I’m supposed to write C# or F# without Visual Studio and Windows. Am I missing something? VSCode doesn’t support these languages, right? I’m a person who spent a long time trying to write Java in Vim, but switched to IntelliJ and wouldn’t want to write C#/F# without some comparable IDE.

You can use Rider which is a very good crossplatform JetBrains IDE. I found it very fast too (I use it on Fedora in my laptop)

Rider is in some ways better than VS. If you have moderately large solutions and a powerful desktop, you will frequently be butting up against the 32-bit memory limit of VS, especially if you tear off any editor windows to put on another monitor (I don't know why this exacerbates the problem so badly, but I've been seeing it steady since VS 2013). Once you get around 2GB of memory in use, things drag to a crawl.

Re: A whirlwind tour of object-oriented code in F# (2012)

#35

Earlier quoted context omitted.

F# in VS Code: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g... F# in .NET CLI: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g... C# in VS Code: https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-... Supported Linux versions: https://docs.microsoft.com/en-us/dotnet/core/linux-prerequis... Supported macOS versions: https://docs.microsoft.com/en-us/dotnet/core/macos-prerequis... Ri…

Thank you for these links. I will look at them! But I am wondering qualitatively, along the lines of whb07’s sibling answer: is the experience good? Is it as good as on Visual Studio?

VS Code doesn't work for the older .NET Framework stuff (pre .NET Core).

As for doing .NET Core stuff, it depends a lot on your setup of both Code & Visual Studio. Code has some nice features that you would need extensions or an upper tier VS version to get. Code can be faster at times as well.

At the end of the day it is a different experience with a few pros & a few cons. It will greatly depend on the way you program.

Re: A whirlwind tour of object-oriented code in F# (2012)

#37

Earlier quoted context omitted.

Thank you for these links. I will look at them! But I am wondering qualitatively, along the lines of whb07’s sibling answer: is the experience good? Is it as good as on Visual Studio?

C# was usable in VS Code even 3 years ago

How is it these days? Is it “usable” or actually something you want to and enjoy using? Will I be left wanting Visual Studio? I mean I really enjoy IntelliJ, it makes programming Java like slicing butter. But I do want to try F#, people talk so highly of it.

Re: A whirlwind tour of object-oriented code in F# (2012)

#38
post #21

Earlier quoted context omitted.

What is the strongest option for functional programming then? I love Clojure as a language but it's almost impossible to find decent jobs with it in my area.

Scala is probably the most pragmatic functional programming language to get a job in. It's on the JVM and you can use all the Java libraries, and it also lets you fall back to an imperative style if you need to.

That sounds exactly the same as F# (except there might be more jobs in scala).

F# is on .NET CLR and you can use all the .NET libraries, and it lets you fall back to an imperative style if you need to!

Re: A whirlwind tour of object-oriented code in F# (2012)

#39
post #8

The problem is F# doesn't get enough resources internally at Microsoft. How many times has VS shipped missing the latest version of F# tools? In terms of community, it's tiny. If I want to do functional programming, F#/.NET isn't the strongest option. I have several books on F# and as much as I'd like to learn/use it beyond toying around, I can't help but feel like all it's worth using for is tinkering (outside of th…

Latest example, WinUI roadmap doesn't consider F# relevant.

https://github.com/microsoft/microsoft-ui-xaml/blob/master/d...

Guess what is one of the complains on the feedback thread?

Re: A whirlwind tour of object-oriented code in F# (2012)

#40
post #15

I used to be a big Haskell programmer. While I still love the language, I've really come around to the idea that strictly evaluated functional languages like F# or OCaml are the best for programming in. You get the nice functional features but don't have the straightjacket of laziness forcing you into certain design decisions. It's really nice sometimes to be able to mix in impure, side effectful code without having…

Hopefully we will see this one day: https://github.com/fsharp/fslang-suggestions/issues/243
Post reply on HN