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

Elias; Separation of concerns; 3 WEEKS #376

Open EliasMlopez99 opened 2 years ago

EliasMlopez99 commented 2 years ago

Learning Objectives

EliasMlopez99 commented 2 years ago

Week 1

where am i?

i'm currently doing "catch me" exercise presented by Daniel in today's meeting

need to help with

so far i'm just digesting the first exercises, if i present any issue i will let you know in the comments below

What went well?

Understanding function roles theory, i guess it was difficult at the beginning because there's no way of understanding something that you never try( by the fact the JS is more practical)

What went less well?

the examples did not make any sense for me, though with the explanation given today, at least i know where am i walking

Lessons Learned

EliasMlopez99 commented 2 years ago

Week 2

where am i?

i'm currently starting to do the feature that lets the user see their items

need to help with

I will ask help if needed there are plenty examples apart from the ones presented in the repo

What went well?

The point of separating our functions in different javascript files in order to have a better codification, and if any of our functions fail we can easily identify the problem without losing time searching trough each line

What went less well?

The part of splitting up the codification, is something that definitely brought problems but i am working to do it more efficiently

Lessons Learned

Sunday Prep Work

Try to end my tasks assigned for my deliverables

EliasMlopez99 commented 2 years ago

Week 3

where am i?

i'm trying to figure out how to help out my team, @Dnyandeo33 has been helping us a lot, i want to try out something myself but i have been experiencing internet issues lately, that has not allowed me to work as i would wanted to

need to help with

i would like to know how to create a feature that allows me select an element from a list of them i used this article about HTMLSelectElement but it only works with elements previously defined in a constant and not the ones that get add by JS

What went well?

Working as a team and separating a function, this was because my fellow classmate explained me how

What went less well?

Trying to create my feature that allows me to delete/remove elements at least specific ones

Sunday Prep Work

I will try to figure out how to create the features mentioned above by myself, if not i will ask someone on Sunday to help me

colevandersWands commented 2 years ago

@EliasMlopez99 , this is a tricky feature. take a look at /separated/5-list-component-custom-event for a similar example.
Using custom events in components is more advanced, but also makes this feature much easier to implement because you can send the array item you want to delete (not the DOM element) as an event property

danielhalasz commented 2 years ago

i have been experiencing internet issues lately

are these related to the center..or is it a computer issue we can help with?

danielhalasz commented 2 years ago

i would like to know how to create a feature that allows me select an element from a list of them i used this article about HTMLSelectElement but it only works with elements previously defined in a constant and not the ones that get add by JS

1 way would be to create a listener that is listening for a click event on the list..and then use the event.target to get the selected element specifically

danielhalasz commented 2 years ago

Trying to create my feature that allows me to delete/remove elements at least specific ones

indeed, this is a more complex feature.. you could maybe have 2 separate parts of it... one for selecting the element and one for removing it.. so separate listeners/handlers