Create an application to enter comments. The specifications of the application are as follows:
If I am posting a new comment, when I click on the Submit button, the comment should be added to the comment list
For a comment, when I click on the Like button, the number of likes for the comment should increase
Now that we have the specifications of the application, we can create our development to-do list. It won't be easy to create an entire to-do list of the whole application. Based on the user specifications, we have an idea of what needs to be developed. Here is a rough sketch of the UI:
Hold back from jumping into the implementation and thinking about how we will use a component class, *ngFor
, and so on. Resist, resist, resist! Although we can think of how this will be developed in the future, it is never clear until we delve into the code, and that is where we will start getting into trouble. TDD and its principles are here to help us get our mind...