Funktionell reaktiv programmering i användargränssnitt
Blomberg, Niclas (2016)
Blomberg, Niclas
Yrkeshögskolan Arcada
2016
All rights reserved
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2016052910573
https://urn.fi/URN:NBN:fi:amk-2016052910573
Tiivistelmä
Detta arbete behandlar funktionell reaktiv programmering i användargränssnitt. Arbetet fokuserar på webb baserade teknologier, men principerna gäller även i andra omgivningar. Arbetet kommer först att beskriva de teknologiska framsteg som gjort FRP möjligt på webben och kommer sedan att jämföra FRP med imperativ DOM manipulering. Huvudsakliga målet är att försöka motivera varför FRP med en arkitektur som bygger på enkelriktat dataflöde är ett effektivt sätt att bygga användargränssnitt.
Eftersom arbetet bygger delvis på kod exempel, måste vissa JavaScript bibliotek be- handlas kort. Poängen är dock att behandla FRP som en helhet och inte gå in på djupet med specifika implementationer. This thesis takes a look at how functional reactive programming can be used to create user interfaces. The implementations discussed are web-based, but the theory behind it is applicable to other environments as well. The thesis starts by presenting the problem with imperative view code, then it takes a look at new technologies that make reactive user interfaces possible on the web. Lastly an architecture pattern using these technologies is presented, and arguments for it’s effectiveness are made.
Because this thesis builds on a lot of code examples some JavaScript libraries are covered. The main point is not to inspect these libraries in depth, though, but to take a look at the principles behind functional reactive user interface programming.
Eftersom arbetet bygger delvis på kod exempel, måste vissa JavaScript bibliotek be- handlas kort. Poängen är dock att behandla FRP som en helhet och inte gå in på djupet med specifika implementationer.
Because this thesis builds on a lot of code examples some JavaScript libraries are covered. The main point is not to inspect these libraries in depth, though, but to take a look at the principles behind functional reactive user interface programming.