Fork me on GitHub

Modular based code development


Image: taken from i-programming

A standard for the program flow

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.

Questions we will reflect upon during this lesson:

  • How important is it to follow a standard program flow for yourself?
  • How important is it to follow a standard program flow for your collaborators?
  • ‘Standard’ choices of structure in code development

Prerequisites

  1. Basic understanding of Git.
  2. 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.

Sources

This lesson is built on:

Schedule

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?