Automate yourself out of a job with Roslyn - Mark Rendle - NDC Copenhagen 2022

Sdílet
Vložit
  • čas přidán 17. 08. 2022
  • Roslyn is Microsoft's "compiler as a platform" for C# and VB.NET. You can use it to read, analyze or modify existing code, or make squigglies in Visual Studio, or even generate and compile entirely new code at runtime because you're insane.
    In this talk I'll introduce you to Roslyn, explain things like Workspaces, SyntaxTrees, SyntaxNodes and symbols, and show you some of the fun things you can do with it, both in console applications and as Visual Studio extensions.
    If you also go to a talk on Machine Learning you will probably be able to create an artificial intelligence to write code for you and take the rest of your life off.
    Check out more of our featured speakers and talks at
    www.ndcconferences.com
    ndccopenhagen.com/
  • Věda a technologie

Komentáře • 16

  • @mahmoudalsayed1138
    @mahmoudalsayed1138 Před rokem +3

    That's was a brilliant lecture!
    Thanks Mark! And many thanks for NDC for putting these great sessions together and sharing them on CZcams!

  • @alexclark6777
    @alexclark6777 Před rokem +16

    I'm writing a C# Roslyn analyzer that checks your solution for any use of the goto keyword, and advises you to go back to writing VB if it finds any.

  • @_a_n_r_i2812
    @_a_n_r_i2812 Před rokem +11

    Thank you for this great presentation. It would be greater if you ask the presenter to publish the source code. We want to try them out. Thank you.
    Unfortunately none of your presentations has source code!

  • @phizc
    @phizc Před rokem +3

    From the title I thought this was going to be about source generators. It wasn't, but it was entertaining and informative.

  • @DamnedVik
    @DamnedVik Před 10 měsíci +1

    Not a C# programmer, so don't know why I watched this presentation, but at my job we something very similar in Java - we need to validate some data-classes, but validation requires that we add correct annotations to each field inside the class.
    To enforce this, we wrote a few compile-time checks that will analyze each field of the class during compilation, and check that each field has at least one annotation from a set of per-determined annotations. If it doesn't, the compilation will fail with a message that this field is missing validation annotations

  • @ruoxuan666
    @ruoxuan666 Před 5 měsíci

    Thank you very much, That great!

  • @vamsikrishna4323
    @vamsikrishna4323 Před rokem

    Thanks.. it is very helpful video.

  • @ivandrofly
    @ivandrofly Před 7 měsíci

    Thank you

  • @kdakan
    @kdakan Před 10 měsíci

    I like compiler technologies, but this will probably not be in my toolset. I do code generation by building code with strings and that is usually covers enough land for me. Also this way I can geneerate code for C#, javascript, etc. and I'm not ties to a tech stack.

  • @ivandrofly
    @ivandrofly Před 7 měsíci

    Where can we get the source code?

  • @ivandrofly
    @ivandrofly Před 7 měsíci

    32:11 - Rewriting Code

  • @ivandrofly
    @ivandrofly Před 7 měsíci

    20:34 - Implicitly declared

  • @ivandrofly
    @ivandrofly Před 7 měsíci

    Previous video czcams.com/video/_cIVa-RctcA/video.html

  • @jasminsabanovic869
    @jasminsabanovic869 Před 6 měsíci

    14-05

  • @ketsuekikumori9145
    @ketsuekikumori9145 Před rokem

    Mark: I don't really understand what Microsoft.Build.Locator does. I just know it exposes one method and you need to call that method first.
    Pretty much sums up learning programming.