使用类图为Web应用程序和api自动生成基于模板的代码

Irfan Ullah, Irum Inayat
{"title":"使用类图为Web应用程序和api自动生成基于模板的代码","authors":"Irfan Ullah, Irum Inayat","doi":"10.1109/FIT57066.2022.00067","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":102958,"journal":{"name":"2022 International Conference on Frontiers of Information Technology (FIT)","volume":"64 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Template-based Automatic code generation for Web application and APIs Using Class Diagram\",\"authors\":\"Irfan Ullah, Irum Inayat\",\"doi\":\"10.1109/FIT57066.2022.00067\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"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.\",\"PeriodicalId\":102958,\"journal\":{\"name\":\"2022 International Conference on Frontiers of Information Technology (FIT)\",\"volume\":\"64 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-12-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 International Conference on Frontiers of Information Technology (FIT)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/FIT57066.2022.00067\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Frontiers of Information Technology (FIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/FIT57066.2022.00067","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

代码生成器用于生成代码或简单地将UML工件转换为代码。基于模板的代码生成是生成所需代码的技术之一。本文回顾了基于模板的代码生成器,发现它们要么局限于UI、CRUD、api生成,要么特定于语言、模式或框架。它们还依赖于人工设计的冗长输入。因此,本研究提出了基于模板的基于类图的web应用程序和api自动代码生成生成器,生成基于crud的业务逻辑、后端ui、ORM、路由和api。该生成器是用python实现的,并通过控制实验进行了评估。结果显示,手动重复编码任务和通过生成器完成的编码任务在时间上存在巨大差异。生成器只花了不到一分钟的时间,而人工开发平均需要4个小时。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Template-based Automatic code generation for Web application and APIs Using Class Diagram
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信