W7 / D4
I slept SO WELL! I wasn't bothered by heartburn nor did I wake up during the night with nausea. Probably because I had an evening shift. I didn't have time for a 3 hour nap. Also, I drank lots of fluid.

seen from Malaysia
seen from Malaysia
seen from Türkiye
seen from South Africa
seen from China

seen from Hong Kong SAR China
seen from China
seen from China

seen from Malaysia
seen from China

seen from Malaysia
seen from United States
seen from United States
seen from Germany
seen from United States
seen from China

seen from Malaysia

seen from Greece
seen from Germany

seen from Italy
W7 / D4
I slept SO WELL! I wasn't bothered by heartburn nor did I wake up during the night with nausea. Probably because I had an evening shift. I didn't have time for a 3 hour nap. Also, I drank lots of fluid.
W7D4
Today I Learned: about React Router and JBuilder
We began the day with a review of yesterday's project: Organ Grinder. After review, we had a lecture on JBuilder and React Router. React Router allows our single-page app to simulate new page renders/redirects while still being a single-page app.
Cool.
My partner and I got to work with Flux and React some more as well as use React Router with today's project. We created a PokeDex!
The PokeDex was pretty lack-luster. It only had 124 Pokemon. I'm no Pokemon master, but I know there are more than that. Anyway, my partner and I were able to use a hash history to mimic redirects/new renders. We both had a great time today.
The other exciting part of the day was finding out our Capstone projects! I got my first choice!
Poll Everywhere is awesome. I can't wait to build the site and features that I want to implement.
App Academy: Week 7, Day 4
Over the last three days, we learned how to use React and Flux to build reactive views for web applications. Today, we dove deeper into React and learned how to use the React Router.
While single-page apps are definitely an improvement over multi-page apps as far as speed and reactivity to user interaction go, without the ability to dynamically change the URL while the user switches between views, our apps would miss out on a very important feature of single-page apps: apps that map URL routes to views, such as all multi-page apps, can have specific views linked to from other sites or applications and can be accessed directly by users typing the URL mapping to that view into their browsers.
The React Router allows us to maintain this functionality in our single-page apps and does so in a very intuitive manner not so different from the Rails Router. In the React Router, we list routes and tell the router which React component to map that route to. In addition, we can either nest routes within one another to create relative paths for the nested components or we can make top-level routes, whose paths are absolute.
One big difference between using React with the router and without it is in how we render nested components. Without the router, we simply include the nested component within the render method of the parent component. However, when one route is nested within another, the parent component is mapped to by a route that does not map to the nested component, and so it needs to be able to render itself both with and without that nested component. Thus, rather than including the nested component directly within the render method of the parent component, we include {this.props.chilren} within the parent component's render method. This works since the router automatically passes the components mapped to by any nested routes into the parent component's children prop whenever the nested route is accessed.
A different problem, though, is in how the components of nested routes receive props, since their parents can no longer pass props to them. The solution is to get whatever information such child components need from the route itself, via the this.props.params prop. For instance, if a FriendsIndex component needs to know which user's friends it should display, we can define our route to the index such that it will always have :userId somewhere in it. Then, our FriendsIndex can call an API to fetch that user's friends and set its own state accordingly so as to show all of her friends.
In addition to the above, we also learned how to do redirects within a single-page app using the history prop.
Overall, I found using the React Router to be very intuitive and to fit nicely into what we've learned about React so far.
The Pokedex - w7d4
Today we made our first use of the react router and delivered a working single page website that was response to user input serving new content.
3943680 seconds
Class Ramblings
Almost there. Yet not nearly. I think we had the last of our pair programing projects, and today we did the journal app. This is the third backbone app, and fortunately I actually recognize things. I understand now the relationship between backbone and rails, how backbone fetches things from rails, how the world to the left of # is different to the right on the right. Things are making sense.
I wish I had one more week to make a couple more apps before our demo day project. I need to put more time in, but I'm still maxed out at 604800 seconds a week.