A brief introduction

to software carpentry

By Simon Hettrick

Software Sustainability Institute

 


14 October 2016 - ESRC DTC induction, Southampton   ORCID: 0000-0002-6809-5195

Why you should care about software?

*Refs [1]

Use

software

Fundamental to

results

Develop own code

69%

92%

56%

What's the worst that can happen?

code... is reused... The error is in the code that converts a 64-bit floating-point number to a 16-bit signed integer... the 64-bit numbers [are] larger... than [the previous code], triggering an overflow condition...

 

...[the] backup computer crashes, followed 0.05 seconds later by a crash of the primary computer.

What do we teach?

Automation with Bash

#! /bin/bash

#Initialise a counter
count=1

#Make new dir
mkdir NewImgDir

#Loop through file, copy and rename
for i in *.jpg
  do
    cp $i NewImgDir/"EventPhoto_"$count".jpg"
    count=$(( count + 1 ))
  done

Track and share work with Git

Programming with R

"The computing skills researchers need to get more done in less time and with less pain"

Software Carpentry Workshop

1-2 November 2016, Highfield House Hotel

References

[1] "It's impossible to conduct research without software, say 7 out of 10 UK researchers"http://www.software.ac.uk/blog/2014-12-04-its-impossible-conduct-research-without-software-say-7-out-10-uk-researchers

 

20161014 Intro to SWC for ESRC DTC

By Simon Hettrick

20161014 Intro to SWC for ESRC DTC

  • 1,130