Loading...
Please wait, while we are loading the content...
Similar Documents
An evaluation of reactive programming and promises for structuring collaborative web applications
| Content Provider | ACM Digital Library |
|---|---|
| Author | De Meuter, Wolfgang Kambona, Kennedy Boix, Elisa Gonzalez |
| Abstract | JavaScript programs are highly event-driven, resulting in 'asynchronous spaghetti' code that is difficult to maintain as the magnitude programs written in the language grows. To reduce the effects of this callback hell, various concepts have been employed by a number of JavaScript libraries and frameworks. In this paper we investigate the expressiveness of two such techniques, namely reactive extensions and promises. We have done this by means of a case study consisting of an online collaborative drawing editor. The editor supports advanced drawing features which we try to model using the aforementioned techniques. We then present a discussion on our overall experience in implementing the application using the two concepts. From this, we propose a roadmap of how to improve support of programming event-driven web applications in JavaScript. |
| Starting Page | 1 |
| Ending Page | 9 |
| Page Count | 9 |
| File Format | |
| ISBN | 9781450320412 |
| DOI | 10.1145/2489798.2489802 |
| Language | English |
| Publisher | Association for Computing Machinery (ACM) |
| Publisher Date | 2013-07-01 |
| Publisher Place | New York |
| Access Restriction | Subscribed |
| Subject Keyword | Callbacks Futures Reactive programming Event streams Promises Javascript Behaviours |
| Content Type | Text |
| Resource Type | Article |