These days I am interested in learning F#, and would like to use it for GUI applications. Unfortunately I have no previous background in .Net or C#. Are there any good resources (web sites, books) for learning this without going through C# first?
这些天我有兴趣学习F#,并希望将它用于GUI应用程序。不幸的是,我以前没有.Net或C#的背景知识。是否有任何好的资源(网站,书籍)可以在不经过C#的情况下学习它?
Many thanks in advance.
提前谢谢了。
5 个解决方案
#1
19
The Real-world Functional Programming book that I wrote with Jon Skeet (sorry for the advertisement!) expects some existing knowledge of object-oriented languages (e.g. C#) but it briefly explains all more advanced features that C# has compared to, for example, Java.
我与Jon Skeet一起写的真实世界的函数式编程书(对于广告感到抱歉!)期望一些现有的面向对象语言知识(例如C#),但它简要解释了C#所比较的所有更高级的功能,例如, Java的。
It has a few examples of GUI programming using WinForms (a more modern framework would be WPF, but some concepts are essentially the same). You can take a look at a few examples, because there is some free content related to GUI:
它有一些使用WinForms进行GUI编程的例子(一个更现代的框架是WPF,但有些概念基本相同)。您可以看一些示例,因为有一些与GUI相关的免费内容:
- Chapter 4 (coincidentally, available as a free sample :-)) shows how to implement an application for drawing simple graphs using basic features.
- 第4章(巧合地,作为免费样本提供:-))展示了如何使用基本功能实现绘制简单图形的应用程序。
- Programming user interfaces using workflows (free excerpt) shows one advanced pattern that's very useful for writing reactive applications (as I know, this isn't described anywhere else in much details)
- 使用工作流程编程用户界面(免费摘录)显示了一种高级模式,这对于编写反应式应用程序非常有用(我知道,在其他任何地方都没有详细描述)
As far as I know, Robert Pickering's Beginning F# also has some user interface examples and it also includes some WPF examples (although I don't have the book yet, so I don't know what exactly does it contain).
据我所知,罗伯特皮克林的Beginning F#也有一些用户界面示例,它还包括一些WPF示例(虽然我还没有这本书,所以我不知道它究竟包含什么)。
However, none of the F# books will make you GUI Expert. You'll still need to spend some time learning about WinForms/Silverlight/WPF in more details. There are plenty of examples in C# on the internet and after reading one of the above, you should be able to translate them directly to F#, but buying a technology-specific book may be a good idea too.
但是,没有一本F#书能让你成为GUI专家。您还需要花一些时间了解WinForms / Silverlight / WPF的更多细节。在互联网上的C#中有很多例子,在阅读上述内容之后,您应该能够将它们直接翻译成F#,但购买特定技术的书也可能是一个好主意。
#2
5
I just got the The Real-world Functional Programming book and if you want to mix F# with GUI stuff that's the book for you since it has plenty of examples and it jumps right into it. That's the main reason I got it :) Online I've come across this and I like the F#/DirectX example. F#.NET tutorials and examples
我刚刚获得了The Real-world Functional Programming一书,如果你想把F#和GUI这些书混合在一起,因为它有很多例子,它会直接进入它。这是我得到它的主要原因:)在线我遇到了这个,我喜欢F#/ DirectX的例子。 F#.NET教程和示例
#3
5
My book Visual F# 2010 for Technical Computing has a chapter devoted to graphics using WPF and covers basic WPF controls and the use of WPF from F# interactive. There are also many articles in The F#.NET Journal that cover WPF (scroll down and run some of the downloadable demos). Our F# News often contains short blog posts with WPF-based F# applications in them, e.g. Game of Life in 32 lines of F#.
我的Visual F#2010 for Technical Computing有一章专门介绍使用WPF的图形,并介绍了基本的WPF控件以及F#interactive中WPF的使用。 F#.NET Journal中还有许多文章涵盖WPF(向下滚动并运行一些可下载的演示)。我们的F#新闻通常包含其中包含基于WPF的F#应用程序的简短博文,例如: F#的32行生命游戏。
#4
2
The Gui designer is okay. But you can create an F# class to contain the same code as it would. Learning how to code forms by hand is very useful. I would personally recommend it over the method of using the C# designer to create the code and then interfacing with it(which would be far more complicated than would be necessary). Besides, all the classes that exist in C# for winforms or WPF programming are exactly the same for F# and are intentionally designed to be used easily in any language using the .net platform.
桂设计师没问题。但是您可以创建一个F#类来包含与它相同的代码。学习如何手动编码表格非常有用。我个人推荐使用C#设计器创建代码然后与它进行交互的方法(这将比必要的复杂得多)。此外,C#中用于winforms或WPF编程的所有类对于F#都是完全相同的,并且有意设计为使用.net平台在任何语言中轻松使用。
#5
-1
http://searchwindevelopment.techtarget.com/generic/0,295582,sid8_gci1289090,00.html
http://searchwindevelopment.techtarget.com/generic/0,295582,sid8_gci1289090,00.html
Requires registration (email address). Don't know if it's any good, but seems worth a look.
需要注册(电子邮件地址)。不知道它是否有用,但似乎值得一看。
#1
19
The Real-world Functional Programming book that I wrote with Jon Skeet (sorry for the advertisement!) expects some existing knowledge of object-oriented languages (e.g. C#) but it briefly explains all more advanced features that C# has compared to, for example, Java.
我与Jon Skeet一起写的真实世界的函数式编程书(对于广告感到抱歉!)期望一些现有的面向对象语言知识(例如C#),但它简要解释了C#所比较的所有更高级的功能,例如, Java的。
It has a few examples of GUI programming using WinForms (a more modern framework would be WPF, but some concepts are essentially the same). You can take a look at a few examples, because there is some free content related to GUI:
它有一些使用WinForms进行GUI编程的例子(一个更现代的框架是WPF,但有些概念基本相同)。您可以看一些示例,因为有一些与GUI相关的免费内容:
- Chapter 4 (coincidentally, available as a free sample :-)) shows how to implement an application for drawing simple graphs using basic features.
- 第4章(巧合地,作为免费样本提供:-))展示了如何使用基本功能实现绘制简单图形的应用程序。
- Programming user interfaces using workflows (free excerpt) shows one advanced pattern that's very useful for writing reactive applications (as I know, this isn't described anywhere else in much details)
- 使用工作流程编程用户界面(免费摘录)显示了一种高级模式,这对于编写反应式应用程序非常有用(我知道,在其他任何地方都没有详细描述)
As far as I know, Robert Pickering's Beginning F# also has some user interface examples and it also includes some WPF examples (although I don't have the book yet, so I don't know what exactly does it contain).
据我所知,罗伯特皮克林的Beginning F#也有一些用户界面示例,它还包括一些WPF示例(虽然我还没有这本书,所以我不知道它究竟包含什么)。
However, none of the F# books will make you GUI Expert. You'll still need to spend some time learning about WinForms/Silverlight/WPF in more details. There are plenty of examples in C# on the internet and after reading one of the above, you should be able to translate them directly to F#, but buying a technology-specific book may be a good idea too.
但是,没有一本F#书能让你成为GUI专家。您还需要花一些时间了解WinForms / Silverlight / WPF的更多细节。在互联网上的C#中有很多例子,在阅读上述内容之后,您应该能够将它们直接翻译成F#,但购买特定技术的书也可能是一个好主意。
#2
5
I just got the The Real-world Functional Programming book and if you want to mix F# with GUI stuff that's the book for you since it has plenty of examples and it jumps right into it. That's the main reason I got it :) Online I've come across this and I like the F#/DirectX example. F#.NET tutorials and examples
我刚刚获得了The Real-world Functional Programming一书,如果你想把F#和GUI这些书混合在一起,因为它有很多例子,它会直接进入它。这是我得到它的主要原因:)在线我遇到了这个,我喜欢F#/ DirectX的例子。 F#.NET教程和示例
#3
5
My book Visual F# 2010 for Technical Computing has a chapter devoted to graphics using WPF and covers basic WPF controls and the use of WPF from F# interactive. There are also many articles in The F#.NET Journal that cover WPF (scroll down and run some of the downloadable demos). Our F# News often contains short blog posts with WPF-based F# applications in them, e.g. Game of Life in 32 lines of F#.
我的Visual F#2010 for Technical Computing有一章专门介绍使用WPF的图形,并介绍了基本的WPF控件以及F#interactive中WPF的使用。 F#.NET Journal中还有许多文章涵盖WPF(向下滚动并运行一些可下载的演示)。我们的F#新闻通常包含其中包含基于WPF的F#应用程序的简短博文,例如: F#的32行生命游戏。
#4
2
The Gui designer is okay. But you can create an F# class to contain the same code as it would. Learning how to code forms by hand is very useful. I would personally recommend it over the method of using the C# designer to create the code and then interfacing with it(which would be far more complicated than would be necessary). Besides, all the classes that exist in C# for winforms or WPF programming are exactly the same for F# and are intentionally designed to be used easily in any language using the .net platform.
桂设计师没问题。但是您可以创建一个F#类来包含与它相同的代码。学习如何手动编码表格非常有用。我个人推荐使用C#设计器创建代码然后与它进行交互的方法(这将比必要的复杂得多)。此外,C#中用于winforms或WPF编程的所有类对于F#都是完全相同的,并且有意设计为使用.net平台在任何语言中轻松使用。
#5
-1
http://searchwindevelopment.techtarget.com/generic/0,295582,sid8_gci1289090,00.html
http://searchwindevelopment.techtarget.com/generic/0,295582,sid8_gci1289090,00.html
Requires registration (email address). Don't know if it's any good, but seems worth a look.
需要注册(电子邮件地址)。不知道它是否有用,但似乎值得一看。