A comparative analysis of converting JavaScript to TypeScript in advanced web applications course
Haapalainen, Aleksi (2024)
Kandidaatintyö
Haapalainen, Aleksi
2024
School of Engineering Science, Tietotekniikka
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe2024061452903
https://urn.fi/URN:NBN:fi-fe2024061452903
Tiivistelmä
LUT University offers an Advanced Web Applications course in order to teach web development. This course has previously been fully implemented in JavaScript. Modern web development has favored TypeScript over JavaScript in recent years and therefore the course should follow modern web development trends.
The goal of this bachelor’s thesis is to produce refactored learning materials for the course in TypeScript and replace the outdated topics in the course. The thesis examines the differences, advantages, and disadvantages of TypeScript over JavaScript. Static and dynamic typing is also examined regarding web development. The research method used in this thesis is design-science research methodology.
According to the related research done within this subject, modern web development trends are indicating that TypeScript is evolving as a leading web development programming language. The readability and maintainability of the codebase offered by static type definitions in TypeScript are considered to intensify the development. The created artifact also indicated that the code quality was improved with TypeScript.
In the future more research should be conducted and documented regarding the whole conversion of the codebase from JavaScript to TypeScript. Also, more in-depth study regarding the performance should be conducted. LUT-yliopisto tarjoaa Advanced Web Applications -kurssin edistyneen web-kehityksen opettamiseen. Tämä kurssi on aiemmin toteutettu kokonaan JavaScriptillä. Viime vuosina moderni web-kehitys on suosinut TypeScriptiä JavaScriptin sijaan, ja näin ollen kurssin tulisi seurata modernin web-kehityksen trendejä.
Tämän kandidaatintyön tavoitteena on tuottaa kurssille uudelleenrakennettu oppimateriaali TypeScriptillä ja korvata kurssin vanhentuneet aiheet. Kandidaatintyössä tarkastellaan TypeScriptin eroja, etuja ja haittoja JavaScriptiin verrattuna. Staattista ja dynaamista tyypittämistä tarkastellaan myös web-kehityksen osalta. Tässä opinnäytetyössä käytetään suunnittelutiedemenetelmää.
Aiheeseen liittyvän tutkimuksen mukaan nykyaikaiset web-kehitystrendit osoittavat, että TypeScript on kehittymässä johtavaksi web-kehityksen ohjelmointikieleksi. TypeScriptin staattisten tyyppimääritelmien tarjoaman luettavuuden ja ylläpidettävyyden katsotaan tehostavan kehitystä. Osana kandidaatintyötä luotu artefakti osoitti myös, että koodin laatua parannettiin TypeScriptillä.
Tulevaisuudessa tulisi tehdä lisää tutkimusta ja dokumentointia koskien koko koodikannan muuntamista JavaScriptistä TypeScriptiksi. Myös suorituskyvystä tulisi tehdä perusteellisempaa tutkimusta.
The goal of this bachelor’s thesis is to produce refactored learning materials for the course in TypeScript and replace the outdated topics in the course. The thesis examines the differences, advantages, and disadvantages of TypeScript over JavaScript. Static and dynamic typing is also examined regarding web development. The research method used in this thesis is design-science research methodology.
According to the related research done within this subject, modern web development trends are indicating that TypeScript is evolving as a leading web development programming language. The readability and maintainability of the codebase offered by static type definitions in TypeScript are considered to intensify the development. The created artifact also indicated that the code quality was improved with TypeScript.
In the future more research should be conducted and documented regarding the whole conversion of the codebase from JavaScript to TypeScript. Also, more in-depth study regarding the performance should be conducted.
Tämän kandidaatintyön tavoitteena on tuottaa kurssille uudelleenrakennettu oppimateriaali TypeScriptillä ja korvata kurssin vanhentuneet aiheet. Kandidaatintyössä tarkastellaan TypeScriptin eroja, etuja ja haittoja JavaScriptiin verrattuna. Staattista ja dynaamista tyypittämistä tarkastellaan myös web-kehityksen osalta. Tässä opinnäytetyössä käytetään suunnittelutiedemenetelmää.
Aiheeseen liittyvän tutkimuksen mukaan nykyaikaiset web-kehitystrendit osoittavat, että TypeScript on kehittymässä johtavaksi web-kehityksen ohjelmointikieleksi. TypeScriptin staattisten tyyppimääritelmien tarjoaman luettavuuden ja ylläpidettävyyden katsotaan tehostavan kehitystä. Osana kandidaatintyötä luotu artefakti osoitti myös, että koodin laatua parannettiin TypeScriptillä.
Tulevaisuudessa tulisi tehdä lisää tutkimusta ja dokumentointia koskien koko koodikannan muuntamista JavaScriptistä TypeScriptiksi. Myös suorituskyvystä tulisi tehdä perusteellisempaa tutkimusta.
