Secrets of a .NET Professional 👾
In this post, we’ll go through technical and non-technical ideas that have helped me through some of my toughest projects.
[ Article ] : https://kutt.it/DotSec
〰️〰️〰️〰️〰️〰️
#DotNet
@ProgrammingTip
In this post, we’ll go through technical and non-technical ideas that have helped me through some of my toughest projects.
[ Article ] : https://kutt.it/DotSec
〰️〰️〰️〰️〰️〰️
#DotNet
@ProgrammingTip
Telegram
Programming Tips Resources
Awesome Microservices .NET Core Resources 😎
The best resources for Microservices in .NET Core 👾
[ Github ] : kutt.it/dotnet-aws
〰️〰️〰️〰️〰️〰️
#DotNet #DotNetCore #AspNetCore #Microservice
@ProgrammingTip
The best resources for Microservices in .NET Core 👾
[ Github ] : kutt.it/dotnet-aws
〰️〰️〰️〰️〰️〰️
#DotNet #DotNetCore #AspNetCore #Microservice
@ProgrammingTip
Telegram
Programming Tips Resources
What is .NET❓
What's C# and F#❔
What's the .NET Ecosystem❓
What can .NET build❔
Learn what is .NET from Scott Hanselman! ✅
[ Youtube ] : https://www.youtube.com/watch?v=bEfBfBQq7EE
〰️〰️〰️〰️〰️〰️
#DotNet #CSharp
@ProgrammingTip
What's C# and F#❔
What's the .NET Ecosystem❓
What can .NET build❔
Learn what is .NET from Scott Hanselman! ✅
[ Youtube ] : https://www.youtube.com/watch?v=bEfBfBQq7EE
〰️〰️〰️〰️〰️〰️
#DotNet #CSharp
@ProgrammingTip
YouTube
What is .NET? What's C# and F#? What's the .NET Ecosystem? .NET Core Explained, what can .NET build?
What is .NET? What is C# and F#? What is .NET Core? What's the .NET Ecosystem? What can you build? You have questions and we have answers. More videos at http://dot.net/videos
Looking inside ConfigurationManager in .NET 6 ✅
However ConfigurationManager is very much an implementation detail. It was introduced to optimise a specific scenario (which I'll describe shortly), but for the most part, you don't need to (and won't) know you're using it.
In this post, We take a look at the ConfigurationManager class, why it was added, and some of the code used to implement it.
[ Article ] : https://kutt.it/cfg-mgr
〰️〰️〰️〰️〰️〰️
#DotNet #AspNetCore
@ProgrammingTip
ConfigurationManager
was added to support ASP.NET Core's new WebApplication model, used for simplifying the ASP.NET Core startup code. 🧹However ConfigurationManager is very much an implementation detail. It was introduced to optimise a specific scenario (which I'll describe shortly), but for the most part, you don't need to (and won't) know you're using it.
In this post, We take a look at the ConfigurationManager class, why it was added, and some of the code used to implement it.
[ Article ] : https://kutt.it/cfg-mgr
〰️〰️〰️〰️〰️〰️
#DotNet #AspNetCore
@ProgrammingTip
Telegram
Programming Tips Resources
Nuke Build 🗂
As C# developers, we are spoiled with a great language and awesome IDEs.
Why do most automation systems never really match the level of convenience and integration that we're used to?
NUKE is different. 💎
It is fully based on C# console applications and uses the type system to its full extent.
You want your auto-completion, package management, debugging, refactorings, formatting, and navigation back? It’s available right there❗️
[ Website ] : https://nuke.build/
[ GitHub ] : github.com/nuke-build/nuke
〰️〰️〰️〰️〰️〰️
#CSharp #Dotnet #BuildSystem
@ProgrammingTip
As C# developers, we are spoiled with a great language and awesome IDEs.
Why do most automation systems never really match the level of convenience and integration that we're used to?
NUKE is different. 💎
It is fully based on C# console applications and uses the type system to its full extent.
You want your auto-completion, package management, debugging, refactorings, formatting, and navigation back? It’s available right there❗️
[ Website ] : https://nuke.build/
[ GitHub ] : github.com/nuke-build/nuke
〰️〰️〰️〰️〰️〰️
#CSharp #Dotnet #BuildSystem
@ProgrammingTip
Telegram
Programming Tips Resources
Source Link 🐞
Source Link is a language- and source-control agnostic system for providing first-class source debugging experiences for binaries.
The goal of the project is to enable anyone building NuGet libraries to provide source debugging for their users with almost no effort.
Microsoft libraries, such as .NET Core and Roslyn have enabled Source Link.
Source Link is supported by Microsoft. ✅
〰️〰️〰️〰️〰️〰️
#DotNet #CSharp #Debugging
@ProgrammingTip
Source Link is a language- and source-control agnostic system for providing first-class source debugging experiences for binaries.
The goal of the project is to enable anyone building NuGet libraries to provide source debugging for their users with almost no effort.
Microsoft libraries, such as .NET Core and Roslyn have enabled Source Link.
Source Link is supported by Microsoft. ✅
〰️〰️〰️〰️〰️〰️
#DotNet #CSharp #Debugging
@ProgrammingTip
Telegram
Programming Tips Resources
ChilliCream GraphQL Platform 🌶
The ChilliCream GraphQL Platform, at its core, is a new way to create powerful Backends. HotChocolate, .NET GraphQL server, connects any service or data source and creates a cohesive service to offer your consumers a unified API. 💎
Hot Chocolate: GraphQL server to create GraphQL endpoints and merge schemas. ✅
Banana Cake Pop: GraphQL IDE to explore, request and analyze any GraphQL endpoint. 🌐
Strawberry Shake: GraphQL client to fetch data from any GraphQL endpoint. 🔁
Green Donut: DataLoader to solve the N+1 problem. 🔂
[ GitHub ] : github.com/ChilliCream/hotchocolate
〰️〰️〰️〰️〰️〰️
#GraphQL #DotNet #AspNetCore
@ProgrammingTip
The ChilliCream GraphQL Platform, at its core, is a new way to create powerful Backends. HotChocolate, .NET GraphQL server, connects any service or data source and creates a cohesive service to offer your consumers a unified API. 💎
Hot Chocolate: GraphQL server to create GraphQL endpoints and merge schemas. ✅
Banana Cake Pop: GraphQL IDE to explore, request and analyze any GraphQL endpoint. 🌐
Strawberry Shake: GraphQL client to fetch data from any GraphQL endpoint. 🔁
Green Donut: DataLoader to solve the N+1 problem. 🔂
[ GitHub ] : github.com/ChilliCream/hotchocolate
〰️〰️〰️〰️〰️〰️
#GraphQL #DotNet #AspNetCore
@ProgrammingTip
Telegram
Programming Tips Resources
aspnetcore-developer-roadmap.png
606.9 KB
ASP.NET Core Developer Roadmap in 2023 🔝
Roadmap to becoming an ASP.NET Core developer in 2023 🚀
[ GitHub ] : https://github.com/MoienTajik/AspNetCore-Developer-Roadmap
〰️〰️〰️〰️〰️〰️
#AspNetCore #DotNet #DotNetCore #CSharp
@ProgrammingTip
Roadmap to becoming an ASP.NET Core developer in 2023 🚀
[ GitHub ] : https://github.com/MoienTajik/AspNetCore-Developer-Roadmap
〰️〰️〰️〰️〰️〰️
#AspNetCore #DotNet #DotNetCore #CSharp
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
WireMock.NET 😮
WireMock.NET is a .NET library for stubbing and mocking HTTP services. With WireMock.NET, you can define the expected responses for particular requests, and the library will intercept and manage those requests for you.✔️
This allows for easy testing of the code that makes HTTP requests, without having to rely on the actual external service being available and without hacking HttpClient.🆒
Sample code snippet:
〰️〰️〰️〰️〰️〰️
#UnitTest #DotNet #CSharp
@ProgrammingTip
WireMock.NET is a .NET library for stubbing and mocking HTTP services. With WireMock.NET, you can define the expected responses for particular requests, and the library will intercept and manage those requests for you.
This allows for easy testing of the code that makes HTTP requests, without having to rely on the actual external service being available and without hacking HttpClient.
Sample code snippet:
[Test][ Blog ] : https://cezarypiatek.github.io/post/mocking-outgoing-http-requests-p1
public async Task sample_WireMock_usage()
{
// Setup WireMock.Net server
using var wireMock = WireMockServer.StartWithAdminInterface(port: 1080, ssl: false);
// Setup WebApplicationFactory
await using var appFactory = new WebApplicationFactory<Program>().WithWebHostBuilder(builder =>
{
builder.ConfigureAppConfiguration(configurationBuilder =>
{
// Override downstream service addresses pointing to WireMock address
configurationBuilder.AddInMemoryCollection(new Dictionary<string, string>
{
["ExternalServices:WeatherService"] = "http://localhost:1080"
});
});
});
// Prepare stub for outgoing request
wireMock
.Given(
Request.Create()
.WithPath("/api/v1.0/weather")
.WithParam("lat", "10.99")
.WithParam("lon", "44.34")
.UsingGet()
)
.RespondWith(
Response.Create()
.WithStatusCode(200)
.WithHeader("Content-Type", "application/json; charset=utf-8")
.WithBodyAsJson(new
{
temp = 298.48,
feels_like = 298.74,
temp_min = 297.56,
temp_max = 300.05,
pressure = 1015,
humidity = 64
})
);
// Automate tested app
}
〰️〰️〰️〰️〰️〰️
#UnitTest #DotNet #CSharp
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
Programming Tips Resources
Check out new C# 12 preview features! ⚡️
Three new features for C# 12😮 :
1️⃣ - Primary constructors for non-record classes and structs :
2️⃣ - Using aliases for any type:
3️⃣ - Default values for lambda expression parameters:
〰️〰️〰️〰️〰️〰️
#CSharp #DotNet
@ProgrammingTip
Three new features for C# 12
public class Student(int id, string name, IEnumerable<decimal> grades)
{
public Student(int id, string name) : this(id, name, Enumerable.Empty<decimal>()) { }
public int Id => id;
public string Name { get; set; } = name.Trim();
public decimal GPA => grades.Any() ? grades.Average() : 4.0m;
}
using Measurement = (string, int);
public void F(Measurement x)
{ }
var addWithDefault = (int addTo = 2) => addTo + 1;
addWithDefault(); // 3
addWithDefault(5); // 6
[ Article ] : https://devblogs.microsoft.com/dotnet/check-out-csharp-12-preview〰️〰️〰️〰️〰️〰️
#CSharp #DotNet
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
Programming Tips Resources