News

GitHub Project Provides 300-Plus Samples of ASP.NET Core/Blazor Fundamentals

A GitHub project providing more than 300 code samples to illustrate ASP.NET Core fundamentals has amassed more than 4,100 stars.

The dodyg/practical-aspnetcore project comes from Dody Gunawinata, with the title "306 samples for ASP.NET Core 2.1, 2.2, 3.0 and 3.1 fundamentals."

The project got a boost when Microsoft's Scott Hanselman highlighted it in a blog post earlier this month.

"He has lots of small compartmentalized samples that show you everything from Hello World (with increasingly complex and interesting bits layered on top) to lower level samples around WebSockets and building URIs," Hanselman said of the project.

The repo is heavy on .NET Core 2.1 samples, but samples for the latest (and long-term support) .NET Core 3.1 are a "work in progress" in an "active branch" of the repo for converting the samples to v3.1. Called "Samples for ASP.NET Core 3.1 (WIP)," it was last updated three days ago (Feb. 24).

The popularity of the project and similar ones speak to the traction gained by Microsoft's open-source, cross-platform "Core" initiative that succeeds the aging, Windows-only .NET Framework. The ASP.NET Core side of things for web development is especially active, propelled by the popularity of Blazor, which lets .NET developers use C# in web development (both client- and server-side).

ASP.NET Core Fundamentals Samples
[Click on image for larger view.] ASP.NET Core Fundamentals Samples

And, indeed, the ASP.NET Core 3.1 work-in-progress branch already sports sections on Blazor Client Side (Web Assembly) and Blazor Server Side. Checking out the former reveals 18 offerings for the WebAssembly-based client-side effort, ranging from a Hello World incremental counter app ("The smallest Blazor app you can create") to Date Binding - EditForm ("Show an example of EditForm and its 6 input controls, including form validation").

"The goal of this project is to enable .NET programmers to learn the new ASP.NET Core stack from the ground up directly from code. There is so much power in the underlying ASP.NET Core stack. Don't miss them!" says the readme for the project headed by Gunawinata, who lurks on the DotNetStudyGroup/aspnetcore Gitter channel to help out with ASP.NET Core issues.

Gunawinata recommends using Visual Studio Code to play around with the samples, but Visual Studio 2019 works as well.

Hanselman also invited his readers to contribute to the open source project. "I know Dody would appreciate the help and this is a great way for you to get involved in open source AND learn a little about ASP.NET. Check out the Contributor Guidelines! As they say, 'There is no sample that is too small!'"

Hanselman has been actively promoting training materials, having last fall called attention to a months-long project to provide entry-level instructional videos on all things .NET. That call-out was duplicated soon after by James Montemagno, who touted counterpart Xamarin videos, with some Python thrown in.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events