London | 25-SDC-Nov | Aida Eslamimoghadam | Sprint 5 | Implement laptop allocation#300
London | 25-SDC-Nov | Aida Eslamimoghadam | Sprint 5 | Implement laptop allocation#300aydaeslami wants to merge 6 commits intoCodeYourFuture:mainfrom
Conversation
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start on this sprint's tasks, I have spotted a few areas where you could improve code further
laptop/myLaptop.py
Outdated
|
|
||
| def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> dict[Person, Laptop]: | ||
| allocateLp = {} | ||
| lpNewList = laptops.copy() |
There was a problem hiding this comment.
are these variable names clear about what they represent?
There was a problem hiding this comment.
You marked this comment as resolved, but I am still not sure if some of the variable names in this function are clear. allocateLp, lpNewList and lp could maybe be improved. I assume lp means laptop, from context?
LonMcGregor
left a comment
There was a problem hiding this comment.
Almost done. please see my comment in this review
laptop/myLaptop.py
Outdated
|
|
||
| def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> dict[Person, Laptop]: | ||
| allocateLp = {} | ||
| lpNewList = laptops.copy() |
There was a problem hiding this comment.
You marked this comment as resolved, but I am still not sure if some of the variable names in this function are clear. allocateLp, lpNewList and lp could maybe be improved. I assume lp means laptop, from context?
LonMcGregor
left a comment
There was a problem hiding this comment.
Great work! It's much more obvious at first glance what these variables are doing now. Well done
PR Checklist
Changelist