1. Glossaryفەرهەنگی زاراوەکان
Publish–subscribe pattern
شێوازی بڵاوکردنەوە و بەشداربوون
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A in which a publisher announces that its data has changed, and every subscriber (a ) that has registered with it is told, so that each one can fetch the new data. Provider, ChangeNotifier and view models use it.

کە تێیدا بڵاوکەرەوەیەک ڕادەگەیەنێت کە دراوەکەی گۆڕاوە و هەموو بەشداربوویەک () کە خۆی لەلای تۆمار کردووە ئاگادار دەکرێتەوە، بۆ ئەوەی هەریەکەیان دراوە نوێیەکە وەربگرێت. Provider، ChangeNotifier و بەکاری دەهێنن.

Exampleنموونە

A ChangeNotifier is a publisher; each widget that calls context.watch is a subscriber and is rebuilt after notifyListeners().

ChangeNotifier بڵاوکەرەوەیە؛ هەر کە context.watch بانگ دەکات بەشداربووە و دوای notifyListeners() دووبارە دروست دەکرێتەوە.

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

Proposed: بڵاوکردنەوە (publishing, as in the registry's publishing) + بەشداربوون (subscribing). The owner's Lec8 note describes consumers that «خۆیان لەلای Providerـەکە تۆمار کردبێت» (register themselves with the provider).

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

The Observer Pattern Explained and Implemented in Java | Behavioral Design Patterns | GeekificGeekific · Englishئینگلیزی · 147K viewsبینین · 2.8K likesلایک · Partبەشی 0:00–2:36 (ofلە 6:48)

The observer pattern with a shop example: customers subscribe as listeners, and the shop notifies every listener when a new item arrives.

Observer بە نموونەی دوکانێک: کڕیاران وەک بەشدار دەبن و دوکانەکە کاتێک کاڵایەکی نوێ دێت ئاگاداری هەموو دەکاتەوە.

Learn more inزیاتر فێربە لە