- Видео 15
- Просмотров 30 949
Hubert Mijalski
Добавлен 8 ноя 2022
Why Microsoft Naming Sucks
In this video I explore the weird names that Microsoft assigns to their products and how it affects .NET and C# ecosystem. I believe this issue is hindering the .NET popularity which has come very far and is providing one of the best Developer experiences out there, but is not reaching the praise it deserves. Shout out to anyone working on .NET though, you guys are rockstars!
I really do hope you appreciate the video, I'm trying to get back into video making :)
00:00 Intro
00:16 Windows naming
01:01 Xbox naming
01:37 Visual Studio naming
02:31 .NET naming
04:51 Blazor naming
I really do hope you appreciate the video, I'm trying to get back into video making :)
00:00 Intro
00:16 Windows naming
01:01 Xbox naming
01:37 Visual Studio naming
02:31 .NET naming
04:51 Blazor naming
Просмотров: 4 082
Видео
How To Write .NET Core Middleware with Minimal APIs?
Просмотров 1,2 тыс.Год назад
In this video let's explain how middleware works in .NET Core and how to write one. We'll build the simplest middleware and also explore more advanced scenarios, with Attribute filtering (adjusted for Minimal API approach). We'll also talk about some of the important rules for writing middleware. Chapters: 00:00 What is middleware in .NET and how it works? 02:27 Writing basic middleware 06:04 A...
C# Structs demystified - guidelines on when to use
Просмотров 551Год назад
In this video we explore the use cases for structs and their advantages and disadvantages. We also focus on their quirks, and any issues arising from their incorrect usage. We also explore a code demo with the showcase of how they work internally. Chapters: 00:00 Intro 01:05 When to consider struct usage 04:20 Struct constraints 04:44 Characteristics of struct 05:32 Code sample 05:50 Don't rely...
Dependency Injection advanced topics: forwarding, scanning, named services
Просмотров 526Год назад
In this video let's explore some more advanced Dependency Injection concepts in .NET. Let's push the built-in DI container to the limit and also let's see how we can expand it with additional features without loosing previous container setup. Chapters: 00:00 Intro 01:02 Fowarding in .NET built-in container 04:27 Named services in .NET built-in container 08:40 Scanning for services with Scrutor
Basics of Dependency Injection
Просмотров 318Год назад
In this video let's talk about Dependency Injection in .NET and in general. Why is Dependency Inversion Principle important? Why do we use Dependency Injection? What exactly is dependency? Basics of Dependency Injection in .NET. Chapters: 00:00 Intro 00:24 What is Dependency Inversion Principle 01:15 Solving DIP 01:45 Dependency Injection Containers 02:45 Injection types 03:53 Dependency lifecy...
C# Heap vs Stack explained
Просмотров 3 тыс.Год назад
Explaining Heap and Stack differences in C#. Reference Types vs Value Types - where variable lives affect how code behaves. Exploring real-life examples of variable type differences. Explaining ref and out keywords. Chapters: 00:00 Intro 00:33 How does C# manage memory 02:02 Value Type vs Reference Type 02:24 Code Demo I 04:13 Passing different variables to methods 05:00 Code Demo II 06:06 Ref ...
Overloading Operators in C# - How & when?
Просмотров 430Год назад
In this video I wanted to show you which operators you can overload & how to do so. I also explore how overloading operators can help you avoid primitive obsession. Want to know the difference between is and or Type x = y; vs var x = (Type)y; Twitter: kyrcooler Chapters: 00:00 Intro 00:20 Operators we can overload 01:00 Assignment operator differences (Explicit vs Implicit) 01:40 Ex...
Intro to PowerShell Core - params, switches, pipelines, select, where
Просмотров 232Год назад
In this video, I want to showcase what PowerShell Core is. Why it's good and the way for your scripting needs? I showcase how to use pwsh command line tool (how history & tooltips work) After that, I explore a demo code where we see how parameters, and switches work. At the end I showcase pipe | operator that uses allow to manipulate collections in a neat way. Powershell Core download link: git...
How to prevent your code from becoming legacy?
Просмотров 469Год назад
This video aims to explain what is Cyclomatic Complexity and how it helps prevent your code from becoming legacy code. Measuring this metric can help you easily detect logic complexity that so often leads to legacy code. It also shows a demo of refactorings done to C# code based on complexity measurement. It also adds some tips for applying them in practice in much more advanced scenarios, but ...
How does EF Core keeps track of changes?
Просмотров 4,9 тыс.Год назад
In this video I showcase how Entity Framework Core knows what to save to database on SaveChanges. I want to explain how Entity States works and what exactly is ChangeTracker. After that I showcase common tips regarding Change Tracker - optimizations & common issues. Let's debunk the magic behind EF Core! Twitter: kyrcooler Repo: github.com/Mijalski/MinimalApiTutorial/tree/feature/bo...
How to use .NET Channels in practice?
Просмотров 2,1 тыс.Год назад
What are Channels in .NET, what problem do they solve? How do they work and how to use them? Showcase of ChannelReader in Background Services thus offloading your API endpoints that are replaced with ChannelWriters. With a demo of practical guide on optimizing your endpoints using Channels. Good to see before: What are background services: ruclips.net/video/eXoEF59NDqk/видео.html Minimal API: r...
How to Work with Background Services in .NET
Просмотров 1,6 тыс.Год назад
Have you wanted to implement background service in .NET? Do you need to perform some logic when your application starts and want to do it in a non-blocking way? Are you trying to remove Hangfire dependency from your project? In this video, I aim to show you what is a BackgroundService and IHostedService in .NET and how to work with them. Twitter: kyrcooler Chapters: 00:00 What are b...
Async optimization in C# (ValueTask, Async Eliding, Task.CompletedTask)
Просмотров 1,4 тыс.Год назад
How to optimize async code? Are ValueTasks always better than Tasks? What is async eliding and what are the benefits and drawbacks? In this video I wanted to answer all the questions listed above. Sources: devblogs.microsoft.com/dotnet/understanding-the-whys-whats-and-whens-of-valuetask/ blog.stephencleary.com/2016/12/eliding-async-await.html Twitter: kyrcooler 00:00 ValueTask vs Ta...
How Async and Await work under the hood in C#
Просмотров 9 тыс.Год назад
You use async/await keywords everyday when working with C#, but do you know how they work under the hood? Do you know what exactly is Task and how it should be used? Twitter: kyrcooler 00:00 Intro 00:11 What is a Task 02:14 What async and await keywords mean 03:45 How async improves synchronous code 05:59 DOs and DONTs of async
How to design & create .NET API in 2022
Просмотров 1,1 тыс.Год назад
Exploring the Vertical Slice architecture in practice by taking advantage of .NET Minimal APIs. Organizing your code into modules that are fully self-contained can be extremely beneficial and allow you to deliver product quickly, without closing the door to microservices later down the road. Repo link: github.com/Mijalski/MinimalApiTutorial Inspired by: timdeschryver.dev/blog/maybe-its-time-to-...