Image: taken from i-programming
We have learned how to make a git repository for a single person and share it with several people. In this lesson, we will use this knowledge to do modular-based code development. We will discover the pros of dividing our code into functions through a simple python script.
Prerequisites
- Basic understanding of Git.
- You need a GitHub account.
We will do this exercise on GitHub but also GitLab and Bitbucket allow similar workflows and basically, everything that we will discuss is transferable. With this material and these exercises we do not endorse the company GitHub. We have chosen to demonstrate several concepts using examples with GitHub because it is currently the most popular web platform for hosting Git repositories and the chance is high that you will interact with GitHub-based repositories even if you choose to host your Git repository on another platform.
This lesson is built on:
20 min | Motivation | Why and how to limit the side effects of functions? |
20 min | Thoughts before the exercise | Are there any common best practices for modular code development? |
55 min | Modular exercise |
Learn techniques for a generalized code development
What are the pros and cons of choosing a general code design? |
20 min | Thoughts after the exercise | What is a good workflow? |