lab-brussels-1 / home

Home repository for Lab Brussels 1.
https://lab-brussels-1.github.io/home
MIT License
4 stars 5 forks source link

Ali: Behavior, Strategy, Implementation, 3 weeks #356

Open alihaidermalik20 opened 2 years ago

alihaidermalik20 commented 2 years ago

my fork

Learning Objectives

Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)
There is a lot to learn in this repository. If you can't master all the material at once, that's expected! Anything you don't master now will always be waiting for you to review when you need it. These 4 emoji's will help you prioritize your study time and to measure your progress: - 🥚: Understanding this material is required, it covers the base skills you'll need to move on. You do not need to finish all of them but should feel comfortable that you could with enough time. - 🐣: You have started all of these exercises and feel you could complete them all if you just had more time. It may not be easy for you but with effort you can make it through. - 🐥: You have studied the examples and started some exercises if you had time. You should have a big-picture understanding of these concepts/skills, but may not be confident completing the exercises. - 🐔: These concepts or skills are not necessary but are related to this module. If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push yourself without getting distracted from the module's main objectives. ---

1. Remix

Practice studying and remixing other people's solutions to coding challenges. Create your own solutions by mixing and matching pieces from other people's code.

2. Write

3. Review


alihaidermalik20 commented 2 years ago

Week 1

I Need Help With:

What went well?

What went less well?

Lessons Learned

Sunday Prep Work

danielhalasz commented 2 years ago
  • ThrowError() should be checked against a function unlike toEqual()

yes, that is a tricky one :)

JSDoc etc. Still need to practice more of the standard format for documentation of functions

there is a video about it by Mr Traversy: https://www.youtube.com/watch?v=YK-GurROGIg

alihaidermalik20 commented 2 years ago

Week 2

I Need Help With:

What went well?

What went less well?

Lessons Learned

Sunday Prep Work

danielhalasz commented 2 years ago
  • 505 tests passed for the doctor nurse example

awesome job Ali!!

danielhalasz commented 2 years ago
  • created a function with proper styling/linting and 2 space indentation. JS styling is somewhat different to C or python

yes, JS is more forgiving in terms of indentation..but it is good to do it properly anyway (and Prettier and other tools can make this automatic), it helps finding bugs and learning more strict languages

danielhalasz commented 2 years ago
  • how to use APIs and async await. working with axios. went through some node documentation to see how node repl works and other node functions that can be used with require such as fs and fs.writeFile Sync or non Sync

it is great that you looked into this, HYF covered how to write to the file system before, but now it is more focused on front-end..

what have you used axios for? which API did you connect to? what requests did you make and with what tool? or so far it has been more theoretical?

danielhalasz commented 2 years ago
  • testing for each and every case with a loop and not just one test for each case

yes, this was a cool trick shown by Thibault

danielhalasz commented 2 years ago

you can also have a look at how Maria solved it: https://github.com/MMikhailova/docker-example-bsi/blob/master/doctor-solution.test.js

alihaidermalik20 commented 1 year ago

what have you used axios for? which API did you connect to? what requests did you make and with what tool? or so far it has been more theoretical?

i used axios to make it easier to use async and await for get requests only. Get a data response from an api and enter select the image from the response data and append it on a website if an image exists in that data.

alihaidermalik20 commented 1 year ago

you can also have a look at how Maria solved it: https://github.com/MMikhailova/docker-example-bsi/blob/master/doctor-solution.test.js

oh wow! that is a very different solution

alihaidermalik20 commented 1 year ago

Week 3

I Need Help With:

What went well?

What went less well?

Lessons Learned

Sunday Prep Work