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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • 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.ndcconfere...
    ndccopenhagen....

ความคิดเห็น • 16

  • @mahmoudalsayed1138
    @mahmoudalsayed1138 2 ปีที่แล้ว +3

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

  • @alexclark6777
    @alexclark6777 2 ปีที่แล้ว +17

    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 2 ปีที่แล้ว +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 2 ปีที่แล้ว +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 ปีที่แล้ว +2

    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

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    Thank you

  • @ruoxuan666
    @ruoxuan666 9 หลายเดือนก่อน

    Thank you very much, That great!

  • @vamsikrishna4323
    @vamsikrishna4323 ปีที่แล้ว

    Thanks.. it is very helpful video.

  • @kdakan
    @kdakan ปีที่แล้ว

    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 10 หลายเดือนก่อน

    32:11 - Rewriting Code

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    20:34 - Implicitly declared

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    Where can we get the source code?

  • @ketsuekikumori9145
    @ketsuekikumori9145 2 ปีที่แล้ว

    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.

  • @jasminsabanovic869
    @jasminsabanovic869 10 หลายเดือนก่อน

    14-05

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    Previous video th-cam.com/video/_cIVa-RctcA/w-d-xo.html