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

Amber Lynn | Edges | litter patrol #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

griffifam
Copy link

…or adding classes to items clicked - depending on whether it is litter (it gets a check) else (it gets an x)

Litter Patrol

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
How are events / event handlers and this.state connected? When events are triggered this.state can be 'set' and changed.
What are two ways to do "dynamic styling" with React? When should they be used? N/A
Much like Rails works with the HTTP request->response cycle, React works with the browser's input->output cycle. Describe React's cycle from receiving user input to outputting different page content.
Compare how React and Rails' views differ. Given different circumstances, these systems have different goals. How does this impact on their design and how we are supposed to use them?
What was a challenge you were able to overcome on this assignment?

CS Fundamentals Questions

Question Answer
Consider the code on the first few lines of App.render (it starts with this.state.items.map). What is the Big-O time complexity of this code, where n is the number of active game items? Going based on the fact that the DOM resembles a tree - I'd say some graph some tree structure. But I am unsure.
What part of React might benefit most from the use of specific data structure and algorithms?
Consider what happens when React processes a state change from setState -- it must re-render all of the components that now have different content because of that change.
What kind of data structure are the components in, and what sort of algorithms would be appropriate for React's code to "traverse" those components?
Speculate wildly about what the Big-O time complexity of that code might be.
The components are objects as all things are in javascript. Using the word Traverse - I presume a graph.

…or adding classes to items clicked - depending on whether it is litter (it gets a check) else (it gets an x)
@griffifam
Copy link
Author

I suffered through this assignment largely due to my own stubbornness and not seeking assistance once I left Ada. I struggled on it on my own for a while and I see now that although I feel like I need to prove something to myself; its best to seek assistance when stuck than to trudge through without help.

@droberts-sea
Copy link

Litter Patrol

What We're Looking For

Feature Feedback
Core Requirements
Overall This submission is pretty incomplete. However, we have talked about how you're doing with React in person, and have a plan to go over some things tomorrow.

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