Presentation Open Access

Writing Clean Scientific Software

Murphy, Nicholas A.


JSON-LD (schema.org) Export

{
  "inLanguage": {
    "alternateName": "eng", 
    "@type": "Language", 
    "name": "English"
  }, 
  "description": "<p>This presentation discusses strategies for writing clean scientific software.&nbsp; Choosing meaningful variable names improves readability.&nbsp; Functions should be short, do exactly one thing, and have no side effects.&nbsp; High-level big picture code should be separated from low-level implementation details, for example by writing code as a top-down narrative.&nbsp; 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.&nbsp; Well-written tests increase the flexibility of code.&nbsp; This presentation encourages us to think of code as communication.</p>", 
  "license": "https://creativecommons.org/licenses/by/4.0/legalcode", 
  "creator": [
    {
      "affiliation": "Center for Astrophysics | Harvard & Smithsonian", 
      "@id": "https://orcid.org/0000-0001-6628-8033", 
      "@type": "Person", 
      "name": "Murphy, Nicholas A."
    }
  ], 
  "hasPart": [
    {
      "@id": "https://doi.org/10.5281/zenodo.3491142", 
      "@type": "CreativeWork"
    }
  ], 
  "datePublished": "2020-06-29", 
  "url": "https://zenodo.org/record/3922957", 
  "version": "1", 
  "keywords": [
    "Research software engineering", 
    "Clean coding"
  ], 
  "@context": "https://schema.org/", 
  "identifier": "https://doi.org/10.5281/zenodo.3922957", 
  "@id": "https://doi.org/10.5281/zenodo.3922957", 
  "@type": "PresentationDigitalDocument", 
  "name": "Writing Clean Scientific Software"
}
467
202
views
downloads
All versions This version
Views 467467
Downloads 202202
Data volume 129.9 MB129.9 MB
Unique views 446446
Unique downloads 187187

Share

Cite as