Refactoring Large Initializer in Swift Part 1. Dependency Injection & Default Values & Properties

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

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

  • @DavidNorman1
    @DavidNorman1 3 года назад

    I’m looking forward to part 2 thanks guys

    • @InsideiOSDev
      @InsideiOSDev  3 года назад

      here it is ruclips.net/video/PT7Zsbl5G7U/видео.html

  • @bobweiram6321
    @bobweiram6321 Год назад

    This isn't a very good example. It's too open ended. The customer class doesn't have an implementation making it difficult to decide which services are required. Regardless, the Customer class has too many responsibilities and would be better refactored further up the call hierarchy. For instance, the customer could be passed a context with the necessary data it requires.