by breatheoften · 6y ago · 0 comments
I've not seen anything as elegant looking as F# in the .net world before ... What do people think ... -- is F# a good language for a beginner to learn which is also sufficiently well-supported that they could find themselves building useful script-like database (MSSQL) oriented utilities as early project ...?
If your friend is looking into getting into .net for professional purposes, I would steer them towards C# first. That's likely to be much more useful in the long term. Especially since it can be a stepping stone to other C/C++ like languages.
With F# I would bet that they hit some limitation sooner or later where something that could be easily done in C# will take more work in F#. Which could be fine if they have the time/inclination to rough it. I just would not advise F# as a resume builder.
Start with F#. Learn the basics well.
Parent - Checkout
https://fsharpforfunandprofit.com/
https://docs.microsoft.com/en-us/dotnet/fsharp/introduction-...
From my experience of working with both C# and F# for a few years, it's more likely to be the other way around.
It is also not officially supported on UWP, and needs some hacks to the generated MSIL (as .NET Native doesn't cover 100% of all MSIL).
Disclaimer: I'm the author
This will be fixed on Java side, with value specializations as per Valhala roadmap.
Extension methods are also a way to create lots of spaghetti code, trying to track down where the method is actually implemented.
Swift and Kotlin codebases are good examples on how one can go a bit too far with extension methods.
Java's solution is to offer default interface methods as an approach to traits, which was copied by C# 8.
Regarding interfaces, if you mean explicit interface implementations, besides forcing casts everywhere I don't see what is so well thought out about them.
[0] - https://docs.microsoft.com/en-us/archive/blogs/gauravseth/cu...
Not sure what you're referring to here (you can implement interfaces of other packages in Java), but everything else you mentioned is not related to C#/Java's OO system.
Also, since he is a DBA, he could be introduced to ".NET" via powershell as microsoft has been trying to make powershell the default IT/DBA shell for the windows world. It's like bash for windows but entirely object driven.