Reaktīvās programmēšanas iespējas izmantojot RxJS bibliotēku
Autor
Jankovskis, Miķelis
Co-author
Latvijas Universitāte. Datorikas fakultāte
Advisor
Šostaks, Agris
Datum
2016Metadata
Zur LanganzeigeZusammenfassung
Darbā tiek apskatīta lietotāja saskarnes notikumu asinhronā JavaScript programmēšana tīmekļa vidē. Galvenie darba jautājumi bija saprast, kādi bija iemesli asinhronās programmēšanas rašanās, kāpēc tā bija nepieciešama lietotāja saskarnes notikumu apstrādē. Kā lietotāja saskarne ir saistīta ar asinhrono programmēšanu. Darbā tiek apskatītas problēmas, kādas rodas lietotāja saskarnes notikumu apstrādē, izmantojot asinhrono programmēšanu. Darbā tiek apskatīta reaktīvā programmēšana – kas tā tāda ir, kas ir reaktivitāte, kā lietotāja saskarnes notikumus spēj apstrādāt reaktīvās programmēšanas bibliotēkas. Darbā izstrādāti praktiskie piemēri, lai salīdzinātu jQuery un RxJS kodu implementāciju, kādi ieguvumi rodas izmantojot attiecīgās bibliotēkas. Par pamatu praktisko piemēru izstrādei ņemta Microsoft veidota JavaScript bibliotēka RxJS, kuras popularitāte nebeidz augt. This paper provides review of the asynchronous user interface event programming in web by using JavaScript. Main key values was to understand – what were the reasons for emergence of asynchronous programming, why it was necessary for the user interface event processing. How does user interface is associated with asynchronous programming. The paper discusses problems with the user interface event processing by using asynchronous programming. This paper take a look in reactive programming – what it is, what is reactivity, how does user interface events can be processed by reactive programming libraries. Constructing practical examples to compare jQuery and RxJS code implementations, what benefits arise from use of the library. The base library for implemetions of practical examples is Microsoft’s built JavaScript library called RxJS, whose popularity does not cease to grow.