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

Sockets - Shirley and Kirsten #4

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

kanderson38
Copy link

@kanderson38 kanderson38 commented Jun 26, 2019

Video Store Consumer

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Paste a link to the PR for your API Ada-C11/VideoStoreConsumer-API#1
For each person in your pair, describe something you learned from your partner during this project Kirsten: I learned more about troubleshooting -- when we couldn't get our POST request to work, Shirley walked through all the different possibilities for error and eventually figured out the problem by trying things I might not have thought of. Shirley: I learned how to better distinguish when to pair program, and when to divide work. We ended up mostly pair programming, but I think it was the most efficient way to finish the project.
What was one area of React you gained more clarity on during this assignment? Kirsten: Axios -- this was the first time I've really coded axios requests without copying and pasting, because I feel like I can remember the syntax now. Shirley: Determining which components we need to construct, the hierarchy between components, and what information needs to be passed on via props.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content We created a component called MovieItem, with which we populated our Library component; MovieItem displays each movie's unique information in a modular way.
Describe how you handled rentals with React We saved the selected movie and customer info in state, then sent that info to the API using an axios POST request. It took some time to figure out how to configure the payload so that the API would accept the POST request.
Describe a DOM event your application handled When the user selects a movie or a customer, the DOM is updated to display that info at the top of the page (in divs that are populated when the state is updated).
Did you use any functional stateless components? What for? We used functional components for Index, MovieItem, CustomerItem, and SearchItem, because they didn't require state.
Did you use any container components? What for? Yes -- Library and Customers exist solely to display lists of movies and customers, respectively
Do you have any recommendations on how we could improve this project for the next cohort? The way the Rails app built image URLs took some figuring out when we were trying to add movies to the database, so maybe a little hint about that, but we did figure it out, so I suppose it was a good learning experience :^)

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