如何在F#中学习GUI编程 [英] How to learn GUI programming in F#

查看:116
本文介绍了如何在F#中学习GUI编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些天,我对学习F#感兴趣,并希望将其用于GUI应用程序。不幸的是,我以前没有.Net或C#的背景。是否有任何良好的资源(网站,书籍)可用于学习该知识而无需先通过C#?



在此先感谢。

解决方案

我写的现实世界中的函数编程这本书与Jon Skeet在一起(对不起广告!)希望获得一些有关面向对象语言(例如C#)的现有知识,但它简要地解释了C#与Java相比所具有的所有更高级的功能。 / p>

它有一些使用WinForms进行GUI编程的示例(一个更现代的框架是WPF,但某些概念在本质上是相同的)。您可以看几个示例,因为有一些与GUI相关的免费内容:




  • 第4章(巧合的是,作为免费示例提供:-))展示了如何实现使用基本功能绘制简单图形的应用程序。

  • 使用工作流对用户界面进行编程(免费摘录)显示了一种高级模式,该模式对于编写响应式应用程序非常有用(据我所知,在其他地方没有对此进行详细介绍)



据我所知,Robert Pickering的开始F#也有一些用户界面示例,还包括一些WPF示例(尽管我还没有这本书,所以我不知道它到底包含了什么)。



但是,没有一本F#书籍会让您成为GUI专家。您仍然需要花一些时间来详细了解WinForms / Silverlight / WPF。互联网上有很多C#的示例,阅读以上内容之一后,您应该可以将它们直接转换为F#,但是购买特定于技术的书也是一个好主意。


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?

Many thanks in advance.

解决方案

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.

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:

  • Chapter 4 (coincidentally, available as a free sample :-)) shows how to implement an application for drawing simple graphs using basic features.
  • 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).

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编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆