NotesFAQContact Us
Collection
Advanced
Search Tips
Back to results
Peer reviewed Peer reviewed
Direct linkDirect link
ERIC Number: EJ897894
Record Type: Journal
Publication Date: 2010-Sep
Pages: 28
Abstractor: As Provided
ISBN: N/A
ISSN: ISSN-0899-3408
EISSN: N/A
String Formatting Considered Harmful for Novice Programmers
Hughes, Michael C.; Jadud, Matthew C.; Rodrigo, Ma. Mercedes T.
Computer Science Education, v20 n3 p201-228 Sep 2010
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, run-time 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. (Contains 2 notes and 3 figures.)
Routledge. Available from: Taylor & Francis, Ltd. 325 Chestnut Street Suite 800, Philadelphia, PA 19106. Tel: 800-354-1420; Fax: 215-625-2940; Web site: http://www.tandf.co.uk/journals
Publication Type: Journal Articles; Reports - Research
Education Level: Higher Education
Audience: N/A
Language: English
Sponsor: N/A
Authoring Institution: N/A
Identifiers - Location: Philippines
Grant or Contract Numbers: N/A