Good F # codebase to learn from

I taught myself F # for a while. I read the F # Program by Chris Smith (a great book), and I wrote some small scripts to do the work here and there.

But IMO is the best way to learn a new programming language - and, more importantly, the idioms that come with it are to read a good open source code base written in that language. Naturally, writing code in this language is crucial, but at first you basically struggle with your own ignorance about how things should be done. You could perform certain tasks one way or another, but it takes experience to understand the shortcomings and advantages of each. Even after you get a clear idea of ​​how everything works, reading the code of people who are even harder helps a lot.

Most will agree that the most insightful parts of any book on learning a programming language are code examples, and reading a well-written source code base is the next level.

So, is there F # there?

+4
source share
3 answers

Ref this question .

IMO, F # PowerPack - the best code base.

+5
source

I would say that the WPF code F # controlcase at http://wpffsharp.codeplex.com/ is a good place to start. One of the least trivial aspects of F # is the UI, and this is a great start to the UI in F #. Also, since the code base is written by someone also learning F #, you have the opportunity to see the iterations that they go through.

+3
source

Here are some additional links that may interest you:

  • If you download F # for Visual Studio 2008 , it also includes sources for the entire F # library. Sometimes this is a bit complicated code and it uses some internal tricks in several places, but sometimes it is a very good resource for learning (for example, the Map type is a great example of a tree data structure).

  • There are some official F # Samples and some F # Community Samples (which includes my 3D fractal , an example of working with quotes, and a few shorter examples).

  • You can also see the source code for samples from my book on functional programming in real time . Especially in the following chapters, relatively complex application examples are provided (parallel animation modeling, rectangle drawing application, etc.). There are many comments in the code, so this can be useful for training F #.

+3
source

Source: https://habr.com/ru/post/1311234/


All Articles