Тёмный

Coding Shorts: Building a Source Generator - Part 1 

Shawn Wildermuth
Подписаться 17 тыс.
Просмотров 9 тыс.
50% 1

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

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@juleseastlondoncockney8131
@juleseastlondoncockney8131 Год назад
Really like your videos. Always find something interesting in them.
@swildermuth
@swildermuth Год назад
I appreciate that!
@lordgaulo6520
@lordgaulo6520 Год назад
I always learn so many extra useful things from your videos I love it I always get way more than i planned for and you do it without wasting any time .
@kodikodi9948
@kodikodi9948 6 месяцев назад
this is exactly what i needed. thank you.
@swildermuth
@swildermuth 6 месяцев назад
Awesome
@draganradovac8803
@draganradovac8803 3 месяца назад
That was really cool. Thanks
@fullemptiness
@fullemptiness Год назад
Great video! By the way you can drag the class library project and drop it into the console project, this feature saved me opening the add reference window
@swildermuth
@swildermuth Год назад
Thanks for the tip!
@matadorso
@matadorso Год назад
Your latest content is awesome!
@ronnieoverby
@ronnieoverby 8 месяцев назад
I love this guy. Thanks, Shawn!
@mlhtest5928
@mlhtest5928 Год назад
Interesting topic, thanks!
@swildermuth
@swildermuth Год назад
Glad you liked it!
@gelordtube
@gelordtube Год назад
Hi Mr Shawn, It was a wonderful video about code generation!! :) ;) I thought that one of the ways to generate code was the T4 templates, but along with this, I think is another thing to do w/ code generate!! Thx You!
@swildermuth
@swildermuth Год назад
Glad you liked it.
@cyrildouglas9262
@cyrildouglas9262 Год назад
Thanks for the video, does part 2 comes next week?
@swildermuth
@swildermuth Год назад
Probably Thursday.
@FunWithBits
@FunWithBits Год назад
Thanks for the great video. I probobly would not have watched this but it was suggested by youtube's magic suggestion engine... so I did. I think I might re-watch it and experiment with this... anything as an alternative to reflection! =)
@swildermuth
@swildermuth Год назад
Thank you!
@FunWithBits
@FunWithBits Год назад
@@swildermuth - fyi - I built it but it ended up not working for some reason. The 'using SampleSourceGenerator' line had an error here with a type or namespace name 'type/namespace' could not be found. I added the reference and the Analyzer line in for the project but no luck. I added the project to github but don't want to add it to add it because the comment might be removed.. this is my 3rd post of this text.
@the-nasim
@the-nasim Год назад
Please make a video about refresh tokens.
@elerius2
@elerius2 Год назад
Hi Shawn, will your SG series cover debugging/unit testing source generators?
@swildermuth
@swildermuth Год назад
No unit testing, though it just builds code, so unit testing the generated code shouldn't be too difficult. The second episode (this week) will cover how to read the Roslyn data to build up your own code and how to debug it in Visual Studio. Look for it Thursday.
@chjr4740
@chjr4740 Год назад
Could the Where clause be removed and instead the nullcheck be added to the predicate?
@swildermuth
@swildermuth Год назад
I don't think so, as the predicate is fired as the code changes, the null check to to ensure that the predicates are not null, not the result.
@williamliu8985
@williamliu8985 Год назад
The idea of SG is cool, but it seems that the tools (VS/rider) is not that completely ready.
@swildermuth
@swildermuth Год назад
Shouldn't matter, on tools that do not use them, they are executed at compile time too. Lots of tools you're already using probably employ them and you never noticed.
@williamliu8985
@williamliu8985 Год назад
@@swildermuth I think the SG can be a tool that is biased towards the needs of individual developers, so it is better to be easy to use. But its current usage and syntax do not seem so approachable, and if the tool developed for it is not user-friendly neither, ordinary developers may feel that this tool is inaccessible.
@swildermuth
@swildermuth Год назад
That's why I decided to do the video, to make it more approachable.
@nayanchoudhary4353
@nayanchoudhary4353 Год назад
Topic is interesting. However, the lack of explicit type declaration made it hard to understand. I also wish you didn't follow the code, but rather lead the video. Nick Chapsas does an excellent job that way. His narration is very good.
@swildermuth
@swildermuth Год назад
Not sure what you mean , rather not follow the code.
@kiqyou
@kiqyou Год назад
yeah but what even IS a source generator?
@swildermuth
@swildermuth Год назад
Not to be pedantic, but it's code that generates source based on the code you're writing. Generators run while roslyn is parsing your code while you're writing in the editor as well as at build-time.
Далее
Turns out REST APIs weren't the answer (and that's OK!)
10:38
⚡ #RodrygoGoes ✖️ #Mbappé ⚽ #UCL
00:11
Просмотров 468 тыс.
SQL GROUP BY - The COMPLETE Guide
2:12
Просмотров 60
Coding Shorts: Building a Source Generator - Part 2
11:26
Coding Shorts: C# Dialects and Idioms
19:13
Просмотров 3,3 тыс.
C# Source Generators Tutorial
48:58
Просмотров 25 тыс.
Coding Shorts: Methods, Funcs & Actions...Oh, My!
11:02
⚡ #RodrygoGoes ✖️ #Mbappé ⚽ #UCL
00:11
Просмотров 468 тыс.