C# Arrays, Lists, and Dictionaries (Quick dotnet tutorial)

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 18

  • @DevLeader
    @DevLeader  Рік тому +1

    ✅Like, ✅share, and ✅subscribe to the channel for more full length content about software engineering topics presented by a Principal Software Engineering Manager 🤓

  • @neilranada
    @neilranada Рік тому +6

    Super helpful in understanding the differences in data structures coming from JavaScript. Key takeaways from your explanations for me:
    6:27 Use Arrays for fixed size collections
    12:55 Use Lists for dynamic size collections
    16:28 For Dictionaries, you can overwrite an existing value by assigning an item using "dictionary[index] = value" bracket notation. But if you want to avoid overwriting an existing value, we can use the "dictionary.Add()" method.

    • @DevLeader
      @DevLeader  Рік тому

      Awesome awesome!! Those are great highlights! Thanks for sharing, and it's so nice to hear that you found this helpful 💪💪

  • @LASERobot
    @LASERobot Місяць тому +1

    I am studying to be a game developer, and am currently studying c# programming. I am using Unity learn to, well…. Learn. But going through I don’t think they checked what they put IN their course, because in a quiz they brought up things like dictionaries and switch statements… both of which they didn’t teach me. I learned quickly what switch statements were, but all I could understand was what dictionaries were supposed to look like. How they worked, their usage, and all the technical stuff, I looked around snd couldnt find a source that could explain it simply. Not even brackeys covered it as far as I can tell.
    And then there’s you, who did. Thank you.

    • @DevLeader
      @DevLeader  Місяць тому

      Happy to help, my friend 🙂

  • @As-crafts
    @As-crafts 6 місяців тому +1

    Great explaination 👍👍

    • @DevLeader
      @DevLeader  6 місяців тому

      @@As-crafts awesome! I'm glad you found it helpful!

  • @phevab
    @phevab 9 місяців тому +2

    Great content. It really helped me.

    • @DevLeader
      @DevLeader  9 місяців тому

      I'm very happy to hear that!

  • @As-crafts
    @As-crafts 6 місяців тому

    Sir can't find any video on generics?.....

    • @DevLeader
      @DevLeader  6 місяців тому

      These collections *are* generics 🙂 are you looking for a more basic introduction to the concept?
      Let me know 🙂

  • @evnikasmirnova7753
    @evnikasmirnova7753 9 місяців тому +1

    👍👍

    • @DevLeader
      @DevLeader  9 місяців тому

      Hope you found it helpful! Let me know if there's anything else you'd like covered!

  • @uditjagtap8317
    @uditjagtap8317 6 місяців тому +2

    So basically Arrays are static with single data type collection, Lists are dynamic with single data type collection and Dictionaries are dynamic with 2 different data type collection....That's it?

    • @DevLeader
      @DevLeader  6 місяців тому +3

      @@uditjagtap8317 the first part is a good summary.
      The second part is true, but it leaves more to be desired in the definition. Dictionaries have very different characteristics.
      If you want to find a specific element in an unsorted array or list you need to step through it. A dictionary, the lookup by key is extremely efficient and you don't need to walk through the elements.
      Dictionary keys must also be unique, but there's no such constraint on an array or list 🙂

    • @uditjagtap8317
      @uditjagtap8317 6 місяців тому +1

      @@DevLeader Oh...get it thank you for the explanation 😄

  • @غصنالزيتون-ف7ز
    @غصنالزيتون-ف7ز 11 місяців тому +1

    Lots of talk and incomplete explanation

    • @DevLeader
      @DevLeader  11 місяців тому +3

      What was not explained? There are several ways to offer feedback, and simply saying something negative without much context is *exactly* what your own criticism was of the video.
      - What did you feel was superfluous and extra? ("Lots of talk")
      - What did you feel was an incomplete explanation?
      - What's your level as a programmer? Are you junior, and still feel that you don't get the concept? Or are you advanced, and feel like there's other aspects that you'd mention?
      Thanks for taking a moment to offer feedback, but that's inactionable due to "incomplete explanation".