SOLUTION ALERT - don’t read on if you have not finished this project yet.
I was a bit tired and the code seemed rather confusing
Quickly analyzing the provided start code, i realized that with using basic logic i could try to finish the project without fully understanding it.
I started by setting routes.
Then i quickly created all the necessary functions, simply by duplicating the existing functions for ‘articles’ , and replacing every reference to ‘article’ (in various forms) to ‘comments’.
- that marked-of 32 of the 49 tests
i looked in a few edge cases, figured out the database structure and passed all 49 tests in a whiff.
Now here is my question:
I feel like i completely ‘cheated’ my way trough this project, without complete understanding of what i was doing. I started reading all the code closely to be able to understand afterwards.
At this point in the course, shall i just continue with the lessons…? Was this the point of this exercise?
It is a little unclear to me sometimes how thorough you need to understand these cumulative projects before moving on. It seemed to me that things get explained pretty clearly AFTER the projects…
It might be a bit strange thing to post
Wondering if other participants share the same experience, and how it played out after continuing the course.
Best luck with learning!