{"title":"On the Naming Recommendations Derived from Expert Python Code","authors":"Zi Wang, A. Alsam, Donn Morrison, K. A. Strand","doi":"10.1145/3498765.3498839","DOIUrl":null,"url":null,"abstract":"Python's naming convention provides suggestions on naming style, but these suggestions are not always clear for beginners who struggle to understand the usefulness of the conventions. In this research, we studied two properties that affect naming, namely, name-length and style. We analyzed python code from five professional project libraries and compared the name statistics with those obtained from student code. Our results show that, compared to students' work, expert developers use longer names (more descriptive) and are more closely compliant with the existing python naming convention. This research provides specific recommendations on the length and style of naming integers, floats, data structures, functions, function arguments and classes for students of Python.","PeriodicalId":273698,"journal":{"name":"Proceedings of the 13th International Conference on Education Technology and Computers","volume":"71 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 13th International Conference on Education Technology and Computers","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3498765.3498839","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Python's naming convention provides suggestions on naming style, but these suggestions are not always clear for beginners who struggle to understand the usefulness of the conventions. In this research, we studied two properties that affect naming, namely, name-length and style. We analyzed python code from five professional project libraries and compared the name statistics with those obtained from student code. Our results show that, compared to students' work, expert developers use longer names (more descriptive) and are more closely compliant with the existing python naming convention. This research provides specific recommendations on the length and style of naming integers, floats, data structures, functions, function arguments and classes for students of Python.