On the Naming Recommendations Derived from Expert Python Code

Zi Wang, A. Alsam, Donn Morrison, K. A. Strand
{"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":null,"pages":null},"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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
关于专家Python代码的命名建议
Python的命名约定提供了关于命名风格的建议,但是这些建议对于那些努力理解约定有用性的初学者来说并不总是很清楚。在本研究中,我们研究了影响命名的两个属性,即名称长度和风格。我们分析了来自五个专业项目库的python代码,并将名称统计数据与来自学生代码的统计数据进行了比较。我们的结果表明,与学生的工作相比,专业开发人员使用更长的名称(更具描述性),并且更符合现有的python命名约定。这项研究为Python的学生提供了关于整数、浮点数、数据结构、函数、函数参数和类的命名长度和风格的具体建议。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Corpus-involved Education and Learning in European Universities Automatic Classroom Question Classification Based on Bloom's Taxonomy Effects of Anxiety on Active Class Attitude in E-Learning: Analysis by considering learning strategy and willingness to learn The Development and Practice of Children's Spelling Ability for a Foreign Language Learning Strategies Public University Students at the Time of COVID-19
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1