代码生成
计算机科学
程序设计语言
发电机(电路理论)
Python(编程语言)
编码(集合论)
无法访问的代码
类图
冗余代码
无效代码
编码(社会科学)
Web应用程序
统一建模语言
嵌入式系统
操作系统
软件
功率(物理)
集合(抽象数据类型)
钥匙(锁)
物理
统计
量子力学
数学
作者
Irfan Ullah,Irum Inayat
标识
DOI:10.1109/fit57066.2022.00067
摘要
Code generators are used to generate code or simply transform UML artefact into code. Template-based code generation is one of the techniques for generating desired code. In this paper, template-based code generator are reviewed and it is found that they are either limited to UI, CRUD, APIs generation, or specific to languages, patterns or frameworks. They also rely on manually designed lengthy inputs. Therefore, this research presents template-based automatic code generation generator for web applications and APIs using class diagram, which generates CRUD-based business logic, backend UIs, ORM, Routes and APIs. The generator is implemented in python and evaluated through a control experiment. The results recorded immense difference in time between the manually, repetitive coding tasks and through the generator. The generator took less than a minute, while manual development took at average 4 hours.
科研通智能强力驱动
Strongly Powered by AbleSci AI