Тёмный

Our favorite things in .NET 8 - David Fowler & Damian Edwards - NDC Sydney 2024 

NDC Conferences
Подписаться 193 тыс.
Просмотров 11 тыс.
50% 1

This talk was recorded at NDC Sydney in Sydney, Australia. #ndcsydney #ndcconferences #developer #softwaredeveloper
Attend the next NDC conference near you:
ndcconferences.com
ndcsydney.com/
Subscribe to our RU-vid channel and learn every day:
/ ‪@NDC‬
Follow our Social Media!
/ ndcconferences
/ ndc_conferences
/ ndc_conferences
#dotnet
In this session, Distinguished Engineer David Fowler and .NET Product Architect Damian Edwards share their favorite things about the newly released .NET 8, including some items you probably haven’t heard about.

Наука

Опубликовано:

 

3 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@Pentracchiano
@Pentracchiano 20 дней назад
Title is wrong, it's David Fowler, not Damian Fowler 😊
@slang25
@slang25 20 дней назад
I like the idea they've done so many talks together they are just "Damian Fowler" now 😄
@cokert3
@cokert3 20 дней назад
I hope “Scott Toub” becomes a thing.
@JoeIrizarry88
@JoeIrizarry88 16 дней назад
Default for "var x = []" should be list. Never in my life have I wanted an easier way to create an empty array except when passing as a parameter. What would it's use case be?
@hahnkev
@hahnkev 16 дней назад
That makes sense. But what about "var = [5]"? You could argue it should be an array. But then you get a list when it's empty and an array when it's not? That doesn't make sense.
@JoeIrizarry88
@JoeIrizarry88 15 дней назад
Very valid point if consumers of the syntax are using it as a shorthand for existing types. Also Agreed that would be unexpected unless it’s defined behavior. Consider whether the compiler can infer the best type based on how it’s used in the same way it does when the left hand side is defined. If I mutate, give me the best mutable type. If I don’t, the best non-mutable. If I return it as a span, consider that. Or if I return an IEnumerable, please do the best there. When I see the syntax it kind of kicks me into a more dynamic context. We have anonymous objects, anonymous methods, lambda expressions which generate expression trees (not IL methods), and now we even have anonymous delegates with default parameters. Could this syntax be anonymous collections? Basically says “I don’t care about the underlying type, please use or create the best one that fulfills my needs based on local usage”. I say local because this syntax in a field or property wouldn’t work if it was anonymous and I think that’s ok.
@BryonLape
@BryonLape 20 дней назад
I'm old enough to remember when constructor injection was considered bad.
@modernkennnern
@modernkennnern 20 дней назад
What was considered best practice at that point? Method parameter injection?
@evarlast
@evarlast 17 дней назад
@@modernkennnern probably property injection. tons of cargo cult bad/good that doesn't really matter
@alexisfibonacci
@alexisfibonacci 17 дней назад
@@modernkennnern property injection. You always had factory or strategies to construct your objects and stitch things together. Constructor injection to my mind simplifies things. And you can hold a reference to IServiceProvider to do other resolutions as you need them.
@mvonballmo
@mvonballmo 5 дней назад
@@alexisfibonacci You can hold a reference to IServiceProvider but you almost never should. 🙂 Instead, you should pass in a more specific factory, if you can. Otherwise, it's no longer possible to see which types a type depends on -- it can create whatever it likes with the IServiceProvider. Sometimes you need this, like when you're instantiating plugins from a configuration but it's rare. To the OP, I don't know why constructor injection would be considered bad. It allows you to see a type's dependencies and reason about your code more easily. If a type has everything it will ever have when it's constructed, then there are far fewer code paths to consider. There are always exceptions, of course, but the general direction should be to inject simple types (i.e., not IServiceProvider) in the constructor ... and make properties read-only. 🙂
@pkop4
@pkop4 6 дней назад
Turn off copilot next time. Ruins the presentation
@codder32
@codder32 4 дня назад
no it doesn't. It shows real life usage of copilot...
Далее
Я НЕНАВИЖУ УТРО! (анимация)
05:21
Просмотров 385 тыс.
I Am Done With Graph QL After 6 Years
31:41
Просмотров 121 тыс.
Brutally honest advice for new .NET Web Developers
7:19
HTMX Sucks
25:16
Просмотров 101 тыс.
What’s new in C# 13 | BRK186
46:27
Просмотров 37 тыс.
XAVFSIZLIK UCHUN KAMERA. Hikvision
38:51
Просмотров 18 тыс.