• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ChrisMarinos/FSharpKoans: A simple, fun, and interactive way to learn the F# lan ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ChrisMarinos/FSharpKoans

开源软件地址:

https://github.com/ChrisMarinos/FSharpKoans

开源编程语言:

F# 99.5%

开源软件介绍:

Gitpod ready-to-code

Functional Koans - F#

Inspired by EdgeCase's fantastic Ruby koans, the goal of the F# koans is to teach you F# through testing.

When you first run the koans, you'll be presented with a runtime error and a stack trace indicating where the error occurred. Your goal is to make the error go away. As you fix each error, you should learn something about the F# language and functional programming in general.

Your journey towards F# enlightenment starts in the AboutAsserts.fs file. These koans will be very simple, so don't overthink them! As you progress through more koans, more and more F# syntax will be introduced which will allow you to solve more complicated problems and use more advanced techniques.

Running with GitHub Codespaces

GitHub Codespaces is a free platform to run F# Koans completely in your browser, no install or setup required! Just go to https://github.com/ChrisMarinos/FSharpKoans/codespaces and click "New CodeSpace"

Running with Docker

To launch in watch mode using docker run the following command;

$ ./docker.sh

Prerequisites

The F# Koans needs .Net 5.0 to be built and run. Make sure that you have installed it before building the project. This is the current release of .NET Core that many modern F# and .NET applications use.

Additionally, the project provides Visual Studio Code configuration for running. To be able to run F# projects in Visual Studio Code, the Ionide plugin should be also installed.

Running the Koans from the command line (.Net Core)

  1. To build the Koans, run dotnet build command in the project root.

  2. To run the Koans, run dotnet run -p FSharpKoans/FSharpKoans.fsproj in the root directory or dotnet run in FSharpKoans project directory.

Running the Koans in Visual Studio Code

  1. Open the project directory in Visual Studio Code with Ionide-fsharp plugin installed and press F5 to build and launch the Koans (some time is needed to build the project before launch).

Running the Koans from a Devcontainer

  1. Install the Remote - Containers extension in Visual Studio Code.

  2. Open the directory inside a Devcontainer.

  3. Open a terminal and start using the Koans.

Using dotnet-watch

You can also use dotnet-watch to have your changes reloaded automatically. To do so, navigate into FSharpKoans directory and run dotnet watch run. Now, after you change the project code, it will be automatically reloaded and tests rerun.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
elixirkoans/elixir-koans: Elixir learning exercises发布时间:2022-06-24
下一篇:
cdarwin/go-koans: koans for go发布时间:2022-06-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap