Skip to content

Sockets - Shirley and Kirsten#4

Open
kanderson38 wants to merge 27 commits into
Ada-C11:masterfrom
kanderson38:master
Open

Sockets - Shirley and Kirsten#4
kanderson38 wants to merge 27 commits into
Ada-C11:masterfrom
kanderson38:master

Conversation

@kanderson38

@kanderson38 kanderson38 commented Jun 26, 2019

Copy link
Copy Markdown

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