JavaScript Data Structures - Linked Lists

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • 👕 Merch
    cottonbureau.c...

Комментарии • 21

  • @paschalynukwuani6930
    @paschalynukwuani6930 2 года назад +1

    The best Linked Llist explanation on the internet.

    • @DevSage
      @DevSage  2 года назад

      Thank you Paschalyn!

  • @evebeckett3953
    @evebeckett3953 2 года назад +1

    Thank you for this! I've spent all day trying to find a video that satisfactorily explained linked lists in JavaScript and this is the first time it actually made sense. Keep it up!

  • @shannonwilliams93
    @shannonwilliams93 2 года назад +1

    One of the clearest Linked Lists explanations I've seen. Thank you! I've had a hard time wrapping my brain around this, but your clear explanations, visuals alongside the code, and repetition, really helped me! Thank you!

    • @DevSage
      @DevSage  2 года назад

      Glad you were able to find value

  • @thecarrotdude
    @thecarrotdude 2 года назад +1

    Couple of things you may want to clarify. When you start coding out the linkedlist constructor, you should specify you're making a doubly Linked list. Also it helps so much to have visuals (the visuals on the right don't quite explain how the pointers are working/moving from node to node, etc.)

    • @DevSage
      @DevSage  2 года назад +2

      So the "this.previous" node pointer in the beginning wasn't a big enough clue that I was building a doubly linked list?

  • @vuejs1
    @vuejs1 Год назад

    My favorite black dev for sure

  • @joaomendoncayt
    @joaomendoncayt 3 года назад +2

    Great video!
    Good job with the structure and all the analogies and editing to aid the explanation. Great Pace aswell!
    Keep it up! 💪

    • @DevSage
      @DevSage  3 года назад

      Much appreciated!

  • @samuelokeke8144
    @samuelokeke8144 2 года назад

    How does the oldTail have any reference to the this.head, i don't see how that is suppose to update the head, please can someone explain this to me

  • @86_magical30
    @86_magical30 Год назад

    I love this video

  • @subratpanigrahi3581
    @subratpanigrahi3581 2 года назад +1

    How does the context (this) get autobound to the methods even if we are not using fat arrow functions?

    • @DevSage
      @DevSage  2 года назад

      A class method in javascript will automatically be bound to the context of the class.

    • @subratpanigrahi3581
      @subratpanigrahi3581 2 года назад

      Thanks.
      I fail to understand under what situation we need to bind a function in constructor.
      The way we used to do react class methods (which is no longer required with Arrow function now)

  • @syrix5914
    @syrix5914 3 года назад +2

    Nice Video.
    I am careful( actually never) using classes. But I similarly use objects. I just add methods to a js object, and it is pretty close to a class. Is this bad practice?

    • @DevSage
      @DevSage  3 года назад +1

      It's not bad practice. Classes are more of 'syntactic sugar' in Javascript. It's a nice-to-have because it allows you to write code that feels more Object-Oriented. But definitely not necessary

    • @syrix5914
      @syrix5914 3 года назад +1

      @@DevSage thanks. Maybe I try the sugar to sweeten it up :)

  • @TheCreativeLibertarian
    @TheCreativeLibertarian 2 года назад

    Awesome bro

  • @basilgeorge5657
    @basilgeorge5657 3 года назад

    Useful Content. Video Resolution Quality is less

  • @abhishekthakur7578
    @abhishekthakur7578 Год назад +1

    video quality is very poor