Return to search

Ramverk vs Vanilla JavaScript : Vilken teknik bör väljas för en modern webbapplikation?

This study is a second year thesis in Software Engineering at the Blekinge Institute of Technology. It investigates differences between frameworks and Vanilla JavaScript according to requirements in modern web applications. Region Blekinge, a municipal institution, wanted to research a prototype for a search function for their future website. Using the prototype young people would be able to retrieve information about schools and educations in their area to better be able to make a good choice. The objective is to find out what a JavaScript framework has to contribute, and especially when it comes to maintainability. A comparative analysis focusing on the code implementation was therefore made between two prototypes of the application. The results of the study shows that Vanilla JavaScript is more popular and has a higher maturity, while the framework Vue.js is more maintainable when it comes to reusability of code components, databinding, readability of code and code size. A drawback for frameworks is that they have a tendency to evolve quickly, and some of them even gets obsolete. The choice between the competing techniques was hard, but in the end Vanilla JavaScript was chosen for the application. The main reason being that the future is estimated to be more stable for Vanilla JavaScript, and for a municipal institution stability is important since one needs to appear trustworthy and build systems that will remain as stable as possible in the long term. / Denna studie är en andraårs exjobbsrapport i Programvaruteknik vid Blekinges Tekniska Högskola. Den undersöker skillnader i ramverk och Vanilla JavaScript enligt krav för modernawebbapplikationer. Region Blekinge efterfrågade en prototyp för en sökfunktion för deras framtida webbsida. Genom att använda prototypen skulle unga kunna söka information om skolor och utbildningar i deras område för att lättare kunna göra ett bra val. Målsättningen är att ta reda på vad ett JavaScript-ramverk kan erbjuda, där fokus ligger på frågor om underhållbarhet. En jämförande analys som fokuserade på det programmeringstekniska gjordes mellan två prototyper av applikationen. Resultatet av studien visar att Vanilla JavaScript är mer populärt och har en högre grad av mognad, medan ramverket Vue.js är mer underhållbart med tanke på återanvändbarhet av kodkomponenter, datahantering, läsbarhet av kod och kodmängd. En nackdel för ramverk är att de har en tendens att utvecklas snabbt, och vissa av dem blir till och med ibland föråldrade. Valet mellan de konkurrerande teknikerna var inte självklart, men till slut föll det på Vanilla JavaScript. Huvudanledningen är att framtiden bedöms vara mer stabil för Vanilla JavaScript, och för en kommunal institution är stabilitet viktigt eftersom man behöver signalera tillförlitlighet och bygga system som kommer att förbli så stabila som möjligt i det långa perspektivet.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:bth-16203
Date January 2018
CreatorsGustafsson, Marcus
PublisherBlekinge Tekniska Högskola, Institutionen för datalogi och datorsystemteknik
Source SetsDiVA Archive at Upsalla University
LanguageSwedish
Detected LanguageSwedish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0058 seconds