Presentation Open Access

Writing Clean Scientific Software

Murphy, Nicholas A.


Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:creator>Murphy, Nicholas A.</dc:creator>
  <dc:date>2020-06-29</dc:date>
  <dc:description>This presentation discusses strategies for writing clean scientific software.  Choosing meaningful variable names improves readability.  Functions should be short, do exactly one thing, and have no side effects.  High-level big picture code should be separated from low-level implementation details, for example by writing code as a top-down narrative.  Because comments often become out-of-date as code evolves, it is preferable to refactor code to improve readability rather than describe how it works.  Well-written tests increase the flexibility of code.  This presentation encourages us to think of code as communication.</dc:description>
  <dc:description>This work was created with support from National Science Foundation (US) grant 1931388 to the Smithsonian Astrophysical Observatory.  A minor portion of this presentation was adapted from the paper entitled "Best Practices for Scientific Computing" by G. Wilson et al., which is available under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.</dc:description>
  <dc:identifier>https://zenodo.org/record/3922957</dc:identifier>
  <dc:identifier>10.5281/zenodo.3922957</dc:identifier>
  <dc:identifier>oai:zenodo.org:3922957</dc:identifier>
  <dc:language>eng</dc:language>
  <dc:relation>doi:10.5281/zenodo.3491142</dc:relation>
  <dc:relation>doi:10.5281/zenodo.3922956</dc:relation>
  <dc:relation>url:https://zenodo.org/communities/plasmapy</dc:relation>
  <dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
  <dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights>
  <dc:subject>Research software engineering</dc:subject>
  <dc:subject>Clean coding</dc:subject>
  <dc:title>Writing Clean Scientific Software</dc:title>
  <dc:type>info:eu-repo/semantics/lecture</dc:type>
  <dc:type>presentation</dc:type>
</oai_dc:dc>
1,094
366
views
downloads
All versions This version
Views 1,0941,094
Downloads 366366
Data volume 235.4 MB235.4 MB
Unique views 1,0501,050
Unique downloads 343343

Share

Cite as