Introducing the .NET Hot Reload experience for editing code at runtime
#365 — May 31, 2021 | View in browser |
C# Digest
Spread the word, build the community, share the knowledge – invite your friends.
sponsor
Calling all Windows Developers!
Use C# , Windows XAML and open-source Uno Platform to build single-codebase applications for Windows, WebAssembly, Linux, macOS, iOS and Android. Try now via 3 min step-by-step tutorial.
this week's favorite
Introducing the .NET Hot Reload experience for editing code at runtime
Today, we are excited to introduce you to the availability of the .NET Hot Reload experience in Visual Studio 2019 version 16.11 (Preview 1) and through the dotnet watch command-line tooling in .NET 6 (Preview 4). In the rest of this blog post, we’d like this opportunity to walk you through what is .NET Hot Reload, how you can get started using this feature, what our vision is for future planned improvements and clarity on what type of edits and languages are currently supported.
Pitfalls of unoptimized NuGet packages
You might unknowingly be using an unoptimized dependency which could impact the performance of your app.
Highly COHESIVE software design to tame complexity
What is cohesion and why should you care? Highly cohesive software design can reduce complexity and coupling. But what is cohesion? It’s the degree to which the elements inside a module belong together. How you group operations together can have a widely different outcome on Cohesion. Informational Cohesion is grouped by operations on data. Functional Cohesion is grouped by operations of a task. It’s directly related to the Single Responsibility Principle, which you might also have a different definition of.
In this first post, I’ll demonstrate how can we use a middleware to build a ClaimsIdentity which contains all the permissions of the logged-in user. This is the foundation for the next posts where we will use the permissions to authorize the endpoints. I’ll also talk a bit about JWT tokens and if it’s a good idea to include authorization-related claims in them.
Using DateOnly and TimeOnly in .NET 6
In .NET 6 (preview 4), two long-awaited types have been introduced as part of the core library. DateOnly and TimeOnly allow developers to represent either the date or time portion of a DateTime. These two new types are structs (value types) and may be used when your code deals with date or time concepts independently. Both types can be found in the System namespace.
projects
RestClient.Net makes HTTP calls in .NET easy. Send the request body as a strongly typed object, and get back a strongly typed object. You can inject the abstraction into your service classes and quickly mock them without worrying about the HTTP plumbing or converting to JSON.
newsletters
Older messages
Create a colored CLI with System.CommandLine and Spectre 🎨
Sunday, May 23, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #364 — May 24, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
Evolving modular monoliths: An architecture for .NET
Sunday, May 16, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #363 — May 17, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
Why is your ASP.NET server so slow? 10 performance problems and solutions
Sunday, May 9, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #362 — May 10, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
LINQ behind the scenes
Sunday, May 2, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #361 — May 03, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
Deploying C# web applications with Docker
Sunday, April 25, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #360 — April 26, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
You Might Also Like
🫵 Android Developer Previews Are Not For You — Virtual Reality Might Finally Be Socially Acceptable
Wednesday, November 27, 2024
Also: iPhone Camera vs. Digital SLR, and More! How-To Geek Logo November 27, 2024 Did You Know The band Radiohead was originally called "On a Friday"—the band was formed by high school
JSK Daily for Nov 27, 2024
Wednesday, November 27, 2024
JSK Daily for Nov 27, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted
Ranked | The World's Biggest Importers of Goods 🌎
Wednesday, November 27, 2024
As Trump tariffs are anticipated to disrupt global trade and push up prices for consumers, we show the world's biggest importers of goods. View Online | Subscribe | Download Our App >> 📱Book
Daily Coding Problem: Problem #1621 [Easy]
Wednesday, November 27, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A regular number in mathematics is defined as one which evenly divides some
Spyglass Dispatch: The Xitter Bail Out • OpenAI Tender • Grokking Grok • Smartphone Sales • Fischer Random Chess • Scott Bessent for Treasury
Wednesday, November 27, 2024
The Xitter Bail Out • OpenAI Tender • Grokking Grok • Smartphone Sales • Fischer Random Chess • Scott Bessent for Treasury The Spyglass Dispatch is a free newsletter sent out daily on weekdays. Feel
The Long Road Home: A Story of Loss, Learning, and Renaissance - PART 4
Wednesday, November 27, 2024
Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 27, 2024? The HackerNoon
Top Tech Deals 🏷️ PS5 Slim, 4K TVs, 10th Gen iPad, and More!
Wednesday, November 27, 2024
The Black Friday madness is here! How-To Geek Logo November 27, 2024 Top Tech Deals: PS5 Slim, 4K TVs, 10th Gen iPad, and More! The Black Friday madness is here! Black Friday sales are here, and we
The 165+ best Black Friday deals
Wednesday, November 27, 2024
Windows Super God Mode; Bluesky starter packs; Tech gifts under $100 -- ZDNET ZDNET Tech Today - US November 27, 2024 Black Friday 2024 live blog Best Black Friday deals 2024: 165+ sales live now
⚙️ Neuralink's new trial
Wednesday, November 27, 2024
Plus: Zoom is becoming an AI-first company
Matrix Botnet Exploits IoT Devices in Widespread DDoS Botnet Campaign
Wednesday, November 27, 2024
THN Daily Updates Newsletter cover The AI Value Playbook ($35.99) FREE for a Limited Time Business leaders are challenged by the speed of AI innovation and how to navigate disruption and uncertainty.