Simple techniques for writing readable code
In software engineering, there is a common saying that “code is read by humans more than it is executed by computers’’. Whether this is exactly true or not, one message remains: readability counts. This is even more so in research, as code is often the only available detailed description of the computational experiments of data analyses underlying your research. In this lecture we cover simple techniques to make your codes easier to read – by yourself, your colleagues or your peers reproducing your research. We start by introducing the concept of a”code smell”, a way to identify situations where code is difficult to understand and modify. Walking through a few examples, we describe well-defined remedies you can start applying right-away, such as simplifying complex conditionals or splitting long functions.
Date: 22 September 2021, 9:00 (Wednesday, -2nd week, Michaelmas 2021)
Venue: Venue to be announced
Speaker: Dr Thibault Lestang (University of Oxford)
Organiser: Dr Malika Ihle (University of Oxford)
Part of: Oxford|Berlin summer school on Open Research
Booking required?: Required
Booking url: https://www.eventbrite.com/e/lectures-of-the-oxfordberlin-summer-school-on-open-research-2021-tickets-164864292537
Cost: free
Audience: Public
Editor: Malika Ihle