Programming Style: Suggested Guidelines for Writing Code

IF 1 4区 经济学 Q3 ECONOMICS
Joe Hirschberg, Jenny Lye
{"title":"Programming Style: Suggested Guidelines for Writing Code","authors":"Joe Hirschberg,&nbsp;Jenny Lye","doi":"10.1111/1467-8462.12567","DOIUrl":null,"url":null,"abstract":"<p>Since computer code has become elemental in current research it has become imperative that code should be written clearly and in good style. A program written in a clear, well-written style is easier to debug and is more useful to those who may want to replicate your work, extend it, speed it up or borrow from it. Clearly, written code is also a useful tool in the training of future researchers. In this paper, we suggest a set of style guidelines and we provide examples of how particular elements of code can be done using the statistical packages Stata, SAS and R. We also present recommendations for how to write code.</p>","PeriodicalId":46348,"journal":{"name":"Australian Economic Review","volume":"57 3","pages":"302-313"},"PeriodicalIF":1.0000,"publicationDate":"2024-06-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1111/1467-8462.12567","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Australian Economic Review","FirstCategoryId":"96","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1111/1467-8462.12567","RegionNum":4,"RegionCategory":"经济学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ECONOMICS","Score":null,"Total":0}
引用次数: 0

Abstract

Since computer code has become elemental in current research it has become imperative that code should be written clearly and in good style. A program written in a clear, well-written style is easier to debug and is more useful to those who may want to replicate your work, extend it, speed it up or borrow from it. Clearly, written code is also a useful tool in the training of future researchers. In this paper, we suggest a set of style guidelines and we provide examples of how particular elements of code can be done using the statistical packages Stata, SAS and R. We also present recommendations for how to write code.

Abstract Image

编程风格:编写代码的建议指南
由于计算机代码已成为当前研究的基本要素,因此代码必须写得清晰、风格良好。写得清晰、风格良好的程序更容易调试,对那些想复制、扩展、加速或借鉴您的工作的人来说也更有用。显然,书面代码也是培训未来研究人员的有用工具。在本文中,我们提出了一套风格指南,并举例说明了如何使用统计软件包 Stata、SAS 和 R 来完成代码中的特定元素。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
1.90
自引率
10.00%
发文量
40
期刊介绍: An applied economics journal with a strong policy orientation, The Australian Economic Review publishes high-quality articles applying economic analysis to a wide range of macroeconomic and microeconomic topics relevant to both economic and social policy issues. Produced by the Melbourne Institute of Applied Economic and Social Research, it is the leading journal of its kind in Australia and the Asia-Pacific region. While it is of special interest to Australian academics, students, policy makers, and others interested in the Australian economy, the journal also considers matters of international interest.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信