-
Notifications
You must be signed in to change notification settings - Fork 290
Include a snippet on the power of .NET #1005
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
Open
Happypig375
wants to merge
17
commits into
fsharp:main
Choose a base branch
from
Happypig375:patch-6
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
63700bf
Include a snippet on the power of .NET
Happypig375 b7a7f78
Update dotnet_ecosystem.md
Happypig375 e4455e2
Update dotnet_ecosystem.md
Happypig375 1289bff
Update sequence_expressions.md
Happypig375 2a9b303
Focus on the seq expression
Happypig375 3529707
Javascript or .NET
Happypig375 6055e4a
Update ecosystem.md
Happypig375 86a9d72
Update ecosystem.md
Happypig375 fe92e1e
Update ecosystem.md
Happypig375 3d4b3d9
Update typeproviders.md
Happypig375 0e802b1
Changed order
Happypig375 1983596
Reoder again
Happypig375 a03163b
Update 21 ecosystems.md
Happypig375 609813b
Update 21 ecosystems.md
Happypig375 9783bbe
Update 16 type providers.md
Happypig375 36ca9ff
Fix typo
Happypig375 9e5fd2d
Update ecosystem.md
Happypig375 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
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,27 @@ | ||
| --- | ||
| order: 1 | ||
| title: DotNet.fs | ||
| excerpt_separator: <!--more--> | ||
| code: | | ||
| // Example: Extracting information from text with regular expressions | ||
| open System.Text.RegularExpressions | ||
| let input = "Emails: user1@test.com, user2@domain.org, invalid-email" | ||
| let pattern = @"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b" | ||
| for matched in Regex.Matches(input, pattern) do | ||
| printfn $"Found email: {matched.Value}" // user1@test.com and user2@domain.org | ||
|
|
||
| // Example: Image processing | ||
| open SixLabors.ImageSharp // NuGet package: SixLabors.ImageSharp | ||
| open SixLabors.ImageSharp.Processing | ||
| use image = Image.Load "input.png" | ||
| image.Mutate(_.Resize(300, 200).Flip(FlipMode.Horizontal ||| FlipMode.Vertical) >> ignore) | ||
| image.Save "output.jpg" | ||
| --- | ||
|
|
||
| ## Full access to .NET ecosystem | ||
|
|
||
| F# has seamless .NET integration which lets you work with existing .NET libraries and frameworks. Anything written in C# can be used from F# and vice versa. | ||
| <!--more--> | ||
| - **[Web](https://dotnet.microsoft.com/en-us/apps/aspnet), [Mobile](https://dotnet.microsoft.com/en-us/apps/maui), [Desktop](https://dotnet.microsoft.com/en-us/apps/desktop), [Cloud](https://dotnet.microsoft.com/en-us/apps/cloud), [Microservices](https://dotnet.microsoft.com/en-us/apps/aspnet/microservices), [Artificial Intelligence](https://dotnet.microsoft.com/en-us/apps/ai), [Game Development](https://dotnet.microsoft.com/en-us/apps/games), and [Internet of Things](https://dotnet.microsoft.com/en-us/apps/iot)** frameworks are ready to be used. | ||
| - [**NuGet packages**](https://www.nuget.org), all hundreds of thousands of them, reduce your code complexity. | ||
| - **Mixing C# and F#** in the same solution is possible for incremental adoption. | ||
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this should be so high in the order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the current order:
If .NET was to be expanded on to show all the possibilities of the ecosystem, logically it would be placed in between Concise like Python and Objects Made Simple. It's originally the first bullet point of Objects Made Simple, after all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do agree that perhaps everything related to interop should be placed next to the Fable sample though.