Authors:
Koshi You
1
;
Hiroaki Fukuda
1
and
Paul Leger
2
Affiliations:
1
Shibaura Institute of Technology, Tokyo, Japan
;
2
Escuela de Ingeniería, Universidad Católica del Norte, Coquimbo, Chile
Keyword(s):
Context-Oriented Programming, React, React, Declarative UI, Mobile Application, Static Code Analysis.
Abstract:
Context-Oriented Programming (COP) is a programming paradigm that modularizes context-dependent behavior. COP provides a language mechanism that enables behavior to switch depending on the current context, such as mobile device orientation or user behavior. COP is particularly promising in domains that frequently involve context-dependent behavior, such as mobile applications and IoT systems. Although various COP abstractions and mechanisms are being proposed, applications implemented with COP are mostly small-scale and designed to validate each proposed approach. These cases are often ideal scenarios for the proposed approach, raising concerns about the sufficiency of the effectiveness assessment. To address this, this paper mimics the functionality of a real-world application and implements it using an application framework. By applying COP to the refactoring, we measure the software metrics of the implementation. As a result, we quantitatively identify the impact of the framework
abstraction on the code when COP is used.
(More)