154 Matching Annotations
  1. Nov 2020
  2. Oct 2020
    1. people to work across companies in multiple roles

      Bringing people from different industries into one process. Certain content should be seen by various roles. Certain roles only care about certain content.

  3. Sep 2020
    1. Let's continue our introduction to React. First, we will take a look at how to render a data collection, like a list of names, to the screen. After this, we will inspect how a user can submit data to a React application using HTML forms. Next, our focus shifts towards looking at how JavaScript code in the browser can fetch and handle data stored in a remote backend server. Lastly, we will take a quick look at a few simple ways of adding CSS styles to our React applications.

      start part2 when I return

    1. Functions returning functions can be utilized in defining generic functionality that can be customized with parameters.

      You would want to call another function to inject customized parameters.

    2. Now the application has three buttons with event handlers defined by the hello function that accepts a parameter.

      you might want to pass parameters into your event handler, so a function call would allow you to do that.

    3. When the component is rendered the function setValue(0) gets executed which in turn causes the component to be re-rendered. Re-rendering in turn calls setValue(0) again, resulting in an infinite recursion

      this seems to happen a lot to me. ahh I get why it's wrong now.

    4. However, don't do this. As mentioned previously, the state of React components like allClicks must not be mutated directly. Even if mutating state appears to work in some cases, it can lead to problems that are very hard to debug.

      don't use push

      use .concat or some other method instead

    1. The application appears to work. However, it is forbidden in React to mutate state directly, since it can result in unexpected side effects. Changing state has to always be done by setting the state to a new object. If properties from the previous state object are not changed, they need to simply be copied, which is done by copying those properties into a new object, and setting that as the new state.

      understand this point deeper

    2. When setTimeout is calling the method, it is the JavaScript engine that actually calls the method and, at that point, this refers to the global object.

      wah! wah! Wahhhh!

    3. When calling the method through a reference the method loses knowledge of what was the original this. Contrary to other languages, in Javascript the value of this is defined based on how the method is called. When calling the method through a reference the value of this becomes the so-called global object and the end result is often not what the software developer had originally intended.

      very important

    4. Individual items of an array are easy to assign to variables with the help of the destructuring assignment.

      destructuring always seems to confuse me, but I think I finally get this the best now than ever.

      Why is destructuring confusing?

    5. const t = [1, -1, 3] const t2 = t.concat(5) console.log(t) // [1, -1, 3] is printed console.log(t2) // [1, -1, 3, 5] is printed

      one way to create a copy and add a new value to an array.

    6. In React code, it is preferable to use the method concat, which does not add the item to the array, but creates a new array in which the content of the old array and the new item are both included.

      discussed this topic in the ydkjs group

  4. Aug 2020
    1. It is good to remember that in React it is possible and worthwhile to write console.log() commands (which print to the console) within your code.

      also another very important part

    2. The console should always be open. If the browser reports errors, it is not advisable to continue writing more code, hoping for miracles. You should instead try to understand the cause of the error and, for example, go back to the previous working state:

      Very important part

    1. In both cases, we call a property or method on a string primitive, and the engine automatically coerces it to a String object, so that the property/method access works.

      left off here

    1. The POST request to the address new_note_spa contains the new note as JSON-data containing both the content of the note (content) and the timestamp (date):

      This is where I left off.

    1. However, sometimes you include a third-party library that has different Strict'ness than your own code, so care must be taken over these subtle compatibility details.

      never considered this, but good to know.

  5. Jun 2020
    1. Observable Definition We're now ready to define closure: Closure is observed when a function uses variable(s) from outer scope(s) even while running in a scope where those variable(s) wouldn't be accessible. The key parts of this definition are: Must be a function involved Must reference at least one variable from an outer scope Must be invoked in a different branch of the scope chain from the variable(s)

      Observable Definitiion

  6. May 2020
    1. Declaration and re-declaration of variables tend to cause confusion when thought of as runtime operations. But if you shift to compile-time thinking for these operations, the quirks and shadows diminish.

      the issues are compile-time thinking.

    2. The actual difference is that let/const declarations do not automatically initialize at the beginning of the scope, the way var does.

      the let / const declarations do not automatically initialize at the top

    3. There's a common misconception that TDZ means let and const do not hoist. This is an inaccurate, or at least slightly misleading, claim. They definitely hoist.

      let and const do hoist

    4. Thankfully, several of us in the community were successfully able to lobby for JS engines to improve this error message so it more accurately tells you what's wrong!

      interesting

    5. That works, but it's pointless. There's no reason to declare i in that position with a const, since the whole point of such a variable in that position is to be used for counting iterations. Just use a different loop form, like a while loop, or use a let!

      yeah what is the point of this.

    6. In both cases, a SyntaxError is thrown on the second declaration. In other words, the only way to "re-declare" a variable is to use var for all (two or more) of its declarations.

      Cannot declare a variable as a let, then a var or vice versa.

    7. In other words, this is a case where attempted "re-declaration" is explicitly not allowed!

      syntax error. declaring an already declared let or const is not allowed

    8. // let's add the initialization explicitly var studentName = undefined; console.log(studentName); // undefined <--- see!?

      explicit undefined variable becomes undefined.

    9. var studentName; var studentName; // clearly a pointless no-op! studentName = "Frank"; console.log(studentName); // Frank console.log(studentName); // Frank

      this is actually a really helpful metaphor

    10. The term most commonly used for a variable being visible from the beginning of its enclosing scope, even though its declaration may appear further down in the scope, is called hoisting.

      definition of hoisting

    11. One key detail is that both function hoisting and var-flavored variable hoisting attach their name identifiers to the nearest enclosing function scope (or, if none, the global scope), not a block scope.

      functions act like var variables and attach to the function scope or the nearest enclosed scope, or global scope if none.

    12. Only functions can be invoked, so attempting to invoke some non-function value results in an error.

      non-function values cannot be accessed before being declared.

    13. Pay close attention to the distinction here. A function declaration is hoisted and initialized to its function value (again, called function hoisting). A var variable is also hoisted, and then auto-initialized to undefined. Any subsequent function expression assignments to that variable don't happen until that assignment is processed during runtime execution. In both cases, the name of the identifier is hoisted. But the function reference association isn't handled at initialization time (beginning of the scope) unless the identifier was created in a formal function declaration.

      This section is a bit confusing.

    14. The typical assertion of what hoisting means: lifting—like lifting a heavy weight upward—any identifiers all the way to the top of a scope

      think of hoisting as lifting

  7. Apr 2020
    1. Who bears the responsibility for this vision of discipleship?

      I bear the responsibility for my own children and the next generation in the sphere of my influence whether by relationship or through prayer.

    2. Vision-oriented leaders consider where they are going—clarifying their goals—and then carefully developing and implementing an intentional plan in pursuing those goals.

      What do you want? What are you doing to reach what you want?

    3. Our children will either hear:“Well done, good and faithful servant...Enter into the joy of your master” (Matthew 25:21).Or they will hear:“You wicked and slothful servant!...cast the worthless servant into the outer darkness. In that place there will be weeping and gnashing of teeth” (Matthew 25:26, 30)

      what a terrifying thought to think that my children would not know God and have done well before him..

    4. “Let’s raise a generation that is living by faith in future grace,” and it would prompt hearty affirmation. The phrase reminded them of a truth that was meaningful to them, which sparked a zeal for it to be meaningful to their children as well.

      share a meaninful mutual phrasing with fellow parents in your church

    5. These trials are coming for me and you, and for the children in our families, and in our churches. When the inevitable troubles come, we want them to be deeply rooted in the granite truth of the promises of God.

      trials will come. Christ is the rock to stand on.

    6. Just so you know what’s in my pastoral mind here, I’m getting you ready to die. I’m getting you ready to suffer.

      consider your mortality and prepare to meet God

    7. He will not rest until the children in his care “set their hope in God,” remember “the works of God,” and “keep his commandments.” Psalm 78:7 unites our discipleship activity around a clearly stated vision for our children. It also ignites a passion for that vision.

      place hope in the living God and obey Him.

    8. This vision must be shared with everyone who is working on the building so that the vision and ultimate purpose for the building will be fulfilled.

      Cast a shared vision for all the workers to achieve the goal.

    9. God’s people (includ-ing the next generations) are “God’s building” (verse 9

      Children are pieces of God's building built on the foundation of Jesus Christ.

    10. Without a target, those who are investing in the next generation are pointing their “arrows” in various directions and, at times, even in competing directions. Some-times the “arrows” are just aimlessly pointed and are shifted when a new idea or whim surfaces

      a child without a target or aim will miss the mark entirely.

    11. An activity-oriented ministry puts more emphasis on the present, and less, if any at all, on the future. They concentrate more on what they are doing with the children, and less on where they are leading the children

      focus on the now.

      • don't worry about the future
    12. “Pastor, if you give the kids something fun to do, the parents will flock to you.”

      Give them babysitting.

      Program the kids and the parents will come. Outsource the parents' responsibility and the parents will be glad to have a babysitter.

    13. to care, comfort, encourage, exhort, reprove, rebuke, equip, instruct; and to stir up one another to love and good works applies as much to children and youth as it does to adults

      Give the word of God to kids.

      The word of God is for the children just as much as it is for the adults.

    14. When children and youth have fun at church, positive attitudes about church are formed that will stay with them the rest of their lives.

      Church = Fun

      the program pastors wants kids to associate fun with church to keep them in church.

    15. He knows that life-time attitudes and convictions are formed early in life, so he inspires the young people in his church to delight in God and form a radical God-centered orientation to all of life

      Delight and find joy in God.

    16. Rather than boring children by repeating simple truths and shallow presentations of the Bible, he wants the children growing up in his church to taste the joy of mining the depths of the Bible and discov-ering wonderful things from God’s Word.

      Children want depth in their learning.

    17. knowledge

      Zeal with knowledge or zeal without knowledge per Piper.

      Honestly, I didn't quite make a solid connection on this point, but circling back to it might be good on a second review.

    18. Philippians 2:12-13 provides the key to understanding the rela-tionship between that which only God can do and that which we must do—“work out your own salvation with fear and trembling, for it is God who works in you, both to will and to work for his good pleasure.”

      God works in you, but we must work our own salvation

    19. Him [Christ] we proclaim, warning everyone [including our children] and teaching everyone [including our children] with all wisdom, that we may present everyone [including our children] mature in Christ.”

      everyone includes our children

    20. Even though zeal is ultimately a work of God in the heart, I believe there are things we can do that God will use to awaken zeal in us and in others

      We can't do the work of the Holy Spirit for people, but we can awaken zeal in us and others.

    21. Zeal in Scripture is not simply enthusiasm. It is fervor and diligence born out of a passion for God and His glory. It is the result of a heart on fire for the glory of God that is uncontainable and spills out in zealous evangelism, discipleship, service, and good works

      It's not simply having excitement, but it is someone completely on fire for God's glory through sharing about Jesus and serving Him.

    22. If we pray earnestly for zeal for the discipleship of the next generation, we can wonder in hope.

      A commitment to pray in hope for the next generation is needed.

    23. What news of your children or grandchildren would be your greatest joy? That they made the soccer team? That they graduated with honors? That they got accepted to Yale? Our world presses us to prioritize anything and everything but that which will truly satisfy. There is no greater joy in this life, or the next, than being reconciled through Christ to God

      Are we most proud of worldly things, or that our loved ones are eternally with their Savior forever?

    24. Investing our time, talents, and resources in the faith of our children and grandchildren is investing in their joy, and not only their joy but ours as well.

      Investing in the next generation is about joy for all in the Lord.

    25. Discipleship of the next generation is more than duty.

      It's not just something we have to do, but it's a privilege and something we get to do to the glory of God.

    26. The urgent, earnest desire to prepare just as thoughtfully and purposefully the children who are facing, or will face, these challenges fuels our zeal

      Am I as thoughtful and purposeful as Christ in the things that I am preparing my children for as they step into a world that hates Christians.

    27. Zeal for the discipleship of the next generation is also intensified by the desire to prepare children for a world that is increasingly hostile to the truth of God’s Word.

      The world is at war with us over the discipleship of the next generation

    28. Psalm 78:5

      Teaching fathers are to consider the great grandchild of them as the outcome of their ministry. What are you doing to get what you want in your great granchildren?

    29. Oh, they get all kinds of knowledge, and it’s leading them straight to hell

      Knowledge can lead straight to hell, so it matters the knowledge that you have zeal for.

    30. Over the next decade, Sally and I experienced a rising, irresistible, and persistent zeal to spread the knowledge of this glorious God and the life-giving truth from His Word to the next generation.

      Under Piper's preaching, he and his wife grew in their zeal for the next generation to know and love God.

    31. But in the middle of that year, God took me to the church of a new young pastor, John Piper. Thus began what would be more than 33 years under the consistent influence of his faithful expository preaching and biblical teaching.

      John Piper was his pastor for over three decades.

    32. First, in 1974, I was falling in love with a Christian Education major who was, and is to this day, more zealous for the discipleship of the next generation than anyone I have ever known. God has given Sally an unquenchable and very contagious zeal that He has used to ignite and sustain a zeal in me for more than four decades.

      His wife has greater zeal than he has.

    33. many of whom were not particularly zealous about the discipleship of the next generations when they began their ministry (since people serve in next-generation ministry for many different reasons).

      zeal is something that is truly needed to have a prolonged desire for children and youth ministry

    34. generation known as the Millennials, only 49% even described themselves as Christians. That’s astoundingly low as compared to other recent American generations.”

      Honestly, I think it's much lower than this actually.

    35. “that’s what my parents did with me and I turned out pretty good.”

      Are Millenials just like our parents' generation? Do we just expect to outsource the Christian Gospel work to the Church programs?

    1. But the truly surprising behavior is that even though we assigned the number 42 to name (and thus window.name), when we then retrieve its value, it's a string "42"! In this case, the weirdness is because name is actually a pre-defined getter/setter on the window object, which insists on its value being a string value. Yikes!

      big YIKES!

      I never knew that about name.

    2. A simple way to avoid this gotcha with global declarations: always use var for globals. Reserve let and const for block scopes (see "Scoping with Blocks" in Chapter 6).

      hmm. globals should be var

    3. Node also exposes several elements "globally," but they're technically not in the global scope: require(), __dirname, module, URL, and so on.

      Interesting note on Node JS.

    4. Second, if you're using a bundler in your build process, all the files are typically concatenated together before delivery to the browser and JS engine, which then only processes one big file.

      Whoa! I guess I had never really understood that this was the case for JS files in production. It makes me wonder if there are issues in production that might have never existed during the development.

    5. First, if you're directly using ES modules (not transpiling them into some other module-bundle format), these files are loaded individually by the JS environment.

      I love this modular aspect of JS. It's been fun learning this in Node JS.

  8. Mar 2020