ReactCOP Supporting Layer Parameter Management for Front-End Web Applications

被引:1
作者
Hashimoto, Hiroki [1 ]
Tanigawa, Ikuta [2 ]
Ogura, Nobuhiko [3 ]
Watanabe, Harumi [1 ]
机构
[1] Tokai Univ, Informat & Telecommun Engn, Tokyo, Japan
[2] Change Vis Inc, Fukui, Japan
[3] Tokyo City Univ, Fac Informat, Yokohama, Kanagawa, Japan
来源
COMPANION PROCEEDINGS OF THE 7TH INTERNATIONAL CONFERENCE ON THE ART, SCIENCE, AND ENGINEERING OF PROGRAMMING, PROGRAMMING 2023 | 2023年
关键词
React; Context-Oriented Programming; Web Application;
D O I
10.1145/3594671.3594684
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In modern software, including web applications, context-dependent behavior is one of the most important features. Context-oriented programming (COP) is a suitable programming technique for developing such software. However, we often need to work on handling parameter values in layers. This problem which we experience during the development of web application means inconvenience in setting parameters by each layer. We call it "layer parameter problem." Especially front-end web applications use a component-based approach with a DOM tree, making the layer parameter problem more complicated because they cannot handle COPs in class-in-layer and layer-in-class models. We propose ReactCOP, an implementation of an idea that applies COP to React, one of the front-end web application libraries. ReactCOP solves the parameter problem on a layer-in-component model. As the solution to this problem, we present Layer Parameter Management that dynamically switches values in a variable within a layer. In this paper, we propose ReactCOP with Layer Parameter Management. Finally, we investigate our proposed approach through two case studies.
引用
收藏
页码:76 / 83
页数:8
相关论文
共 15 条
[1]  
[Anonymous], 2012, AOSD 12 P 11 ANN INT, DOI DOI 10.1145/2162049.2162072
[2]  
[Anonymous], 2009, P 1 ACM INT WORKSHOP, DOI [10.1145/1562112.1562118, DOI 10.1145/1562112.1562118]
[3]  
Appeltauer Malte, 2011, Information and Media Technologies, V6, P399
[4]  
Costanza P, 2006, LECT NOTES COMPUT SC, V4228, P84
[5]  
Costanza Pascal., 2005, DLS 05, P1, DOI DOI 10.1145/1146841.1146842
[6]   Context-oriented Programming [J].
Hirschfeld, Robert ;
Costanza, Pascal ;
Nierstrasz, Oscar .
JOURNAL OF OBJECT TECHNOLOGY, 2008, 7 (03) :125-151
[7]   Beyond the black box: Open implementation [J].
Kiczales, G .
IEEE SOFTWARE, 1996, 13 (01) :8-&
[8]  
Kiczales Gregor, 1996, Open Implementations and Metaobject Protocols
[9]   An expressive and modular layer activation mechanism for Context-Oriented Programming [J].
Leger, Paul ;
Cardozo, Nicolas ;
Masuhara, Hidehiko .
INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 156
[10]   An open implementation for context-oriented layer composition in ContextJS']JS [J].
Lincke, Jens ;
Appeltauer, Malte ;
Steinert, Bastian ;
Hirschfeld, Robert .
SCIENCE OF COMPUTER PROGRAMMING, 2011, 76 (12) :1194-1209