NDBaxi / pwp-capstones

0 stars 0 forks source link

Review purpose of getters #5

Open baileypierson opened 6 years ago

baileypierson commented 6 years ago

https://github.com/NDBaxi/pwp-capstones/blob/a27bf19c6004d2c101160838943f2f423bfc87df/CapstoneProject/TomeRater.py#L60-L64

It is standard practice to have get functions return a parameter of an object, not a string

NDBaxi commented 6 years ago

Yup, I rechecked the instructions too.....they never asked me to return a string. Which means should it be simply as follows?

def get_title(self): return self.title

def get_isbn(self): return self.isbn