♻️ Reusable

Write modular, well-documented code that’s easy for you and others to understand and reuse

Overview

Writing code that’s easy to understand and reuse, by others and by yourself months later is at the heart of RAP.

In this session, you’ll learn to write modular functions, document your functions, and follow consistent style conventions that make your work easy to read.

🎯 Learning objectives

By the end of this session, you should be able to:

  • Recognise and refactor repeated code into into reusable functions
  • Choose appropriate names for functions
  • Write clear function documentation
  • Follow a consistent code style and use automated tools to enforce it

πŸ“– Before the session

Please complete the pre-learning materials. These typically take 60 – 90 minutes and are essential for getting the most out of the session.

πŸ–₯️ During the session

View the slides β†’