[{"data":1,"prerenderedAt":478},["ShallowReactive",2],{"blog-slat-3-pl":3},{"number":4,"title":5,"summary":6,"parts":7,"toc":11,"minutes":477},3,"Słownik","Trzy z tych pojęć łatwo pomylić, więc warto mieć w głowie taki obraz: tiery to piętra budynku, slice'y to mieszkania na piętrze core, a warstwy to pokoje w…",[8],{"kind":9,"html":10},"html","\u003Cdiv class=\"table-wrap\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Termin\u003C\u002Fth>\n\u003Cth>Znaczenie\u003C\u002Fth>\n\u003Cth>Odpowiednik we frontendzie\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Tier\u003C\u002Fstrong> (piętro)\u003C\u002Ftd>\n\u003Ctd>Rodzaj crate'a: \u003Ccode>kit\u003C\u002Fcode>, \u003Ccode>store\u003C\u002Fcode>, \u003Ccode>drivers\u003C\u002Fcode>, \u003Ccode>core\u003C\u002Fcode>, \u003Ccode>app\u003C\u002Fcode>. Tiery są ułożone jeden na drugim i zależą tylko w dół.\u003C\u002Ftd>\n\u003Ctd>Typ biblioteki w Nx (\u003Ccode>type:util\u003C\u002Fcode>, \u003Ccode>type:data-access\u003C\u002Fcode>, …)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Slice\u003C\u002Fstrong> (wycinek)\u003C\u002Ftd>\n\u003Ctd>Jedna funkcja produktu, na przykład \u003Ccode>run\u003C\u002Fcode>, \u003Ccode>chat\u003C\u002Fcode> albo \u003Ccode>skill\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>Folder domeny, \u003Ccode>src\u002Fsections\u002F&lt;area&gt;\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Layer\u003C\u002Fstrong> (warstwa)\u003C\u002Ftd>\n\u003Ctd>Plik wewnątrz slice'a o stałej nazwie i roli: \u003Ccode>model.rs\u003C\u002Fcode>, \u003Ccode>logic.rs\u003C\u002Fcode>, \u003Ccode>store.rs\u003C\u002Fcode>, \u003Ccode>service.rs\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>feature\u002F\u003C\u002Fcode>, \u003Ccode>ui\u002F\u003C\u002Fcode>, \u003Ccode>data-access\u002F\u003C\u002Fcode>, \u003Ccode>util\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Actor\u003C\u002Fstrong> (aktor)\u003C\u002Ftd>\n\u003Ctd>Jedyny właściciel długo żyjącego stanu: \u003Ccode>Msg → update → Effect\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>Store NgRx: action → reducer → effect\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Handle\u003C\u002Fstrong> (uchwyt)\u003C\u002Ftd>\n\u003Ctd>Jedyne drzwi do aktora z zewnątrz.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>inject(Store)\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Snapshot\u003C\u002Fstrong> (migawka)\u003C\u002Ftd>\n\u003Ctd>To, co okno widzi z aktora, publikowane przez kanał \u003Ccode>watch\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>select(…)\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Entry\u003C\u002Fstrong> (wejście)\u003C\u002Ftd>\n\u003Ctd>Sposób, w jaki świat zewnętrzny woła backend: komenda Tauri, serwer MCP, lokalny most, zdalny hub.\u003C\u002Ftd>\n\u003Ctd>Komponent ekranu\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Query\u003C\u002Fstrong> (zapytanie)\u003C\u002Ftd>\n\u003Ctd>Odczyt bez efektów ubocznych.\u003C\u002Ftd>\n\u003Ctd>Selektor\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Command\u003C\u002Fstrong> (polecenie)\u003C\u002Ftd>\n\u003Ctd>Zmiana stanu. \u003Cem>Komenda Tauri\u003C\u002Fem> to coś innego: funkcja, którą wywołuje okno, a która może wykonać zapytanie albo polecenie.\u003C\u002Ftd>\n\u003Ctd>Akcja\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Event\u003C\u002Fstrong> (zdarzenie)\u003C\u002Ftd>\n\u003Ctd>Backend informuje frontend, że coś się zmieniło, bez pytania.\u003C\u002Ftd>\n\u003Ctd>Wypchnięcie do store'a\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Platform\u003C\u002Fstrong> (platforma)\u003C\u002Ftd>\n\u003Ctd>System operacyjny, na który budujemy: \u003Ccode>macos\u003C\u002Fcode>, \u003Ccode>linux\u003C\u002Fcode>, \u003Ccode>windows\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003Ctd>Docelowa przeglądarka\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Platform contract\u003C\u002Fstrong> (kontrakt platformy)\u003C\u002Ftd>\n\u003Ctd>Funkcja w \u003Ccode>drivers::platform\u003C\u002Fcode>, która znaczy to samo na każdym systemie operacyjnym.\u003C\u002Ftd>\n\u003Ctd>Polyfill\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Plugin\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>Funkcja, którą użytkownik może włączyć albo wyłączyć: jeden lub kilka slice'ów z manifestem (sekcja 23, opcjonalna).\u003C\u002Ftd>\n\u003Ctd>Leniwie ładowana biblioteka funkcji\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Base slice\u003C\u002Fstrong> (slice bazowy)\u003C\u002Ftd>\n\u003Ctd>Slice, który jest zawsze włączony; nigdy nie importuje slice'a pluginu.\u003C\u002Ftd>\n\u003Ctd>Biblioteka powłoki aplikacji\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Hook\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003Ctd>Punkt rozszerzenia, który wystawia slice bazowy, a pluginy odpowiadają na niego danymi.\u003C\u002Ftd>\n\u003Ctd>Token wstrzykiwania z \u003Ccode>multi: true\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Trzy z tych pojęć łatwo pomylić, więc warto mieć w głowie taki obraz: \u003Cstrong>tiery to piętra budynku, slice'y to mieszkania na piętrze \u003Ccode>core\u003C\u002Fcode>, a warstwy to pokoje w każdym mieszkaniu.\u003C\u002Fstrong>\u003C\u002Fp>\n",[12,29,33,37,41,61,85,101,121,145,149,157,189,193,217,221,245,281,285,305,325,341,377,425,473],{"id":13,"text":14,"depth":15,"children":16},"s1","1. Po co jest SLAT",2,[17,21,25],{"id":18,"text":19,"depth":4,"children":20},"s1-1","1.1. Cele",[],{"id":22,"text":23,"depth":4,"children":24},"s1-2","1.2. Czego SLAT nie robi",[],{"id":26,"text":27,"depth":4,"children":28},"s1-3","1.3. Dla kogo",[],{"id":30,"text":31,"depth":15,"children":32},"s2","2. SLAT na jednej stronie",[],{"id":34,"text":35,"depth":15,"children":36},"s3","3. Słownik",[],{"id":38,"text":39,"depth":15,"children":40},"s4","4. Skąd się wziął SLAT",[],{"id":42,"text":43,"depth":15,"children":44},"s5","5. Tiery",[45,49,53,57],{"id":46,"text":47,"depth":4,"children":48},"s5-1","5.1. Strażnikiem jest kompilator",[],{"id":50,"text":51,"depth":4,"children":52},"s5-2","5.2. Od ilu crate'ów zacząć",[],{"id":54,"text":55,"depth":4,"children":56},"s5-3","5.3. Kiedy podzielić tier",[],{"id":58,"text":59,"depth":4,"children":60},"s5-4","5.4. Wyjątek dla zgodności",[],{"id":62,"text":63,"depth":15,"children":64},"s6","6. Slice'y",[65,69,73,77,81],{"id":66,"text":67,"depth":4,"children":68},"s6-1","6.1. Slice w core",[],{"id":70,"text":71,"depth":4,"children":72},"s6-2","6.2. Slice w app",[],{"id":74,"text":75,"depth":4,"children":76},"s6-3","6.3. Komenda: kształt wzorcowy",[],{"id":78,"text":79,"depth":4,"children":80},"s6-4","6.4. Rejestrowanie komend",[],{"id":82,"text":83,"depth":4,"children":84},"s6-5","6.5. Nazywanie slice'ów",[],{"id":86,"text":87,"depth":15,"children":88},"s7","7. Kto może importować kogo",[89,93,97],{"id":90,"text":91,"depth":4,"children":92},"s7-1","7.1. Wewnątrz slice'a",[],{"id":94,"text":95,"depth":4,"children":96},"s7-2","7.2. Między slice'ami",[],{"id":98,"text":99,"depth":4,"children":100},"s7-3","7.3. Dlaczego akurat te granice",[],{"id":102,"text":103,"depth":15,"children":104},"s8","8. Przepływy danych",[105,109,113,117],{"id":106,"text":107,"depth":4,"children":108},"s8-1","8.1. Query (odczyt)",[],{"id":110,"text":111,"depth":4,"children":112},"s8-2","8.2. Command (zmiana)",[],{"id":114,"text":115,"depth":4,"children":116},"s8-3","8.3. Zdarzenie (backend → okno)",[],{"id":118,"text":119,"depth":4,"children":120},"s8-4","8.4. Strumienie o dużym natężeniu",[],{"id":122,"text":123,"depth":15,"children":124},"s9","9. Aktorzy: slice'y ze stanem",[125,129,133,137,141],{"id":126,"text":127,"depth":4,"children":128},"s9-1","9.1. Kiedy użyć aktora",[],{"id":130,"text":131,"depth":4,"children":132},"s9-2","9.2. Pliki",[],{"id":134,"text":135,"depth":4,"children":136},"s9-3","9.3. Kontrakt",[],{"id":138,"text":139,"depth":4,"children":140},"s9-4","9.4. Kompletny mały aktor",[],{"id":142,"text":143,"depth":4,"children":144},"s9-5","9.5. Testowanie aktora",[],{"id":146,"text":147,"depth":15,"children":148},"s10","10. Eksplozja wariantów",[],{"id":150,"text":151,"depth":15,"children":152},"s11","11. AppState, korzeń kompozycji",[153],{"id":154,"text":155,"depth":4,"children":156},"s11-1","11.1. kit::Jobs: jednorazowa praca w tle",[],{"id":158,"text":159,"depth":15,"children":160},"s12","12. Platformy",[161,165,169,173,177,181,185],{"id":162,"text":163,"depth":4,"children":164},"s12-1","12.1. Układ",[],{"id":166,"text":167,"depth":4,"children":168},"s12-2","12.2. Kontrakty",[],{"id":170,"text":171,"depth":4,"children":172},"s12-3","12.3. Co jest zakazane poza platform\u002F",[],{"id":174,"text":175,"depth":4,"children":176},"s12-4","12.4. Ścieżki, pliki i tekst",[],{"id":178,"text":179,"depth":4,"children":180},"s12-5","12.5. Testy platformy",[],{"id":182,"text":183,"depth":4,"children":184},"s12-6","12.6. Egzekwowanie",[],{"id":186,"text":187,"depth":4,"children":188},"s12-7","12.7. Port na nowy system operacyjny",[],{"id":190,"text":191,"depth":15,"children":192},"s13","13. Błędy",[],{"id":194,"text":195,"depth":15,"children":196},"s14","14. Testowanie według warstw",[197,201,205,209,213],{"id":198,"text":199,"depth":4,"children":200},"s14-1","14.1. Jedna binarka integracyjna",[],{"id":202,"text":203,"depth":4,"children":204},"s14-2","14.2. Fałszywy driver bez traita",[],{"id":206,"text":207,"depth":4,"children":208},"s14-3","14.3. Mutanty w diffie",[],{"id":210,"text":211,"depth":4,"children":212},"s14-4","14.4. Testy własności dla update",[],{"id":214,"text":215,"depth":4,"children":216},"s14-5","14.5. Test przez wejście",[],{"id":218,"text":219,"depth":15,"children":220},"s15","15. Limity rozmiaru",[],{"id":222,"text":223,"depth":15,"children":224},"s16","16. Egzekwowanie",[225,229,233,237,241],{"id":226,"text":227,"depth":4,"children":228},"s16-1","16.1. Check z listą bazową",[],{"id":230,"text":231,"depth":4,"children":232},"s16-2","16.2. Check musi umieć paść",[],{"id":234,"text":235,"depth":4,"children":236},"s16-3","16.3. Job platform w CI",[],{"id":238,"text":239,"depth":4,"children":240},"s16-4","16.4. Checki dla całego zestawu",[],{"id":242,"text":243,"depth":4,"children":244},"s16-5","16.5. Lintery i zakazy przed skryptami",[],{"id":246,"text":247,"depth":15,"children":248},"s17","17. Przepisy",[249,253,257,261,265,269,273,277],{"id":250,"text":251,"depth":4,"children":252},"s17-1","17.1. Nowy odczyt (Query)",[],{"id":254,"text":255,"depth":4,"children":256},"s17-2","17.2. Nowa zmiana bez stanu w tle (Command)",[],{"id":258,"text":259,"depth":4,"children":260},"s17-3","17.3. Nowy slice",[],{"id":262,"text":263,"depth":4,"children":264},"s17-4","17.4. Nowy przepływ ze stanem (aktor)",[],{"id":266,"text":267,"depth":4,"children":268},"s17-5","17.5. Nowy driver (świat zewnętrzny)",[],{"id":270,"text":271,"depth":4,"children":272},"s17-6","17.6. Nowe zdarzenie dla okna",[],{"id":274,"text":275,"depth":4,"children":276},"s17-7","17.7. Nowa platforma",[],{"id":278,"text":279,"depth":4,"children":280},"s17-8","17.8. Gdzie to ma trafić? (drzewo decyzyjne)",[],{"id":282,"text":283,"depth":15,"children":284},"s18","18. Praca z agentami kodującymi",[],{"id":286,"text":287,"depth":15,"children":288},"s19","19. Migracja istniejącej bazy kodu",[289,293,297,301],{"id":290,"text":291,"depth":4,"children":292},"s19-1","19.1. Kolejność",[],{"id":294,"text":295,"depth":4,"children":296},"s19-2","19.2. Zasady migracji",[],{"id":298,"text":299,"depth":4,"children":300},"s19-3","19.3. Najpierw układ, czyli szybszy start",[],{"id":302,"text":303,"depth":4,"children":304},"s19-4","19.4. Co zwykle idzie źle",[],{"id":306,"text":307,"depth":15,"children":308},"s20","20. Studium przypadku: Quayside",[309,313,317,321],{"id":310,"text":311,"depth":4,"children":312},"s20-1","20.1. Przed",[],{"id":314,"text":315,"depth":4,"children":316},"s20-2","20.2. Objawy w kodzie",[],{"id":318,"text":319,"depth":4,"children":320},"s20-3","20.3. Migracja krok po kroku",[],{"id":322,"text":323,"depth":4,"children":324},"s20-4","20.4. Po",[],{"id":326,"text":327,"depth":15,"children":328},"s21","21. Lista kontrolna wdrożenia i FAQ",[329,333,337],{"id":330,"text":331,"depth":4,"children":332},"s21-1","21.1. Lista kontrolna dla nowego projektu",[],{"id":334,"text":335,"depth":4,"children":336},"s21-2","21.2. Lista kontrolna dla istniejącego projektu",[],{"id":338,"text":339,"depth":4,"children":340},"s21-3","21.3. Pytania",[],{"id":342,"text":343,"depth":15,"children":344},"s22","22. Czas buildu i testów",[345,349,353,357,361,365,369,373],{"id":346,"text":347,"depth":4,"children":348},"s22-1","22.1. Gdzie idzie czas",[],{"id":350,"text":351,"depth":4,"children":352},"s22-2","22.2. Ustawienia buildu",[],{"id":354,"text":355,"depth":4,"children":356},"s22-3","22.3. Jeden zestaw feature'ów",[],{"id":358,"text":359,"depth":4,"children":360},"s22-4","22.4. Uruchamiaj to, na co zmiana może wpłynąć",[],{"id":362,"text":363,"depth":4,"children":364},"s22-5","22.5. Wiele kopii roboczych",[],{"id":366,"text":367,"depth":4,"children":368},"s22-6","22.6. CI",[],{"id":370,"text":371,"depth":4,"children":372},"s22-7","22.7. Co sprawia, że build zaczyna od nowa",[],{"id":374,"text":375,"depth":4,"children":376},"s22-8","22.8. Czyszczenie target\u002F",[],{"id":378,"text":379,"depth":15,"children":380},"s23","23. Pluginy",[381,385,389,393,397,401,405,409,413,417,421],{"id":382,"text":383,"depth":4,"children":384},"s23-1","23.1. Kiedy funkcja jest pluginem",[],{"id":386,"text":387,"depth":4,"children":388},"s23-2","23.2. Układ",[],{"id":390,"text":391,"depth":4,"children":392},"s23-3","23.3. Kierunek",[],{"id":394,"text":395,"depth":4,"children":396},"s23-4","23.4. Punkty rozszerzeń",[],{"id":398,"text":399,"depth":4,"children":400},"s23-5","23.5. Włączanie i wyłączanie",[],{"id":402,"text":403,"depth":4,"children":404},"s23-6","23.6. Frontend",[],{"id":406,"text":407,"depth":4,"children":408},"s23-7","23.7. Plugin we własnym crate'cie",[],{"id":410,"text":411,"depth":4,"children":412},"s23-8","23.8. Testowanie",[],{"id":414,"text":415,"depth":4,"children":416},"s23-9","23.9. Zamiana istniejącego slice'a w plugin",[],{"id":418,"text":419,"depth":4,"children":420},"s23-10","23.10. Egzekwowanie",[],{"id":422,"text":423,"depth":4,"children":424},"s23-11","23.11. Pluginy z zewnątrz",[],{"id":426,"text":427,"depth":15,"children":428},"s24","24. Paczki pluginów",[429,433,437,441,445,449,453,457,461,465,469],{"id":430,"text":431,"depth":4,"children":432},"s24-1","24.1. Plugin wbudowany czy paczka",[],{"id":434,"text":435,"depth":4,"children":436},"s24-2","24.2. Zasada procesu",[],{"id":438,"text":439,"depth":4,"children":440},"s24-3","24.3. Układ",[],{"id":442,"text":443,"depth":4,"children":444},"s24-4","24.4. Manifest",[],{"id":446,"text":447,"depth":4,"children":448},"s24-5","24.5. Protokół",[],{"id":450,"text":451,"depth":4,"children":452},"s24-6","24.6. Punkty rozszerzeń dla paczek",[],{"id":454,"text":455,"depth":4,"children":456},"s24-7","24.7. Podpis i sklep",[],{"id":458,"text":459,"depth":4,"children":460},"s24-8","24.8. Cykl życia",[],{"id":462,"text":463,"depth":4,"children":464},"s24-9","24.9. Uprawnienia",[],{"id":466,"text":467,"depth":4,"children":468},"s24-10","24.10. Testy",[],{"id":470,"text":471,"depth":4,"children":472},"s24-11","24.11. Egzekwowanie",[],{"id":474,"text":475,"depth":15,"children":476},"s25","25. Historia wersji",[],68,1795449738845]