C# 12 "INTERCEPTORS" are a MUST - FULL C# 12 NET 8 Interceptor TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 13

  • @ralphtrickey
    @ralphtrickey 10 месяцев назад +5

    I hate this feature. I can see its use in unit testing older code, but I can also see how it could potentially create horrible spaghetti code that is impossible to maintain. I especially hate the thought of copilot naively adding it to code used by novices when there are better solutions. This is as bad as the COME FROM statement. Other than unit testing legacy code, are there places where this is a good solution?

    • @diadetediotedio6918
      @diadetediotedio6918 10 месяцев назад

      The fact that you don't see the utility of this does not mean it does not exist, grow up bro.

  • @rushas
    @rushas 9 месяцев назад +1

    This was not easy to understand. I think an example that doesn't make sense, makes it harder to understand

  • @1S_mods
    @1S_mods 9 месяцев назад

    its hard to understand , make an example !

  • @ChodaBoyUSA
    @ChodaBoyUSA 10 месяцев назад +4

    What happens when the source file is edited and the method being intercepted moves to a different line or column?

    • @bot-bot
      @bot-bot 10 месяцев назад

      Was instantly asking myself the same thing

    • @diadetediotedio6918
      @diadetediotedio6918 10 месяцев назад +2

      This was intended to be used with source generators, so the code of the interceptors would just be regenerated pointing to the right line/column.

    • @ralphtrickey
      @ralphtrickey 10 месяцев назад

      @@diadetediotedio6918 Do you know of any specific examples or discussion of cases where that would be done? It seems to me that if you're using a source code generator, it could copy the source and generate the code inline instead. If I squint I can see the use case, I just disagree with it philosophically.

  • @Trylobajt
    @Trylobajt 7 месяцев назад

    This is junk. The beginner tutorial shows interceptors, a feature for the top 0.0001% of C# masters who build nugget packages.

  • @Merlin45.
    @Merlin45. 8 месяцев назад

    Mega geil bist. Jeder klatscht sieht
    Timmendorfer Strand
    Mittelpunkt der Welt bist
    Frau gerne führe Harley Davidson

  • @janniko.3232
    @janniko.3232 10 месяцев назад

    He bin grade auf udemy auf viele deiner Kurse gestoßen und finde die wirklich Klasse :) direkt 2 gegönnt, aber bei dem " kompletter web entwickler /2.0 " verstehe ich nicht ganz. Wo liegt der unterschied ? Und welchen sollte man sich mittlerweile holen

  • @rootsharp9946
    @rootsharp9946 4 месяца назад

    the girl/boy thing appearing in between is so damn annoying.