Design patterns offer reusable solutions for common software issues,enhancing quality.The advent of generative large language models(LLMs)marks progress in software development,but their efficacy in applying design pa...Design patterns offer reusable solutions for common software issues,enhancing quality.The advent of generative large language models(LLMs)marks progress in software development,but their efficacy in applying design patterns is not fully assessed.The recent introduction of generative large language models(LLMs)like ChatGPT and CoPilot has demonstrated significant promise in software development.They assist with a variety of tasks including code generation,modeling,bug fixing,and testing,leading to enhanced efficiency and productivity.Although initial uses of these LLMs have had a positive effect on software development,their potential influence on the application of design patterns remains unexplored.This study introduces a method to quantify LLMs’ability to implement design patterns,using Role-Based Metamodeling Language(RBML)for a rigorous specification of the pattern’s problem,solution,and transformation rules.The method evaluates the pattern applicability of a software application using the pattern’s problem specification.If deemed applicable,the application is input to the LLM for pattern application.The resulting application is assessed for conformance to the pattern’s solution specification and for completeness against the pattern’s transformation rules.Evaluating the method with ChatGPT 4 across three applications reveals ChatGPT’s high proficiency,achieving averages of 98%in conformance and 87%in completeness,thereby demonstrating the effectiveness of the method.Using RBML,this study confirms that LLMs,specifically ChatGPT 4,have great potential in effective and efficient application of design patterns with high conformance and completeness.This opens avenues for further integrating LLMs into complex software engineering processes.展开更多
MVC编程模式是近些年十分流行的软件框架模式,在ASP.NET编程模式中,MVC提供了对HTML、CSS和JavaScript的完全控制.通过对ASP.NET Web Forms和ASP.NET MVC对比研究,分析MVC编程模式的特点,研究MVC框架在ASP.NET中的应用,并以某高校教师...MVC编程模式是近些年十分流行的软件框架模式,在ASP.NET编程模式中,MVC提供了对HTML、CSS和JavaScript的完全控制.通过对ASP.NET Web Forms和ASP.NET MVC对比研究,分析MVC编程模式的特点,研究MVC框架在ASP.NET中的应用,并以某高校教师课堂教学效果评测系统为实例,对MVC在ASP.NET中开发Web应用进行了详细的描述.为ASP.NET Web Forms向ASP.NET MVC开发Web应用过渡提供了借鉴.展开更多
文摘Design patterns offer reusable solutions for common software issues,enhancing quality.The advent of generative large language models(LLMs)marks progress in software development,but their efficacy in applying design patterns is not fully assessed.The recent introduction of generative large language models(LLMs)like ChatGPT and CoPilot has demonstrated significant promise in software development.They assist with a variety of tasks including code generation,modeling,bug fixing,and testing,leading to enhanced efficiency and productivity.Although initial uses of these LLMs have had a positive effect on software development,their potential influence on the application of design patterns remains unexplored.This study introduces a method to quantify LLMs’ability to implement design patterns,using Role-Based Metamodeling Language(RBML)for a rigorous specification of the pattern’s problem,solution,and transformation rules.The method evaluates the pattern applicability of a software application using the pattern’s problem specification.If deemed applicable,the application is input to the LLM for pattern application.The resulting application is assessed for conformance to the pattern’s solution specification and for completeness against the pattern’s transformation rules.Evaluating the method with ChatGPT 4 across three applications reveals ChatGPT’s high proficiency,achieving averages of 98%in conformance and 87%in completeness,thereby demonstrating the effectiveness of the method.Using RBML,this study confirms that LLMs,specifically ChatGPT 4,have great potential in effective and efficient application of design patterns with high conformance and completeness.This opens avenues for further integrating LLMs into complex software engineering processes.
文摘MVC编程模式是近些年十分流行的软件框架模式,在ASP.NET编程模式中,MVC提供了对HTML、CSS和JavaScript的完全控制.通过对ASP.NET Web Forms和ASP.NET MVC对比研究,分析MVC编程模式的特点,研究MVC框架在ASP.NET中的应用,并以某高校教师课堂教学效果评测系统为实例,对MVC在ASP.NET中开发Web应用进行了详细的描述.为ASP.NET Web Forms向ASP.NET MVC开发Web应用过渡提供了借鉴.