Skip to content

London | 26-ITP-May | Raihan Sharif | Sprint 2 | Book Library#497

Open
RaihanSharif wants to merge 26 commits into
CodeYourFuture:mainfrom
RaihanSharif:library
Open

London | 26-ITP-May | Raihan Sharif | Sprint 2 | Book Library#497
RaihanSharif wants to merge 26 commits into
CodeYourFuture:mainfrom
RaihanSharif:library

Conversation

@RaihanSharif
Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Books can be added or deleted
Books can be marked as completed or not at the time of adding them to list
Books can be marked as completed or not after adding

Code is checked and updated for quality against the feedback guideline here: https://github.com/CodeYourFuture/Module-Data-Flows/blob/general-review-feedback/debugging/book-library/feedback.md

@RaihanSharif RaihanSharif added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. labels May 14, 2026
charset and the name attributes cannot be in the same meta tag
@illicitonion illicitonion added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 14, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM, well done! Just one question to consider

Comment thread debugging/book-library/index.html Outdated
class="form-control"
id="author"
name="author"
minlength="2"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How did you decide on these minimum and maximum lengths (for all fields)?

Copy link
Copy Markdown
Author

@RaihanSharif RaihanSharif May 14, 2026

Choose a reason for hiding this comment

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

Tbh, I didn't give it a lot of thought wrt the lengths.

I put 2 as min with the rationale that accidental typos and author name conflicts would be less likely, but that's not a strong argument.

I had considered a min of 1, as there are single letter pseudonyms and book titles.

The max I set to something very long as size isn't a bottleneck at this scale, but the user still has some sort of limit.

Copy link
Copy Markdown
Author

@RaihanSharif RaihanSharif May 14, 2026

Choose a reason for hiding this comment

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

After some consideration, I have replaced the min with 1, and the max with 255 as that is usually the limit for database VARCHAR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems reasonable :) I'm less convinced on the max page limit (there are some very long books in this worked), but you have reasonable thoughts on them :)

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.

Had to double check my code to see if I accidentally put 255 limit on pages! I'll leave it at 10,000.

Thank you for your feedback. I have learned to be more thoughful and deliberate with my code.

@illicitonion illicitonion added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels May 14, 2026
@RaihanSharif RaihanSharif added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels May 14, 2026
@illicitonion illicitonion added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Data-Flows The name of the module. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants