arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1508.04936cs.CY
收藏

将任何计算机程序生成的错误消息翻译成任何自然语言

Translation into any natural language of the error messages generated by any computer program

Bertrand Roehner

摘要:

自从大约60年前Fortran程序设计语言引入以来,在使错误消息更加用户友好方面几乎没有什么进展。在这个方向上的第一步是将它们翻译成学生的自然语言。在本文中,我们提出了一个简单的Linux系统的脚本,给出了逐字翻译的错误消息。它适用于大多数程序设计语言和所有自然语言。理解编译器生成的错误消息是学习编程的学生的一个主要障碍,特别是对于非英语母语的学生。他们不仅可能永远不会“流利”地编程,而且许多人完全放弃编程。虽然编程是一种工具,可以在许多人类活动中使用,例如历史,家谱,天文学,昆虫学,但在许多国家,编程技能仍然局限于专业程序员的狭窄边缘。在所有的社会中,除了专业的小提琴家外,还有业余爱好者。编程应该是一样的。我们希望,一旦翻译和解释错误信息将被学生视为一种帮助,而不是一种障碍,这样更多的学生将享受学习和练习编程。他们应该把它看作一个有趣的游戏。

英文摘要:

Since the introduction of the Fortran programming language some 60 years ago, there has been little progress in making error messages more user-friendly. A first step in this direction is to translate them into the natural language of the students. In this paper we propose a simple script for Linux systems which gives word by word translations of error messages. It works for most programming languages and for all natural languages. Understanding the error messages generated by compilers is a major hurdle for students who are learning programming, particularly for non-native English speakers. Not only may they never become "fluent" in programming but many give up programming altogether. Whereas programming is a tool which can be useful in many human activities, e.g. history, genealogy, astronomy, entomology, in many countries the skill of programming remains confined to a narrow fringe of professional programmers. In all societies, besides professional violinists there are also amateurs. It should be the same for programming. It is our hope that once translated and explained the error messages will be seen by the students as an aid rather than as an obstacle and that in this way more students will enjoy learning and practising programming. They should see it as a funny game.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑