Autoplay

    Stay on Topic

    John LindquistJohn Lindquist

    Tangents are opportunities for other lessons. When you find yourself drifting off-topic because you feel you need to explain some code you wrote, consider how that piece of code fits back into a "How do I?" question, then come up with a separate lesson to capture it.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    00:00 In this lesson titled, "Set up view with RxJS," in the process of writing some of these code, you might be tempted to say, "I used the subject instead of behavior subject, because of X, Y, and Z."

    00:13 Or something like, "Instead of plus one here, I could have done map one and then passed in the one as a second parameter," but those are tangents off of the main lesson. If those ideas pop into your mind, think of a new lesson like -- and remember the inferred, "How do I?"

    "00:30 How do I set an initial value in a stream with a behavior subject?" or, "How do I map events to values in reducers, or any other number of lessons that could spawn off from this one?"

    00:43 In this lesson, Set up view with RxJS, the only thing you should do is set up view with RxJS. You will be tempted to talk about any number of other things, but save those for other lessons.

    Discuss

    Discuss