-
Notifications
You must be signed in to change notification settings - Fork 20
F# template #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
F# template #402
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "name": "F-Sharp", | ||
| "image": "mcr.microsoft.com/devcontainers/dotnet:9.0", | ||
| "postCreateCommand": "make init", | ||
| "workspaceFolder": "/workspaces/interviews/f-sharp", | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "liveshare.allowGuestDebugControl": true, | ||
| "liveshare.allowGuestTaskControl": true, | ||
| "liveshare.languages.allowGuestCommandControl": true, | ||
| "liveshare.publishWorkspaceInfo": true, | ||
| "extensions.ignoreRecommendations": true, | ||
| "workbench.startupEditor": "readme", | ||
| "git.openRepositoryInParentFolders": "never", | ||
| "git.autofetch": true, | ||
| "chat.disableAIFeatures": true | ||
| }, | ||
| "extensions": [ | ||
| "ms-vsliveshare.vsliveshare", | ||
| "ms-dotnettools.csharp", | ||
| "ms-dotnettools.csdevkit", | ||
| "ionide.ionide-fsharp", | ||
| "-github.copilot-chat" | ||
| ] | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| bin | ||
| obj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="Greeting.fs" /> | ||
| <Compile Include="Program.fs" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| module Greeter | ||
|
|
||
| let greet name = | ||
| sprintf "Hello, %s!" name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| open System | ||
|
|
||
| Greeter.greet "World" |> Console.WriteLine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <Solution> | ||
| <Project Path="Application/Application.fsproj" /> | ||
| <Project Path="UnitTests/UnitTests.fsproj" /> | ||
| </Solution> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| init: | ||
| dotnet build | ||
|
|
||
| verify: | ||
| dotnet test | ||
|
|
||
| run: | ||
| dotnet run --project Application | ||
|
|
||
| .PHONY: init verify run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # F# Technical Interview | ||
|
|
||
| We're excited to pair with you on a coding kata! | ||
|
|
||
| You will use this solution to write your code and tests to solve the problem of the kata below. We will gradually add requirements as we move through the problem and get a feel of what it's like to work with you in a real-world situation. Take your time, explain your thinking, and have fun with us! Show off your skills and ask any questions you have and we'll do the same. | ||
|
|
||
| ## Tech Stack | ||
| - .NET with F# | ||
| - xUnit | ||
|
|
||
| ## Common Commands | ||
| - `make init` | ||
| - build the project | ||
| - `make verify` | ||
| - run tests | ||
| - `make run` | ||
| - run the application | ||
|
|
||
| ## Kata | ||
|
|
||
| This section of the README is used to describe the kata and outline the requirements. We'll leave it blank in the public repository to keep the mystery alive, but just know that the kata we have planned is really fun! | ||
|
|
||
| ### Introduction | ||
|
|
||
| ### Requirements | ||
|
|
||
| 1. Requirement 1 | ||
| 2. Requirement 2 | ||
| 3. Requirement 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| module Tests | ||
|
|
||
| open Xunit | ||
|
|
||
| [<Fact>] | ||
| let ``Greet returns formatted message`` () = | ||
| let result = Greeter.greet "World" | ||
|
|
||
| Assert.Equal("Hello, World!", result) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <IsPackable>false</IsPackable> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="Tests.fs" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="coverlet.collector" Version="6.0.4" /> | ||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> | ||
| <PackageReference Include="xunit" Version="2.9.3" /> | ||
| <PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\Application\Application.fsproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.