Open-access article

JAVASCRIPT ASYNCHRONOUS PROGRAMMING

JAVASCRIPT ASYNCHRONOUS PROGRAMMING

Download full textFree with an account; signing up with Google takes seconds

Abstract

JavaScript has become more and more popular in recent years because its wealthy features as being dynamic, interpreted and object-oriented with first-class functions. Furthermore, JavaScript is designed with event-driven and I/O non-blocking model that boosts the performance of overall application especially in the case of Node.js. To take advantage of these characteristics, many design patterns that implement asynchronous programming for JavaScript were proposed. However, choosing a right pattern and implementing a good asynchronous source code is a challenge and thus easily lead into less robust application and low quality source code. Extended from our previous works on exception handling code smells in JavaScript and exception handling code smells in JavaScript asynchronous programming with promise, this research aims at studying the impact of three JavaScript asynchronous programming patterns on quality of source code and application.

Authors and affiliations
  1. Tran ThanhLuong — Trường Đại học Khoa học, Đại học Huế
  2. Le MyCanh

Similar items

  • JavaScript Affogato: Programming a Culture of Improvised Expertise

    Open-access article2018ConfigurationsBrianLennon

    This essay attempts a philological, meaning a both technically and socially attentive historical study of an individual computer programming language, JavaScript.From its introduction, JavaScript's reception by software developers, and its importance in web development as we now

  • Algorithmic verification of asynchronous programs

    Open-access article2012ACM Transactions on Programming Languages and SystemsPierreGanty, RupakMajumdar

    Asynchronous programming is a ubiquitous systems programming idiom for managing concurrent interactions with the environment. In this style, instead of waiting for time-consuming operations to complete, the programmer makes a non-blocking call to the operation and posts a callbac

  • Verifying liveness for asynchronous programs

    Open-access article2009ACM SIGPLAN NoticesPierreGanty, RupakMajumdar, AndreyRybalchenko

    Asynchronous or 'event-driven' programming is a popular technique to efficiently and flexibly manage concurrent interactions. In these programs, the programmer can post tasks that get stored in a task buffer and get executed atomically by a non-preemptive scheduler at a future po

  • Rely/Guarantee Reasoning for Asynchronous Programs

    Scholarly record2015CONCURIvan Gavran, Filip Niksic, Aditya Kanade, Rupak Majumdar

    Asynchronous programming has become ubiquitous in smartphone and web application development, as well as in the development of server-side and system applications. Many of the uses of asynchrony can be modeled by extending programming languages with asynchronous procedure calls—p

  • Finding Non-terminating Executions in Distributed Asynchronous Programs

    Scholarly record2012SASMichael Emmi, Akash Lal

    Programming distributed and reactive asynchronous systems is complex due to the lack of synchronization between concurrently executing tasks, and arbitrary delay of message-based communication. As even simple programming mistakes have the capability to introduce divergent behavio

  • Asynchronous Programming in a Prioritized Form

    Scholarly record2015CoRRMohamed A. El-Zawawy

    Asynchronous programming has appeared as a programming style that overcomes undesired properties of concurrent programming. Typically in asynchronous models of programming, methods are posted into a post list for latter execution. The order of method executions is serial, but non