Skip to content

Project Local Library Peer Review#2

Open
kchia wants to merge 1 commit intoThinkful-Ed:masterfrom
kchia:hou-peer-review
Open

Project Local Library Peer Review#2
kchia wants to merge 1 commit intoThinkful-Ed:masterfrom
kchia:hou-peer-review

Conversation

@kchia
Copy link
Copy Markdown

@kchia kchia commented Oct 26, 2020

@bwreid another solid exercise! Is there an answer key for this exercise? Should we be uploading the assignment to qualified? (I checked and didn't find it there)

I'm also wondering if the formatting differences between the author id (which is an integer) and the book/account id (which is a string of random characters) could potentially cause students to be confused? Maybe we could also use a random string for the author id for consistency. Otherwise, an explanation for the difference seems to be warranted.

Another thing I noticed is that the author id starts with 0, and I wonder if it's more conventional to start off an id with 1. In the context of a SQL database, I think starting an id at 0 happens in [very specific circumstances](https://stackoverflow.com/questions/724668/sql-server-identity-column-values-start-at-0-instead-of-1#:~:text=DBCC%20CHECKIDENT%20(SyncSession%2C%20reseed%2C,new%20records%20start%20with%200.).

@@ -337,6 +346,7 @@ If more than five genres are present, only the top five should be returned.
```javascript
mostCommonGenres(books);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with how we are naming the other functions (i.e., starting with a verb), maybe we can call this function getMostCommonGenres()?

@@ -366,6 +376,7 @@ If more than five books are present, only the top five should be returned.
```javascript
mostPopularBooks(books);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with how we are naming the other functions (i.e., starting with a verb), maybe we can call this function getMostPopularBooks()?

@@ -396,6 +407,7 @@ If more than five authors are present, only the top five should be returned.
```javascript
mostPopularAuthors(books, authors);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with how we are naming the other functions (i.e., starting with a verb), maybe we can call this function getMostPopularAuthors()?

@@ -95,6 +99,7 @@ It returns an array of books and authors that represents all books _currently ch
```javascript
booksInPossession(account, books, authors);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with how we are naming the other functions (i.e., starting with a verb), maybe we can call this function getBooksPossessedByAccount()?

@bwreid
Copy link
Copy Markdown
Contributor

bwreid commented Oct 27, 2020

Changes have been made in PR #3 and #4 to account for changing names and IDs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants