Getting Started with Event Sourcing in .NET
37:07
Swagger is Going Away in .NET 9!
10:48
16 сағат бұрын
Lists Are 3 Times SLOWER in .NET 9!
7:17
"Stop Using LINQ in .NET!"
9:15
I messed up. I'm sorry.
7:18
Ай бұрын
Make Your LINQ Up to 10x Faster!
11:08
Why Developers Already Hate .NET 9
10:12
The Pattern You MUST Learn in .NET
20:48
Пікірлер
@SirusStarTV
@SirusStarTV 7 минут бұрын
Can't keep up with these c# versions, 10, 11, 12, 13 ....♾
@foamtoaster9742
@foamtoaster9742 30 минут бұрын
I would love to see linux support for MAUI, make it truly cross platform
@davestorm6718
@davestorm6718 36 минут бұрын
try - catch, definitely. I write tons of I/O stuff and exceptions don't always happen when you think they will. For example, you can test a file to see if it has locks (or whatever), then believe that everything will be okay when you start reading it (big file), half-way in the read, a network card crashes (or drive hiccups, or what-have-you), then your IF check is worthless, and your program crashes because you didn't use exception handling. Believe me, stability is FAR more important than SPEED. A slow program is a nuisance, but a crashing program can be a career changer!
@fluffydoggo
@fluffydoggo 36 минут бұрын
Enum extensions are going to be insane
@davestorm6718
@davestorm6718 53 минут бұрын
The only time I had to use list of objects was for integrating with a crappy api (for a specific accounting program).
@whatizzydoin
@whatizzydoin Сағат бұрын
Would be cool if they could add a ‘when (Age >= 18)’ and allow an ‘if (person is Adult adult) …’ pattern. 😊
@pilotboba
@pilotboba Сағат бұрын
Sort of looks like Ruby mixins.
@MrLOPIU22
@MrLOPIU22 Сағат бұрын
weird way of creating interfaces and using inheritance
@kobor42
@kobor42 2 сағат бұрын
Implicit extension makes sense, but explicit extension doesn't. It's inheritance. If it allows to "extend" sealed classes, then it ruins the concept of sealed classes.
@shahfaisal3923
@shahfaisal3923 2 сағат бұрын
Seriously more way complicated. Thanks for the video.
@JVimes
@JVimes 2 сағат бұрын
Yeees!!
@AntoineBriseboisRoy
@AntoineBriseboisRoy 2 сағат бұрын
It is very great that they finally did something with that! However, my main struggle, and the main reason why I rarely use extension methods, is because it is impossible to mock it during testing. With this new way of doing thing, will we be able to mock this for testing purposes?
@aabdis
@aabdis 3 сағат бұрын
I've been waiting for this forever! Next question.... in these extension "classes", can you also define extension operators??
@jimh3595
@jimh3595 3 сағат бұрын
How can i see the Viewer for the low level code? Thanks
@jeffreypfeifer130
@jeffreypfeifer130 3 сағат бұрын
Awesome Video!! Keep pumping them out :)
@DE-sf9sr
@DE-sf9sr 4 сағат бұрын
So basically improved inheritance?? Can inherit classes and extend properties currently. Not sure exactly what has changed other than syntax.
@trevorstanfield8813
@trevorstanfield8813 4 сағат бұрын
Hopefully 14 comes with DUs. It would be good to get it in LTS version
@Greedygoblingames
@Greedygoblingames 5 сағат бұрын
Wait a minute... the explicit version is basically inheritance. You could just create a class called Adult that inherits from Person and do exactly the same thing. Would be nice to see a genuine example of where explicit becomes useful and something new.
@bartekm3878
@bartekm3878 5 сағат бұрын
You explained it so clearly! 🤩 It'd be awesome if you continued this as a series with more concepts.
@Sysshad
@Sysshad 5 сағат бұрын
How do you secure the dashboard. I mean if you run this in a production environment, can you add access rights to it? And can you also see to it that some environment variables are masked, as in some situations there is one team handling the system and another team handling the development and they aint usually allowed to access passwords but they are interested in seeing logs.
@therealgamer8150
@therealgamer8150 5 сағат бұрын
Can someone explain why the explicit extension isn’t just the same as inheritance ?
@Furyaxgaming
@Furyaxgaming 6 сағат бұрын
To whom having issues with the generated token, please ensure of the order of app useauth and use authorization. That was my point. Here is the order : app.UseAuthentication() .UseAuthorization();
@vitskr1
@vitskr1 6 сағат бұрын
I have no idea why started this NSwag is better maintained thing goin, but it is just stupid. It tooks them months to add .net 8 support after .net8 release. NSwag litterellay has 1700 open issues and 100 PRs noone ever looked at.
@petrusion2827
@petrusion2827 6 сағат бұрын
I found this feature by accident. I had to write some empty classes and structs to use with code generators, and I wrote them as I would in Rust, with just the semicolon after the name. A few minutes later when it successfully compiled I thought to myself "Wait, that shouldn't have worked"
@JoeIrizarry88
@JoeIrizarry88 7 сағат бұрын
This is pretty great. Discriminated unions is THE feature to fix exception nonsense in enterprise code or OneOf nonsense in smaller personal projects.
7 сағат бұрын
What is the difference between explicit extensions and class inheritance?
@julienlefevre1661
@julienlefevre1661 7 сағат бұрын
#4 as Scope boundaries are more visible and explicit with curly brackets
@RichardNatal
@RichardNatal 7 сағат бұрын
So, what's the difference between explicit extension and inheritance?
@wayneseguin
@wayneseguin 7 сағат бұрын
100% agree "implicit" extension is a game changer. However, how is "explicit" extension different from regular inheritence (i.e. "public Person : Adult")?
@marbachdaniel
@marbachdaniel 7 сағат бұрын
Imagine what cool things that eventually enables with source generators
@KimichisxD
@KimichisxD 7 сағат бұрын
I like it, but I can't imagine use-case for the explicit extension. I always thought that the extensions classes are being used to extend existing types that I cannot control well (so I think the implicit extension is absolutely awesome), but the explicit one feels to me like it creates a new type derived from the type you are trying to extend. Now I wonder if it's a really new type (so it will shown differently in Reflection, etc) or if it is still the same old type, just with some kind of an alias or something.
@Freakhealer
@Freakhealer 7 сағат бұрын
will we be able to use pattern matching "if(person is Adult adult)"? And is it possible to add operator behaviour to any type? I often want to add the values in a vector but there is no built in + in vector, and you cant do it yourself directly on the System.Numerics.Vector class so far
@OrionTheCookie
@OrionTheCookie 7 сағат бұрын
I wonder how many discussions this is going to give about extensions vs inheritance. And also what this means for serialization as mentioned in another comment.
@sebastianbusek2087
@sebastianbusek2087 8 сағат бұрын
I feel like the explicit extension is just plain old inheritance. What am I missing here?
@umerkle
@umerkle 8 сағат бұрын
So this means the explicit extension is just the same as a subclass?
@MrFreddao
@MrFreddao 8 сағат бұрын
I hate extensions.
@JP-hr3xq
@JP-hr3xq 8 сағат бұрын
What is the point of the explicit extension when you could just inherit from a class? Or am I missing something? Are they just trying to make C# syntax prettier?
@SlackwareNVM
@SlackwareNVM 8 сағат бұрын
This is the content I've been waiting for. How would you handle versioning of events and views - adding and removing properties, etc.?
@lucaciandrei
@lucaciandrei 9 сағат бұрын
"or maybe another time..." proceeds to silently write 0.69
@ricardotondello
@ricardotondello 9 сағат бұрын
Great stuff, Do you happen to test/check how this implicit/explicit extension properties will behave when serializing/deserializing to a Json for example?
@woocaschnowak
@woocaschnowak 9 сағат бұрын
Feature looks great if you use it with some consideration. It can also be abused in new unexpected ways by devs that think they're smart, when they aren't 🙂
@SlackwareNVM
@SlackwareNVM 9 сағат бұрын
I've been waiting for this feature for years. This and DUs, but I think I need this one more.
@timseguine2
@timseguine2 9 сағат бұрын
I can already say I am going to use this all the time. I would like it if they made it slightly more like Rust's trait impls than it already is, and let you implement interfaces as an extension.
@TheAzerue
@TheAzerue 10 сағат бұрын
Why using "@" when defining Event @event as a param. Is it a convention ?
@JacobNax
@JacobNax 10 сағат бұрын
I wonder how the explicit extension works under the hood.... It would seem as it would allocate a new region in memory. How this is done is important for game dev for example because if the memory region of the extended type is scattered, it can cause a bunch of cache misses.
10 сағат бұрын
Beautiful and what sealed class?
@KennethSiewersMller
@KennethSiewersMller 10 сағат бұрын
I didn't go through all the comments on the GitHub proposal, but does anyone know if conditional extensions have been discussed? I was thinking that a condition on the extension could make type-checking a lot more powerful, for instance, like this: public explicit extension Adult for Person person when (person.Age >= 18) { public string FavoriteDrink => "Old Fashioned" } That could potentially allow me to write this: if (person is Adult adult) { var favoriteDrink = adult.FavoriteDrink; }
@trarizon
@trarizon 10 сағат бұрын
Do c# extension have something like the orphan rule? Looks like explicit extension is a better way than orphan rule, but i'm still curious about whether implicit extension requires this rule.
@abuhabibah8448
@abuhabibah8448 10 сағат бұрын
Isn't this thing (extension) already around since some previous versions? Maybe since c# 8 or 9?
@muddyPassenger
@muddyPassenger 10 сағат бұрын
That's a dumb shit