Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project1-feedback #23

Open
weilu opened this issue Aug 24, 2022 · 8 comments
Open

project1-feedback #23

weilu opened this issue Aug 24, 2022 · 8 comments

Comments

@weilu
Copy link
Member

weilu commented Aug 24, 2022

In python variables named with all caps are constants. Since the dimension of the city changes with different input perhaps it's not most appropriate to define it as a constant?

@kbjarkefur kbjarkefur changed the title Rename solution 1 variable N Feedback Project 1 Aug 24, 2022
@kbjarkefur
Copy link
Contributor

In python variables named with all caps are constants. Since the dimension of the city changes with different input perhaps it's not most appropriate to define it as a constant?

I noted that as well. I think we should update for later, but no need to do before session, as in this exact example grid size is not changing. But since it is a better practice I think we should change it for the future. And the name can be city_size instead of n as N/n should is rarely used for a dimension of a matrix, more so the total number of items in a matrix.

@kbjarkefur
Copy link
Contributor

Make sure test_functions passes same type as the doc string says. I.e. lists and not tuples.

@kbjarkefur kbjarkefur changed the title Feedback Project 1 project1-feedback Aug 24, 2022
@weilu
Copy link
Member Author

weilu commented Aug 24, 2022

Consider putting the prep cell code in a single cell – easier to run

@weilu
Copy link
Member Author

weilu commented Aug 24, 2022

The enumerate example, consider changing the variable names to i, val as j is conventionally used as a name for index var

@weilu
Copy link
Member Author

weilu commented Aug 24, 2022

Tests for similarity function may not be sufficient. One participant's solution for similarity passed all the tests but failed the tests for hypothetical similarity. Turned out his solution for similarity was not fully correct

@kbjarkefur
Copy link
Contributor

tell people to read the doc string properly to understand what is inputted and what is expected to be outputted

@weilu
Copy link
Member Author

weilu commented Aug 24, 2022

Feedback from a participant: probably good to start with an easier task, like finding blank/available slot in a city, with a small grid e.g. 2x2 to help ease the participants in

@weilu
Copy link
Member Author

weilu commented Aug 24, 2022

One participant emailed me asking about why some cells are excluded from the list_available's expectations/tests. Turned out they didn't realize for a cell to be available it has to be unoccupied (they were just checking it's above threshold). Perhaps highlight in the instruction about both conditions?

@luisesanmartin luisesanmartin removed their assignment Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants