Check out a free preview of the full Enterprise Architecture Patterns course

The "Reducing Complexity Exercise" Lesson is part of the full, Enterprise Architecture Patterns course featured in this preview video. Here's what you'd learn in this lesson:

Students are instructed to refactor the home service until all unit tests pass.

Preview
Close

Transcript from the "Reducing Complexity Exercise" Lesson

[00:00:00]
>> Let's move into a challenge and I'll set the challenge and then we can take a break, come back and I will solve it. So the challenge is this. In the Repu, if you downloaded it, navigate to this component, and what you want to do is refactor the service, so that the test in the spec pass.

[00:00:30]
You can validate this by running this command here. Now, if you did knock down the Repu or download the Repu, you can go to the stack Blitz and just refactor it, you're not going to be able to test it. But when I go over the solution, you'll be able to compare your work with that.

[00:00:47]
So this is kind of a double bonus day that not only are we going to refactor it, but we're going to do it in the context of unit tests.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now