cmda-bt / be-course-17-18

🎓 Backend · 2017-2018 · Curriculum and Syllabus 💾
Other
47 stars 19 forks source link

Storage assignment #551

Closed folkertjan closed 6 years ago

folkertjan commented 6 years ago

Storage Assignment

link to repo

Thoughts

This assignment took a lot less time than the Shelter assignment. Probably the part where I was most unsure of what I was doing was setting up the SQL database. After that, rewriting the express server to get data from the SQL database instead of the local db folder was not too difficult. (It's working at least) If I was supposed to give different error messages back, please let me know as I am not really certain I found ways to deliver all of them 😅 Furthermore I wasn't sure what's a better practice: changing the query to exclude unused data fields or decide within the template pages to leave certain data object properties away. P.S. also not sure if the package.json file is still correct as I have no clue what half of the scripts / test packages do.

Imma get some well earned rest now

img of cat

wooorm commented 6 years ago

This looks great, and thanks for the cat! 😸

screen shot 2018-03-16 at 11 39 33

Review

screen shot 2018-03-16 at 12 05 33

Feedback

This assignment took a lot less time than the Shelter assignment. Probably the part where I was most unsure of what I was doing was setting up the SQL database.

How much time did both parts take?

If I was supposed to give different error messages back, please let me know as I am not really certain I found ways to deliver all of them 😅

screen shot 2018-03-16 at 12 06 40

screen shot 2018-03-16 at 12 09 32 screen shot 2018-03-16 at 12 09 37

But other than those it looks rather good!

Furthermore I wasn't sure what's a better practice: changing the query to exclude unused data fields or decide within the template pages to leave certain data object properties away.

That really depends. I think for the list route it makes sense to just SELECT the properties that are needed, as with many animals it could be significantly faster. The detail page would result in a less significant improvement. But anyway, this only really starts to matter in production and with many people using the site!

P.S. also not sure if the package.json file is still correct as I have no clue what half of the scripts / test packages do.

Looks good! There’s some dev-dependencies, build.js, and tests still left over from the prev db. Then there’s some stuff to check code-style, (stylelint, xo, remark), but you’re free not to use them!

All in all, well done!