Fullstack part3 |
In the Note model definition, the first "Note" parameter is the singular name of the model. The name of the collection will be the lowercase plural notes , because the Mongoose convention is to automatically name collections as the plural (e.g. notes ) when the schema refers to them in the singular (e.g. Note ).
Fullstack part3 |
When bugs occur, the worst of all possible strategies is to continue writing code. It will guarantee that your code will soon have even more bugs, and debugging them will be even more difficult. The Jidoka (stop and fix) principle from Toyota Production Systems is very effective in this situation as well.