How to Program in C# - Arrays (E05)

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

КОМЕНТАРІ • 748

  • @karolborowski4202
    @karolborowski4202 4 роки тому +342

    I've seen many tutorials teaching that simple knowledge ( even in my native language) but you're the best. Your simplicity, your humor, your voice, you're amazing. You have talent for that. Don't stop doing this :-)

    • @aLi112
      @aLi112 4 роки тому +64

      2 month later he stoped doing this :(

    • @blueraven4625
      @blueraven4625 4 роки тому +7

      @@aLi112 uff was about to say that

    • @kaktus9607
      @kaktus9607 4 роки тому +5

      siema polska xd

    • @mazdaybro
      @mazdaybro 4 роки тому +4

      @@aLi112 that's hard for him

    • @bibi0x25
      @bibi0x25 4 роки тому +2

      @@kaktus9607 siema

  • @_mishmoosh
    @_mishmoosh 4 роки тому +187

    Brackeys: adds miracles to shopping list
    2020: sorry those are out of stock

  • @ladyrazzz
    @ladyrazzz 2 роки тому +28

    Just started programming through a university course and your lessons have helped me way more than any of the material provided during the course. You make it fun and understandable, so thank you very much!!

    • @batleyboy4099
      @batleyboy4099 2 роки тому

      iv started self teaching using brackeys videos good luck!

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

      You started programming a year ago. Can you give me a brief update on your current progress and how you're doing?

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

      @@ashrafbarbour9048 yeah, i just started coding yesterday, and i want to know how far someone has gone in a year.

  • @Dertres
    @Dertres 4 роки тому +35

    this is genuinely a really good tutorial series that actually helped me and taught me basics in c#, i hope it continues for a long time

    • @dotmashrc
      @dotmashrc 3 роки тому +12

      lol brackeys leaves youtube as you say this.

    • @daconday
      @daconday 2 роки тому +6

      pro timing

  • @eggoo
    @eggoo 4 роки тому +320

    brackeys makes me feel like the sexiest person alive when i manage to do his challenges correctly

    • @totallyrandompersob1664
      @totallyrandompersob1664 4 роки тому +6

      w o w. t h i s c o m p l m e n t i s w e i r d . C a n t e v e n s p e l l .

    • @ioannisloukas4131
      @ioannisloukas4131 3 роки тому +2

      True

    • @foggyforest2625
      @foggyforest2625 3 роки тому +4

      True
      Specially when it's immediately working after your first try

    • @MarshmallowBoy
      @MarshmallowBoy 3 роки тому +2

      yeah girls love people that sit at a desk all day and make programs.

    • @dudupg2137
      @dudupg2137 3 роки тому +2

      the moment when u write something that u invented and that works, that feeling

  • @khutso8304
    @khutso8304 4 роки тому +188

    Thank you for these! We really do appreciate this series. Keep going!

    • @zeux6634
      @zeux6634 4 роки тому +15

      :(

    • @khutso8304
      @khutso8304 4 роки тому +11

      @@zeux6634 yeah... i seen it too. :(

    • @solarsunne4950
      @solarsunne4950 4 роки тому +5

      Did it not finish? It's unlike him to just quit before a series is done

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

      @@solarsunne4950 this was his last tuto :((

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

      @@m9henri I know that now. Odd of him to leave before finishing it

  • @knockedgoose4206
    @knockedgoose4206 2 роки тому +2

    last time I looked into programming arrays scared me. That was years ago. You have simplified it and I'm more confident I can move on and tackle other things now. Thank you!

  • @goldenpiece7087
    @goldenpiece7087 4 роки тому +12

    😥 Brackeys is my most favourite youtube channel ever. I was going to take photo with you in brackeys studio some day. Good bye man! You really hit my heart as a teacher.

    • @eliabrowning3628
      @eliabrowning3628 3 роки тому +1

      Did something happen to him? I just discovered this channel and the thought that something did already is making me sad!...

    • @goldenpiece7087
      @goldenpiece7087 3 роки тому +3

      @@eliabrowning3628 In fact, he is fine and, I hope, doing well, but he quit UA-cam in order to make a change and do something else in his life(at least thats what he said in his last video) , moving to something else. Yeah that was really sad.

  • @h.k.7953
    @h.k.7953 Рік тому +3

    I'm in college now trying to learn c#. You explain everything better then my teachers. Thank you.

  • @labreynth
    @labreynth 4 роки тому +9

    First programming tutorial process that has actually helped me learn how to program :)

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

    I took a couple days after finishing this video and then came back and decided, before moving onto the next video, to try the homework section after a two day break. I am confused but pleased to say I managed to make it work and honestly there are few feelings as great as taking a chance, problem solving then coming up with your own, functional, piece of code that does exactly what was asked of you. I also like how the homework sections so far have done a great job of drawing reference from the things that we learnt before them whilst also having an element of trickery to them that encourages you to try and fail and then come up with solutions and succeed. I wonder how many people wrote the exact same thing as me and how much room there is for flexibility in the script. Brackeys is the goat and these videos are amazing 🔥

  • @aidendavis7321
    @aidendavis7321 Рік тому +2

    Never thought I’d be able to code, these videos have proved I definitely can, I just needed a good teacher. Thank you!

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

      thats what i was thinking. I have a friend who coeds (in java) and i would look at his work and just be confused, but now i kinda know what im doing in c# which is not where i tohught id be... ever.

  • @tageneislover
    @tageneislover 4 роки тому +37

    Take a shot everytime Asbjørn says "awesome."

  • @derekw8039
    @derekw8039 4 роки тому +522

    Brackeys: Is making tutorial on coding in Unity
    Also Brackeys: "This video is sponsored by different game-creation platform that requires no code..."

    • @Noah-me2fm
      @Noah-me2fm 4 роки тому +20

      it's on visual studio code...

    • @meganixi5282
      @meganixi5282 4 роки тому +11

      damn, the sponsors are idiots.

    • @ApexTrailblazer
      @ApexTrailblazer 4 роки тому +10

      @@Noah-me2fm His channel is based on unity. Unity uses C#

    • @imnotjerry2226
      @imnotjerry2226 4 роки тому +10

      No, they’re geniuses

    • @tornanblade665
      @tornanblade665 4 роки тому +9

      yeah wrong choice isn't it? my bro quit the course and went to core instead.

  • @abdiazizali1043
    @abdiazizali1043 3 роки тому +2

    Wow! I like the way you are explaining everything, I have watched alot of videos about array but no one is explaining everything the way you are doing it.

  • @perelium-x
    @perelium-x 3 роки тому +18

    He should't have stopped creating content, we need more of his tutorials! He is a good Lad!

    • @Crackk73
      @Crackk73 4 місяці тому

      He just came back! Look at his recent videos!

  • @philipbellingham6483
    @philipbellingham6483 4 роки тому +35

    For the "homework" you said to do at the end, adding a number before the names is also a cool way to show how basic maths (Pemdas/Bodmas) works in methods. I added to the last Console.WriteLine a "i + 1" so that the names display with a number before the name i.e..... "1. Philip, 2. Brackeys" etc. instead of just "Philip, Brackeys"

  • @mahir04
    @mahir04 4 роки тому +12

    It's strange that how the best tutorials on youtube is so underrated.

  • @andymcdonald7760
    @andymcdonald7760 2 роки тому

    Yes! Managed to complete the challenge. Had to look at a still image of the arrays code, but still managed to combine previous lessons into a working solution which allows any number to be input by the ser, then the corresponding names, and it then spits out the names in alphabetical order.
    Phew. I LIKE this!!

  • @poresrage5053
    @poresrage5053 4 роки тому +54

    Hey brackeys, loving the content and can't wait to see the winners of the game jam! I was just wondering if you could do a video touching on character selection in a multiplayer game as I cannot seem to find a video on it anywhere. Cheers, keep up the great work!!

    • @jirue
      @jirue 4 роки тому +6

      Some more context might be welcome for this... how much of the multiplayer game is already set up? Would he be building it from scratch? Then that will require an entire series just to get to the point of even having a character selection screen. If it's just showing the point of the character selection itself, then it's using UI displays and click events like he's shown in previous videos to allocate your selection to whatever object you're using to track each player's data for a game round (if you don't know what I mean by that, then this is what I mean when I say it would require an entire series cause there's a lot of background foundation that needs built first). So it might be a good idea to give more context so he can get a better feel of scope you have in mind when asking this question.

    • @poresrage5053
      @poresrage5053 4 роки тому

      I have set up two basic characters and would like for players to be able to choose between either of them once I enter to game. Of course I will be setting up more characters but right now I'm stuck at the character selection. Since Brackeys has already made a series on how to make an online fps game, I think entire character set ups are unnecessary and would just like to learn how to get a character select screen working with two minimalistic characters

    • @rowanr-m2373
      @rowanr-m2373 4 роки тому

      @@poresrage5053 Why not just create a character class, which contains a mesh and a texture, then apply them to your player whenever it's selected

    • @poresrage5053
      @poresrage5053 4 роки тому

      @EternalClickbait I'm planning on adding special abilities to each players so it's not just a question of simply replacing character models

    • @prateekpanwar646
      @prateekpanwar646 4 роки тому +1

      @@poresrage5053
      I know how to do it but cannot explain easily in UA-cam. Better reply to discord.
      As you'll get late if you wait for video

  • @BroodVI
    @BroodVI 4 роки тому +2

    Very well done, finally learning C# now. Though since I'm already familiar with most concepts i watch at 1.5x. Keep it up!

  • @corr2143
    @corr2143 4 роки тому +1

    This was a really nice and quick comprehensive way of explaining arrays, very very VERY good video.

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

    Thank god for you bro! You’ve taught me more in this video than the 2 hours worth of lessons my college has provided

  • @zx74c
    @zx74c 4 роки тому +4

    yesssssss im glad im early its 10:22pm for me lol ive been waiting for this thanks for making tutorials as i want to get into game development and you and dani are my inspirations

    • @thedude4039
      @thedude4039 4 роки тому

      Ever heard of Sebastian Lague?

    • @zx74c
      @zx74c 4 роки тому

      @@thedude4039 no. who is he ?

    • @zx74c
      @zx74c 4 роки тому

      @@thedude4039 oh, just searched him. of course i know who he is

  • @Landon_Hughes
    @Landon_Hughes 4 роки тому +2

    I love this series! I know most of what you’re teaching already, but it’s good to reinforce already known knowledge. I have my C# class (college classes) starting this Thursday and I’m pretty excited about it! 😁

  • @lanzjypol
    @lanzjypol 4 роки тому +2

    This is really the best tutorials ever! Thanks Brackeys! Keep up the good work

  • @Mr.Gemegix
    @Mr.Gemegix 2 місяці тому

    I just started learning c# to make my dream game and this is gold even tho its oooold

  • @Oxmond
    @Oxmond 4 роки тому +3

    Beautifully described and executed Brackeys. You're the best! 🤓👍

  • @akorialxstudio8519
    @akorialxstudio8519 4 роки тому +1

    Great tutorial! Thanks for keeping this series alive!

  • @nidzzo
    @nidzzo 4 роки тому +1

    I love combining this series with how to make a video game series. Keep up the good work :)

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

    Amazing, quick and straight to the point explanation. Loved all about it. Seriously, you are awesome! Thank you!

  • @divenbuls9262
    @divenbuls9262 4 роки тому +3

    I saw a little detail at 0:16
    You have watched interstellar too.
    This is my favorite movie. I respect you for liking it too. It's so underrated. It change my way of thinking lmao...
    Pls no hate from the people that dont care XD

  • @keyemail1411
    @keyemail1411 4 роки тому +2

    How does this have only 80 thousand views? This deserves more

    • @ceiux
      @ceiux 3 роки тому +1

      In beginning there were so many views. Soon many gave up and now there are only 80k people left.

  • @rednrg2641
    @rednrg2641 4 роки тому

    First time visiting your channel and I gotta say, you are a breath of coronavirus free air!!! Thank you for using UA-cam for something positive and rewarding. The way you explain things makes people like me feel super smart lol. Get used to see me because I'll be checking your videos. Already a subscriber with all notifications coming my way. (MY GOAL: Making a game by X-MAS) So.... Let's do this!!!!

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

    Amazing, I love the way you explain. I watched Array Tutorials from other channels too but in this video I got lots of new idea. Thank you ❤

  • @Akigadrawings
    @Akigadrawings 5 місяців тому +1

    Another awesome video! Thanks you all!

  • @공부용채널-c7p
    @공부용채널-c7p 4 роки тому +100

    Brackeys: uploads a video about Arrays
    Me: Hurra.....I mean....hARRAY!!
    (Also me: That was really bad XD)

  • @namename-cl8kk
    @namename-cl8kk 4 роки тому +2

    I start waching yo since 2 hrs. The 1st vid was youer firat learning c# and you make a new vidio sincw 1hr . I am lucky😁

  • @j8zel
    @j8zel 4 роки тому +1

    Can you please do Classes/Method? I have watched so many videos about C# and yours has been the easiest to follow. Thank you!

  • @CatJuiceBanana
    @CatJuiceBanana 3 роки тому

    This is the most clean explanation about array.

  • @aw_dev
    @aw_dev 4 роки тому +1

    More than 1000 views in 18 minutes? Wow. Thanks Brackeys for yet another awesome video!

  • @AliAkbar-kw4ft
    @AliAkbar-kw4ft 8 місяців тому +1

    Best Teacher on youtube

  • @TitoPopoy
    @TitoPopoy 4 роки тому +1

    I'm really new at coding and i love your content. Hoping to learn how to code and start making my own games.

  • @XDarkEcho
    @XDarkEcho 4 роки тому

    Great tutorial, thanks for all this free quality information, Brackeys! Now then, ONWARD, to the next one!

  • @mohammedabdulqareeb
    @mohammedabdulqareeb 4 роки тому +1

    Thanks for teaching the topic ARRAY!

  • @MrDavidpryce
    @MrDavidpryce 3 роки тому +1

    You helped me understand this so much better! Thank you

  • @halah8348
    @halah8348 2 роки тому

    the challenges are def my fav part of the videos

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

    Great video! Explained very simple and easy to understand.

  • @annanzia5445
    @annanzia5445 4 роки тому +6

    Finally another programming tutorial

  • @bloodsword2263
    @bloodsword2263 3 роки тому

    Dude the explaining everything is awsome !!

  • @zippybagi1105
    @zippybagi1105 4 роки тому +4

    This is what we were waiting for 2 weeks

  • @vitaszernys2893
    @vitaszernys2893 3 роки тому +1

    15:50 I feel like Dwayne and Shrek would always get into arguments...

  • @Redeemartstudios
    @Redeemartstudios 4 місяці тому

    This has helped me so much! Thanks for your help!

  • @tsunamininja
    @tsunamininja 4 роки тому +45

    I feel like there was a missed opportunity to touch on the topic of array out of bound errors when you put in i < 10 and had an array with length 4.

    • @shaiavraham2910
      @shaiavraham2910 4 роки тому +2

      Same

    • @meganixi5282
      @meganixi5282 4 роки тому +21

      brackeys is a busy man, he probably forgot
      1 like = literally fucking nothing.

    • @yourmum69_420
      @yourmum69_420 3 роки тому

      Hi, could you explain this to me please? I have tried using a program called SharpOcarina for N64 modding, but it always tells me "index is outside the bounds of the array" and I have no idea what the ͏f͏u͏c͏k that means. Thanks

    • @tsunamininja
      @tsunamininja 3 роки тому

      @@yourmum69_420
      In short, you have a list of say, 10 objects, and you try to access the 11th, or 15th, or 100th object - which is outside the bounds of the array, and does not exist.

    • @ellyvatedaf
      @ellyvatedaf 3 роки тому

      @@yourmum69_420 Thats when the program is trying to access something that isn't in the array. If your array has 5 things and you tell your program to access the 6th or 10th item, it'll give you an out of bounds error because there are no 6th or 10th items in that array

  • @mohamedeno1282
    @mohamedeno1282 4 роки тому

    thanks too much as a new to programming it was so confusing but when i saw your vids about it it made everything simple and easy.

  • @being4ditya
    @being4ditya 4 роки тому

    Finally, got the video!!! Was waiting since years...
    But, Thanks man.

  • @mihaiveteran
    @mihaiveteran 4 роки тому +7

    Thank you Brackeys for your advices and videos
    As a 13 yr old kid i am learning so much from you and I am actually trying to develop a small 2D game by myself
    Maybe someday I will be an indie game developer
    Thank you so much for learning me and for you free lessons!
    Peace!

  • @katepark4046
    @katepark4046 4 роки тому +1

    Better than my professor. Thanks 🙏

  • @themadmushroom2769
    @themadmushroom2769 4 роки тому +2

    It might be important to mention that Sorting Algorithms can mess up at a certain point, so instead of using the default .Sort(), it might be cool to explain how to write your very own sorting algorithms, which can then be modified, whether you want really simple Code to write (Shell-/Bubblesort), a high stability (Merge Sort f.e.), low memory usage or extreme precise results. This is a rather complicated topic, but maybe it might be an interesting topic for a future episode.

  • @MiScusi69
    @MiScusi69 3 роки тому

    those are the only lessons that I genuinely like.

  • @Juanah92
    @Juanah92 3 роки тому

    Thank you! Comparing arrays and lists was super helpful.

  • @ODDATOMS
    @ODDATOMS 4 роки тому

    I have done the task before you give it. I feel happy now. _**_

  • @mkwraith8625
    @mkwraith8625 4 роки тому +22

    Never thought I’d have to code my shopping list...

  • @jerryfox2960
    @jerryfox2960 4 роки тому +1

    Finally! I love these small tutorials the really helped me get started, yours are really easy and comfortable to follow!
    Maybe you can show us in the next video how to store and get variables from a file? That would be so helpful, all of the answers from Google were so confusing! Thanks and please continue these tutorials!

  • @foggyforest2625
    @foggyforest2625 3 роки тому

    The best teacher that i ever had❤

  • @capilover1023
    @capilover1023 4 роки тому

    I'm an experienced developer and I know every single thing in the video but I still watched this just because it's brackeys xD It's always a pleasure to watch your videos. Keep it up!

  • @desmondquekhj
    @desmondquekhj 4 роки тому +6

    I learnt more from this video then my 2hr class lol.

  • @BoffaG1
    @BoffaG1 4 місяці тому

    This guy is saving my A levels

  • @Blue-lh9dw
    @Blue-lh9dw 4 роки тому +7

    17 minute video took me 17 hours to understand

  • @egorkalmus2914
    @egorkalmus2914 4 роки тому +1

    Thanks for all videos

  • @SatSageyo
    @SatSageyo 4 роки тому

    Finally brackeys uploading a video

  • @aerogalacticsodapop
    @aerogalacticsodapop 4 роки тому +1

    Hi Brackeys, I love your channel, you are the best unity tutorial channel on YT, even better that unity itself!
    Suggestions: 1) I know that I can make a charecter selection with scriptable objects but can you please make a tutorial on that, like conditions to unlock a charecter and in app purchases ect.
    2) Please make a tutorial on ads, I know unity has made one but I didnt understand well (and they were not using visual studio dark mode ;-) )
    3) I see these playable ads, how do you make them?
    THANKS!!!

  • @liquidportal9082
    @liquidportal9082 4 роки тому +1

    Thanks brackeys! This is very useful!

  • @supertenchoo4271
    @supertenchoo4271 4 роки тому

    still learning thank you Brackeys am little bit comfort with list and array after watching this video

  • @kristianthaler6525
    @kristianthaler6525 3 роки тому

    The most impressive thing to me is how the editor shaded Shrek's whole body green. They could have just added his head and left it at that, but instead they decided to go the extra mile. Bravo.

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

    Really nicely done!

  • @AASHIKAD-o2i
    @AASHIKAD-o2i 2 місяці тому

    this tutorial is AWESOME!!

  • @JupiShinn
    @JupiShinn 3 роки тому

    10:22 - Disadvantages of using Arrays...
    What if we put things like this?
    Letting user to decide how long the array will be?
    Console.Write("How many students are in your class?: ");
    int input = Convert.ToInt32(Console.ReadLine());
    string[] student = new string[input];
    ...
    As I am super new in C# this may be related to the Schrodinger's cat. :D
    May be good or it is very bad.
    You will know the moment you open this box. ;)

  • @Kncperseus
    @Kncperseus 4 роки тому +4

    Hey man, love your videos. I have an unrelated request:
    I am trying to learn how to do character animations in Unity. I would really appreciate it if you could consider making a tutorial should you find the time. Thanks!

  • @readm5414
    @readm5414 4 роки тому

    I am shocked that quality video such as these have only a few thousands views

  • @TechnicalBurhan
    @TechnicalBurhan 4 роки тому

    *Hey keep uploading these coding videos I am learning alot from you thank you*

  • @ghost_xtc627
    @ghost_xtc627 3 роки тому

    you can also size an array
    example
    int size= int.Parse(Console.ReadLine());
    int[]array=[size];

  • @m.r3052
    @m.r3052 4 роки тому

    Ive made $30,000 on my game so far. Thanks for all your help

  • @pandaengine
    @pandaengine 4 роки тому +302

    Who else here knows all of these but still watching? ✋

    • @childishlandino3679
      @childishlandino3679 4 роки тому +23

      No harm in reinforcing information 👌

    • @VijayAVk
      @VijayAVk 4 роки тому +2

      Me ▼・ᴥ・▼

    • @Moby41
      @Moby41 4 роки тому +6

      @@childishlandino3679 yessir 👍

    • @VANTABL4CK
      @VANTABL4CK 4 роки тому +7

      yes its fun. My favourite part is the creative thumbnails

    • @greyseth2721
      @greyseth2721 4 роки тому

      Me

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

    some heroes dont wear capes, I litterally have an exam tomorrow with this exact rubric

  • @NoelJasik
    @NoelJasik 4 роки тому +27

    Someone: Best Student doesn't exist
    Me: 15:58

    • @nooptiui
      @nooptiui 4 роки тому +2

      @Noel Jasik, I don't get it

    • @epiccreeper102
      @epiccreeper102 4 роки тому

      @@nooptiui Shrek is the best student

  • @pervysage3177
    @pervysage3177 4 роки тому

    Can't wait for the next tutorial😀

  • @thedude4039
    @thedude4039 4 роки тому +1

    It’s great that you’re making these great beginner scripting videos that will bring thousands of new people into the programming world, but there’s a problem. There’s already such a high resource density when it comes to beginner scripting tutorials, but the amount of good content for the more advanced topics, which are much more difficult, confusing and in need of an awesome channel like yours, that makes learning these concepts much easier, to teach us those difficult things is much lower, and so it might be better if you focused on teaching the more difficult topics instead of easier ones, because those topics are in more desperate need to be taught than these basic tutorials that everyone makes.

  • @StarCoreSE
    @StarCoreSE 4 роки тому +3

    Good luck covering all of C# and programming with a video per week XD

  • @zeekc.9053
    @zeekc.9053 10 місяців тому

    THANK YOU IVE BEEN SO CONFUSED

  • @adityavsaini
    @adityavsaini 4 роки тому

    thanks so much for the series!

  • @SaritaGujjar-p1v
    @SaritaGujjar-p1v Рік тому +1

    10:37 or we can just put a variable in array and assign an int value to it
    Console.Write("how many movies you wanna input ?");
    Int num = Convert.ToInt32(Console.ReadLine());
    String[ ] movies = new String[ num ];

    • @TeknoOdin
      @TeknoOdin 4 місяці тому

      I think that was what the homework was for ..I was struggling to get the homework side of thing TO work ..then noticed this comment and yeah now It's working and homework is completed lol

  • @nizuli1347
    @nizuli1347 4 роки тому

    Oh may god i love your lesssons.

  • @thomb.9013
    @thomb.9013 3 роки тому

    this has been REALLY fun for now..

  • @gavrilonikolic3415
    @gavrilonikolic3415 10 місяців тому

    thx i have been ableto understand this in a hour bc of u thx so much

  • @KptKosmit91
    @KptKosmit91 4 роки тому +7

    I love storing my dreams in a fridge!

    • @jk7074
      @jk7074 3 роки тому

      Midnight snacks

    • @AungAung-ps7pt
      @AungAung-ps7pt 3 роки тому +1

      Well, then, your dreams will just freeze.😂

  • @joristackaert
    @joristackaert 4 роки тому +1

    the count() / lenght() on list / array is cus an array's lenght is know while a list isn't so you can't ask the lenght. but you can ask how much element it has resulting in .count() for lists.

    • @Forkoto
      @Forkoto 4 роки тому

      First of all - there is a difference between 'Count' and 'Count()'. The first is a simple property(variable) that would return some sort of value, the second is an action function, that would execute a logic when called. Both arrays and lists have their sizes known. Array's size is known at the point of its creation, since it can't be resized, while a list's size always starts at 0 and increased or decreases based on the amount of elements you put into it. Even though a list's size changes, it's still known. For example an IEnumerable is a collection that does NOT have a direct way to get the number of elements in it. You have to call the Count() method (from the System.Linq namespace) which will go over all the elements and spit out a value in the end. If we compare Length to Count to Count() - Length and Count instantly give a number back without any performance hit, while a Count() would take more and more time to execute, the more and more elements there are. I doubt one uses Length and other uses Count just because of the resizability, but in the end - it doesn't matter. Until you memorize them, just type one of them and if it doesn't work use the other one :D

    • @joristackaert
      @joristackaert 4 роки тому

      @@Forkoto yeah i know been doing it for 5 years now. but it's just a simplification. sure you know how long a list is but somewhere you'll have to pick one or the other. and then the question falls. do i know the lenght of the items i want to put in or do i just put them in and see what will happen. then ask the object for the amount.

  • @AK_Studioz
    @AK_Studioz 4 роки тому +18

    Today's motivation
    17/08/2020
    Monday
    "I FEAR NOT THE MAN WHO HAS PRACTICED 10000 KICKS ONCE, BUT I FEAR THE MAN
    WHO HAS PRACTICED ONE KICK 10000 TIMES."
    -Bruce lee

  • @blixtdraken3923
    @blixtdraken3923 4 роки тому

    This was EXACTLY what i asked for :D

  • @neelamverma1032
    @neelamverma1032 4 роки тому +2

    Major game developer you tuber are from nordic countries.
    Brackeys from Denmark
    Sykoo from Sweden
    Dani from Norway.