The BEST .NET Ever! - What's Coming with .NET 8?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in less than two months the net 8 will be released we already have access to the first release candidate and Microsoft started working there official what's new in.net 8 documentation today I want to highlight a few new features that will come with.net 8. is it the best.net we ever had I let you decide write it down in the comments below after the video I'll read your comments I promise before we dive deep into new features we need to talk about performance improvements or how the net gets faster and faster a few days ago Stephen Taub released his 200 Page blog post about the performance improvements in.net a yes right it's 200 Pages if you print it out I don't know what's more mind-blowing the fact that a person took the time to write 200 pages about performance improvements or that.net got so many performance optimizations within a year's time what's important for us regular.net developers is that our applications will get a huge performance boost simply by migrating to.net 8. if you have applications running on.net6 maybe because you want or need to use long-term support versions the benefits will be even more remarkable because it will also get the massive performance improvements made between.net 6 and net 7. in my opinion performance alone is already a big reason why migrating.net 8 will be a big win for most applications but now let's see what's new in.net 8. Blazer server and Blazer webassembly are established.net web application Technologies both have their strengths and weaknesses a few developers love Blazer others don't think it has a future and most people have yet to try it themselves with.net 8 Blazer takes another step in an excellent direction for web developers with the newly introduced render mode laser can be used for many more use cases for example we can create a company's website with mainly static content without signal r or webassembly for those components that need interaction we can choose between Blazer server and Blazer webassembly last week I uploaded the video going into it in more detail I know it was a big challenge to achieve what we will get with.net 8. however I wish it was there from the beginning and now it feels like a lot more complete web development framework allowing us to build different kinds of modern web applications besides the new render mode attribute there are many additional improvements and new features for me with.net 8 Blazer has become a viable full stack web UI development framework which I will utilize a lot more in the future we already talked about performance however dotnet 8 comes with new collection types that further allow us to improve the performance of data-driven applications the system.collections.frozen namespace comes with a frozen dictionary and Frozen set implementation those types are read only and don't allow changes once they're created however read operations are a lot more performant a perfect use case for the Frozen types is data that gets populated once and held in memory for a long time such as lookup tables if you have data like this in your existing applications migrating 2.net 8 and using the new Frozen collections will significantly improve your application's performance when working with date and time in your application code you most likely face issues implementing automated tests if you haven't tried it let me tell you that faking time is a lot harder than it sounds with.net 8 we get a new time provider class including an itimer interface that helps fix this issue it allows us to mock time in test scenarios we can also use it to mock task operations I haven't tried the new types because I currently don't work on an application dealing with time however I'm sure those new types will be very much appreciated by the.net community another new feature improving the developer experience is keyed the eye services with key dependency injection we can define a key when registering a dependency in their documentation Microsoft shows an example where they have two different implementations for the imemery cache interface differentiated by a key when resolving the service we can provide the key identifying which implementation we want to receive if that is something you'd like to see in action let me know in the comments and I will show it in more detail in a future video with.net 8 minimal apis in asp.net core 8 get new features for example binding to forms and a new middleware for validating anti-forgery tokens with.net 8 feature compatibility for minimal apis again comes a step closer to traditional controllers with.net 8 the asp.net core react and angular project templates no longer depend on identity server instead they use the default asp.net core identity UI and cookie Authentication it will allow us to create simple but secure single page applications we also get a new middleware map identity API that adds two endpoints to register and log in that will be helpful in authentication scenarios with Placer or javascript-based single page applications there are more additions and changes to authentication and authorization in.net a let me know if you want me to build an example application utilizing them there is so much more coming with.net 8 then I could cover today however I mentioned everything that I know will make an impact on my everyday work assay.netdeveloper for me the performance improvements alone are a big reason to migrate my applications who doesn't like a free performance upgrade it could even result in less money spent on consumption-based applications running in the cloud Blazer finally becomes a viable full stack web UI framework I'm looking forward to migrating existingeternal.net 7 Blazer applications as well as implementing new public facing web applications present collections time abstraction and key services are great new features that can impact specific situations I look at them as quality of life improvements I haven't used minimal apis for my own applications however they are great for teaching asp.net core web API development to new developers also with.net 8 reducing the feature gap between minimal apis and traditional controllers they become a more viable option for building production applications authentication and authorization have always been a complicated topic it's something I never could write the first time I really hope the new features will make it simpler to implement basic authentication scenarios what are you looking for the most in.net 8 did I miss something that you believe will make a big difference let me know in the comments below if you made it this far please like the video and if you want to learn more about.net 8 subscribe to see more similar.net content in the future I will see you in the next video
Info
Channel: Claudio Bernasconi
Views: 5,251
Rating: undefined out of 5
Keywords: .NET 8, New Features .NET 8, New Features in .NET 8, What's New in .NET 8?, dotnet 8, the best .net, .net 8 performance, Blazor full-stack, Frozen Collections, Time Abstraction, Keyed DI Services, .NET 8 Authentication, .NET 8 Authorization, Claudio Bernasconi, .NET, dotnet, .net core
Id: gml70Slt-BM
Channel Id: undefined
Length: 9min 3sec (543 seconds)
Published: Wed Sep 20 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.