In software engineering, it is not enough to simply write code that only works as intended, even if it is free from vulnerabilities and bugs. Every programming language has a style guide and a set of best practices defined by its community, which help practitioners to build solutions that have a clear structure and therefore are easy to read and maintain. To introduce assessment of code quality into the educational process, we developed a tool called Hyperstyle. To make it reflect the needs of the programming community and at the same time be easily extendable, we built it upon several existing professional linters and code checkers. Hyperstyle supports four programming languages (Python, Java, Kotlin, and Javascript) and can be used as a standalone tool or integrated into a MOOC platform. We have integrated the tool into two educational platforms, Stepik and JetBrains Academy, and it has been used to process about one million submissions every week since May 2021.
翻译:在软件工程方面,仅仅简单地写出仅能按预期使用的代码是不够的,即使它没有弱点和漏洞。每一个编程语言都有其社区界定的风格指南和一套最佳做法,帮助从业人员建立具有明确结构并因此易于阅读和维持的解决办法。为了将代码质量评估引入教育进程,我们开发了一个名为“超式”的工具。为了使其反映编程界的需要,同时易于推广,我们将其建在几个现有的专业界面和代码检查器上。超式支持四种编程语言(Python、Java、Kotlin和Javascript),可以用作独立工具或纳入MOOC平台。我们将该工具纳入了两个教育平台,即Stepik和JetBrains学院,并且自2021年5月以来每周处理约100万份提交材料。