Інверсія залежностей

  • ◷ 6 хв
  • Початковий
  • Кроків: 7

The rules should not depend on the database. Turn the arrow around with a simple promise.

Цей урок ще не перекладено українською, тому він показаний англійською.

Arrows rules → database code
1
Storages
1
Changes in the rules
—
  • Rules
  • Database code
  • Promise (interface)
  • Test store