Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to learn next: F# or LINQ

Tags:

.net

linq

f#

Just started to get my feet wet with C# and .NET, liking it so far. I think I've got the main gist of the C# language constructs, so what technology should I dive into next: F# or LINQ?

I'm aiming for both "broadening my horizont" programming-wise AND for "Enhancing my resume" in no particular order.

UPDATE: From reading your replies I'm so far leaning towards learning LINQ, since that is a "must for all .NET programmers". I'm leaving the question open for a bit, just to get some more oppinions. Thank you for your answers.

UPDATE 2: Ok, so from reading your responses it would seem LINQ has the easiest learning curve, and applies to C# and F# both, so time spent with LINQ is not "wasted" even if I go with F# eventually. Thanks again for your answers.

like image 871
S.C. Madsen Avatar asked Mar 04 '10 07:03

S.C. Madsen


2 Answers

LINQ is no programming language, compared to F#, but you should learn LINQ as it will make your life in C# and F# easier.

like image 162
Aurril Avatar answered Sep 19 '22 08:09

Aurril


It depends on what you need to do.

If you want to build WPF applications or ASP.NET or Silverlight applications for the Internet, dive further into C# and LINQ. If you want to build scientific, financial number-crunching applications, go with F#. If you just want to have fun, go with both :-)

Note that the effort needed to learn LINQ and the effort needed to learn F# are orders of magnitude apart: LINQ is essentially just a library and special syntax for building queries, and if you are used to writing SQL you will find it very easy to grasp. On the other hand, if you are used to imperative programming in languages like C#, mastering F# will require a paradigm shift. Thus, F# is also the technology which will broaden your horizon the most (depending on your current skillset of course).

like image 44
Rune Avatar answered Sep 20 '22 08:09

Rune