Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Refactoring - Part 2 #167

Open
ageorgou opened this issue Dec 4, 2020 · 0 comments
Open

Refactoring - Part 2 #167

ageorgou opened this issue Dec 4, 2020 · 0 comments
Labels

Comments

@ageorgou
Copy link

ageorgou commented Dec 4, 2020

This follows on from #166.

Stage 2: Using a Person Class

We will now look at at how to represent and manipulate the person data with our own Person class.

Instead of each person being a dictionary, we will represent them with the class that has methods for dealing with the connections. We will restructure our code so that the functions become methods of the class. You may also wish to refer to the course notes on object-oriented design.

One example of the starting point for the structure is the file initial_person_class.py.
We have implemented some methods for these classes, but not everything that is required (the remaining methods have pass instead of actual code).

Your task:

  1. You should already have the files from the previous part.
  2. Fill in the remaining code in initial_person_class.py so that the file works as before.
  3. Run the file to make sure the assertions are still satisfied.
  4. Commit your changes.
@ageorgou ageorgou added the week09 label Dec 4, 2020
umitozmen added a commit to umitozmen/rse-classwork-2020 that referenced this issue Dec 7, 2020
DavidScobie added a commit to DavidScobie/rse-classwork-2020 that referenced this issue Dec 9, 2020
@Tiantian-H Tiantian-H mentioned this issue Dec 10, 2020
nuttamas added a commit to nuttamas/rse-classwork-2020 that referenced this issue Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant