How do you analyze the regression impact of a system?

Поделиться
HTML-код
  • Опубликовано: 22 июн 2024
  • In "How do you analyze the regression impact of a system?" I answer a programming question.
    A podcast version of the channel can be found here: anchor.fm/fredrik-christenson

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

  • @Polo-fo2wc
    @Polo-fo2wc 9 дней назад

    Hi Fredrik, what do you think about the effectiveness of JSONs used to generate forms?
    In my project we are using a configuration API that returns a JSON containing the text for questions in a questionnaire and the possible responses. I have found React/Angular libraries that allow you to create a form from a JSON, but they are highly opinionated on the UI format. Not the case in my project where for example, the question text could be an h2, h3, or label tag, or sometimes we have text that is just instructions and isn't in the question/response format.
    The benefits I see with the JSON config approach are: 1. you can change the text without having to update the code, 2. the configuration API takes parameters so that based on the input you can return a different configuration.
    The downside is that in my project, the look & feel is consistent but the wireframes for the pages can have a significantly different layout, and we can't predict what UI/UX designers will require in the future, which is the problem we are running into now. The JSON we initially created doesn't fit the current use case so we are looking into refactoring it which will have a large regression impact. It almost feels like a lost cause since we can never predict what is needed in the future, yet I see the benefits of the JSON config.
    I've done some research online but the only thing I can find are those JSON Form libraries which make a lot of assumptions that we can't make.
    Thanks for your thoughtful videos!

    • @FredrikChristenson
      @FredrikChristenson  9 дней назад +1

      The rule of thumb I follow here is the same for standard UI component libs.
      If the designers can not create a standard, do not try. The code you are writing is an extension of the designs. If the design is unpredictable your components need to be flexible and one off solutions are almost always going to be a requirement.
      The same is true here. If you find that you need to dynamically create forms, a json config will be good. However you can also consider to simply create templates in code that do not need json but any js array with objects or similar.
      Lastly, I would not use a third party lib. It is not hard to define your own json configs and create a small form building framework that suits your needs. I have done this on a few projects and it allows you to control any updates that a third party lib would not handle.

    • @Polo-fo2wc
      @Polo-fo2wc 9 дней назад

      @@FredrikChristenson Thanks for the response! I agree with creating our own solution for the form builder