Tutorialr Talks - Rules Engine with .NET

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • Find out about Rules Engines with .NET using the Microsoft Rules Engine
    tutorialr.com/...
    github.com/tut...

КОМЕНТАРІ • 6

  • @ChaseFreedomMusician
    @ChaseFreedomMusician 4 місяці тому +3

    Why is all the programming done as strings in the constructor? That seems terrible from a usability perspective.

    • @RoguePlanetoid
      @RoguePlanetoid  4 місяці тому

      It just made them easier to show off for this example, but rules could be defined in JSON instead, and that would probably be better for usability

    • @ChaseFreedomMusician
      @ChaseFreedomMusician 4 місяці тому +1

      @@RoguePlanetoid but why not just as code if your bringing it in as individual classes? As a general thing that makes sense but what's described here feels like creating classes with extra steps and no intellisense.

    • @RoguePlanetoid
      @RoguePlanetoid  4 місяці тому +1

      @ChaseFreedomMusician Indeed you could have the rules in code, but here you can have these lambda expressions loaded from config or a database or JSON or for this simple example as strings, that's the main benefit of that approach but you could use the same structure with normal code and have benefits of intellisense too, that's something I've used before in fact

    • @ChaseFreedomMusician
      @ChaseFreedomMusician 4 місяці тому +1

      @@RoguePlanetoid thanks

  • @user-rp9iis1en6h
    @user-rp9iis1en6h 10 днів тому

    Sorry to say, the example was terrible. Please never show this kind of example for the beginners, they will run away from this library.