reading-notes

Reading Journal

Knowing about higher-order functions is important because it helps us write code that is modular and efficient, making programs more adaptable. The single responsibility principle is about making sure each part piece of code does only one specific thing, making it easier to understand and maintain. These ideas are important for building programs that are easy to use and change.

Reading

React Docs - Thinking in React

1. What is the single responsibility principle and how does it apply to components?

2. What does it mean to build a ‘static’ version of your application?

3. Once you have a static application, what do you need to add?

4. What are the three questions you can ask to determine if something is state?

5. How can you identify where state needs to live?

Higher-Order Functions

1. What is a “higher-order function”?

2. Explore the greaterThan function as defined in the reading. In your own words, what is line 2 of this function doing?

3. Explain how either map or reduce operates, with regards to higher-order functions.

Things I want to know more about.

I would like to know more about higher order functions because they seem complex. They seem to have a lot of moving parts to keep track of and it’s pretty intimidating.