Meta Programming is King

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

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

  • @tomaszenko13
    @tomaszenko13 ปีที่แล้ว +9

    Funny coincidence, I will be implementing something similar at work in few weeks.
    As always, problem is not with the code, but with humans: I need to make sure other team member are OK with such solution and understand it.

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

      i'd refuse such a solution LOL

    • @stefan-d.grigorescu
      @stefan-d.grigorescu ปีที่แล้ว

      ​@@TheNorthRemember​If it'd be a well defined and documented tool and easy to work with, why not?

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

      @@stefan-d.grigorescu one reason is cus it's hard to understand and make sure to cope with rules , second, we build small project for simple problems.

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

    Good to see you back!
    Great stuff as always. I am too a big proposer of metaprogramming.
    I'd like to know - how would you do something similar to Entity Framework's IEntityTypeConfiguration?
    For example, to configure cache keys via Expression API and store them in IOptionsMonitor or something along those lines.

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

      1. you'd accept an Expression as an arg to your builder methods
      2. cast the argument to a LambdaExpression
      3. work with the Parameter type (entity type) and the Body (selected property for config)

  • @frost.6647
    @frost.6647 ปีที่แล้ว +3

    You can use a source generator for this, so you don’t have to pay the cost of reflection and lambda compilation.

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

      @frost.6647 Could you please give more info about this?

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

      There isn’t an actual package that does this, hes saying if you take the source generator approach, you can pay the price of having this functionality at compile time, which is a different beast.

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

    Past. Source generators is a new gold.

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

      Source generators dont have run time data

  • @xEspada
    @xEspada ปีที่แล้ว +1

    Hey man, thanks for the valuable content, I have been a fan for a while now. I would just like to inquire about your course. Is it listed on other websites? like udemy, I have looked and couldn't find anything. Also, Is the course targeted only for beginners? I have been trying to get into ASP but it's too convoluted, thanks.

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

      > Is it listed on other websites? like udemy, I have looked and couldn't find anything.
      it is not
      > Also, Is the course targeted only for beginners? I have been trying to get into ASP but it's too convoluted, thanks.
      only beginners for now, currently working on more advanced topics

  • @bobek8030
    @bobek8030 ปีที่แล้ว +13

    I dont understand a single thing in this video

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

    Clever Programming is King, whatever shape suits to it.

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

    It is so much powerfull !

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

    Reflection is an addiction, say no to drugs 😂. It starts small, and suddenly, you have built a mini framework in your codebase.
    Good video, though.

  •  ปีที่แล้ว +1

    Interesting technique but the video is a bit all over the place. You should think about taking a bit of time and planning the video steps. Maybe taking few minutes to explain why sanitize and common approaches. Then explain how this can be eased by using expressions and then provide an overview of the approach you are recommending.

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

    easily the craziest shit iv seen , and i understand nothing

  • @redouane5626
    @redouane5626 ปีที่แล้ว +1

    why are you doing this to us?