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

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

问题描述

最近我对学习 F# 很感兴趣,并想将它用于 GUI 应用程序.不幸的是,我以前没有 .Net 或 C# 背景.有没有什么好的资源(网站、书籍)可以在不先通过 C# 的情况下学习这一点?

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?

非常感谢.

推荐答案

真实世界函数式编程这本书我与 Jon Skeet(抱歉打广告!)一起写了一些面向对象语言(例如 C#)的现有知识,但它简要解释了 C# 与 Java 相比的所有更高级的功能.

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.

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

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:

  • 第 4 章(巧合的是,作为免费样本提供 :-))展示了如何实现一个使用基本功能绘制简单图形的应用程序.
  • 使用工作流编程用户界面(免费摘录)展示了一种对编写反应式应用程序非常有用的高级模式(据我所知,这在其他任何地方都没有详细描述)
  • 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)

据我所知,Robert Pickering 的 Beginning F# 也有一些用户界面示例,并且还包括一些 WPF 示例(虽然我还没有这本书,所以我不知道它到底包含什么).

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).

但是,没有一本 F# 书籍能让您成为 GUI 专家.您仍然需要花一些时间来更详细地了解 WinForms/Silverlight/WPF.互联网上有大量 C# 示例,阅读以上其中一个后,您应该可以将它们直接翻译成 F#,但购买一本技术相关的书籍也可能是个好主意.

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天全站免登陆