...
首页> 外文期刊>Computer Science Education >String formatting considered harmful for novice programmers
【24h】

String formatting considered harmful for novice programmers

机译:字符串格式被认为对新手程序员有害

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

In Java, System.out .printf and String, format consume a specialised kind of string commonly known as a format string. In our study of first-year students at the Ateneo de Manila University, we discovered that format strings present a substantial challenge for novice programmers. Focusing on their first laboratory we found that 8% of all the compilation errors and 100% of the exceptional, runtime behaviour they encountered were due to the improper construction of format strings. Format strings are a language unto themselves embedded within Java, and they are difficult for novice programmers to master when learning to program. In this article, we present exemplars of students' problematic interactions with the Java compiler and run-time environment when dealing with format strings, discuss these interactions, and recommend possible instructional interventions based on our observations.
机译:在Java中,System.out .printf和String使用格式消耗一种特殊的字符串,通常称为格式字符串。在对Ateneo de Manila大学的一年级学生的研究中,我们发现格式字符串对新手程序员提出了重大挑战。以他们的第一个实验室为重点,我们发现他们遇到的所有编译错误的8%和异常运行时的行为的100%是由于格式字符串的构造不正确造成的。格式字符串本身就是嵌入Java的一种语言,对于新手程序员来说,在学习编程时很难掌握它们。在本文中,我们将介绍学生在处理格式字符串时与Java编译器和运行时环境的有问题的交互作用的示例,讨论这些交互作用,并根据我们的观察结果建议可能的指导性干预措施。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利