Prefer Arrays Over Lists. Seriously...

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2023
  • In this Java tutorial I will explain why, it's essential to understand the logic behind Java Lists methods and why preferring Arrays can significantly enhance your understanding of data structures.
    You'll learn:
    1️⃣ The fundamental differences between arrays and lists in Java.
    2️⃣ The logic behind list methods and why they're crucial in programming.
    3️⃣ The advantages of using arrays over lists for beginners.
    Not only will this knowledge help you to write cleaner and more efficient code, but it will also provide a strong foundation for understanding more complex data structures as you advance in your Java journey.
    Don't Forget to
    ===========================================
    💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
    💯 Courses Available for free here - amigoscode.com/courses
    💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
    🙊 Here are the goods for all my videos video 🙊
    ► Recommended Books
    ===========================================
    - Clean Code - amzn.to/2UGDPlX
    - HTTP: The Definitive Guide - amzn.to/2JDVi8s
    - Clean Architecture - amzn.to/2xOBNXW
    ► Computer and Monitor
    ===========================================
    - New Apple MacBook Pro - amzn.to/3464Mmn
    - Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
    - Double Arm Stand Desk Mount - amzn.to/3aYKKfs
    - USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
    ► Camera Gear
    =============================================
    - Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
    - Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
    - Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
    ► IDE & Tools I use for coding 💻 🎒
    ===========================================
    - ITerm
    - VsCode
    - GoLand
    - IntelliJ Ultimate
    - Sublime
    P.S
    ===========================================
    💯 Don't forget to subscribe | bit.ly/2HpF5V8
    💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
    💯 Follow me on Instagram | bit.ly/2TSkA9w
    ❤️ Thanks for watching
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 158

  • @Ben-xf5ix
    @Ben-xf5ix ปีที่แล้ว +112

    Unless you want to reinvent the wheel, stick with ArrayList. Some abstraction makes life a little easier, though.
    But of course, it is helpful to understand its underlying implementation.

    • @tino3420
      @tino3420 11 หลายเดือนก่อน

      Sure, but when you are starting out, you should know the cost of each functions.

  • @benson1ification
    @benson1ification ปีที่แล้ว +216

    Hi Nelson. I enjoy most of your videos, but please can you reduce the effects? It's hard to listen to what you say with the constant ADHD interruptions.

    • @hubertszy
      @hubertszy ปีที่แล้ว +5

      Thank You...

    • @kirkanos771
      @kirkanos771 ปีที่แล้ว +4

      Thank you, i was to type the same thing. I dont have ADHD, yet. I dont need those FX to contract it.

    • @vesakk72
      @vesakk72 ปีที่แล้ว +3

      Yep….i agree 😊

    • @martvisser
      @martvisser ปีที่แล้ว +3

      Agreed!

    • @shutanovac
      @shutanovac ปีที่แล้ว +3

      Completely unneeded

  • @osman_olgun
    @osman_olgun ปีที่แล้ว +61

    Unnecessary effects are distracting😊

    • @salehahmed8936
      @salehahmed8936 ปีที่แล้ว

      tbh the effects to emphasise on important parts but everyone has different cups of tea i guess

    • @bytecodeuz
      @bytecodeuz ปีที่แล้ว +1

      Totaly agree

    • @AlFredo-sx2yy
      @AlFredo-sx2yy ปีที่แล้ว +4

      ​@@salehahmed8936 vine boom vine boom vine boom fart huh metal pipe falling vine boom Danger Alarm Meme Sound Effect taco bell bababooey Android notification meme sound effect vine boom vine boom vine boom AMOGUS goofy aaaaaaahhh snort vine boom fart huh far metal pipe falling metal pipe falling fart fart vine boom Fart Meme Sound

  • @TheLukasz222
    @TheLukasz222 ปีที่แล้ว +87

    What a clickbait title. Im sick of all this tech youtubers telling me that I do something wrong all the time.

    • @mohammadtoficmohammad3594
      @mohammadtoficmohammad3594 ปีที่แล้ว +8

      He mentioned from the start its ment for beginners to learn datasturcture, and even if clickbait what the problem he is depending on himself to make money independent from enslaving software companies

    • @guigolum
      @guigolum ปีที่แล้ว +8

      I understand (and partially agree) with you, but here he's basically saying "learn the internals before you use them", which is correct. When we are senior devs we think of arraylists as arrays with decoration, but that's not the case for juniors.

    • @diegoramos27
      @diegoramos27 ปีที่แล้ว +4

      True, title is very misleading, many people dont have the time to watch the video and they just keep the title in mind

  • @MichaelMarques
    @MichaelMarques ปีที่แล้ว +17

    If you're a junior dev, you should absolutely be using List over arrays 99% of the time. You have to take into account that a senior dev will review your work and they will tell you to use a more reliable data structure like a List.
    The more you use lists, you will eventually have no choice but to delve into the underlying structure and learn how it works anyway.

    • @BloodyScythe666
      @BloodyScythe666 ปีที่แล้ว +2

      underrated comment. definitely agree 100%.

  • @DarkCebolix
    @DarkCebolix ปีที่แล้ว +4

    I'm a programmer for 13 y now, I work mostly with C#.
    Your channel is very good and very clear for newcomers. Congrats.
    That said, I would change the name of this video to "Prefer arrays over Lists if you are a beginner"
    And that's because in day to day programming one is not better than the other. You'll use one or another depending of your need. And even knowing it's essential for any programmer that want to be competent, to learn what's happening under the hood, this doesn't mean they should reinvent the wheel.
    I know you probably didn't mean that, but I can see a lot of beginners understanding the message this way.
    Well... Just thoughts. Keep up the good work

  • @APPLAY
    @APPLAY ปีที่แล้ว +14

    Why so many effects? Its not an adobe premiere tutorial, isnit?

  • @V100X
    @V100X ปีที่แล้ว +15

    This was interesting for me, but the title is missing something like “If you are starting..” and maybe too much effects :)

  • @lucasfkam
    @lucasfkam ปีที่แล้ว +22

    This is where the importance of studying data structure lies, because in real life you will use native Java implementations already knowing how the structure works internally.
    I find it very difficult to have to implement a structure from scratch (unless it doesn't exist) to use it in your project since there are already native implementations of it, so if you understand data structure you can use them without any weight in consciousness.

    • @nonelelacele9300
      @nonelelacele9300 ปีที่แล้ว +3

      Exactly. I remember back in my second year we had an investigation assignment of implementing abstract data structures it was actually eye opening to see how they were implemented.

  • @WARHE8D
    @WARHE8D ปีที่แล้ว +7

    idk bro your editor sometimes put unnecessary sound clips and its annoying.

  • @erkin7138
    @erkin7138 ปีที่แล้ว +8

    When I was studying Collections, my mentor told us to create oour own List implementation using arrays and simple array methods to recreate ArrayList. That was fun and interesting for me as for learning and studying.
    However, I simply recommend you to proceed using already developed libraries and collections. Because this is just what Java creators want you to do and it simplifies evrything for you. If you want to know how a library works internally, you may just look inside it and read the methods. By the way, I have never used Binary Trees in my career (3 years). It would be super cool if you could show us a simple basics of using a binary tree in Java Development, Brother. Thanks for the video and for warm memories of being a student. As-Salam-u-Alaikum.
    Video title is a clickbait but a wise one :)

  • @marcin2x4
    @marcin2x4 ปีที่แล้ว +1

    Would you do separate video on Generics?
    I'm diving into Java and your videos with slides are very helpful!

  • @igoerche
    @igoerche 4 หลายเดือนก่อน

    It'S totally making sence to satrt with arrays and stick with it a while! Thank you Nelson for you dedication!

  • @LeafyConversations
    @LeafyConversations ปีที่แล้ว

    This is genius. Thank you for sharing your knowledge with us. I had no idea as I am a new java dev I run into the typical “copying code” and not knowing what I am truly using.

  • @davelovesdrums
    @davelovesdrums ปีที่แล้ว

    I think this is brilliant! I was doing a coding challenge the other day, involving arrays, and found it really frustrating and difficult to figure out because I'm so used to just using list.add.
    Yes. It's easier to just use lists but you can't put a price on understanding how it all works. It will absolutely make you a better engineer/developer.

  • @selvisokak
    @selvisokak ปีที่แล้ว +5

    It is the visual effects course that I have been searching for, thanks!

  • @tornikebuchukuri4114
    @tornikebuchukuri4114 ปีที่แล้ว +10

    please don't include those weird sounds in he future videos

  • @shashishekhar----
    @shashishekhar---- ปีที่แล้ว +3

    To the people saying 'clickbait' , 'misleading' etc: see he never said it was meant for advanced viewers,it is clearly for juniors/ beginners and please refrain from leaving any negative comments on this channel. You all have no idea how much this man has added value to many developers life, I am a testament to this.
    The way he teaches so selflessly and has created a valuable community that helps others learn.
    As far as I know Nelson is an absolute 💎 of a human being and so as a content creator , In each of his videos he tries to teach something new valuable and has never ever once tried to make clickbait video.
    Kindly be polite and be appreciative,thank you

    • @BloodyScythe666
      @BloodyScythe666 ปีที่แล้ว

      I think this video does not apply to junior developers at all, as long as they know, what an array is. you usually look an implementation of a list up, if you need to.

    • @th33xitus
      @th33xitus ปีที่แล้ว +3

      And yet a title like "Prefer Arrays Over Lists. Seriously..." is pure clickbait and misleading if the content of the video then just says that one should learn the inner workings of Lists before using them. Probably every developer agrees with that approach anyways. But especially BECAUSE people likely assume that Nelson is a developer with a lot of experience, they also expected a more serious reason for that statement he used for the title and expected a downside of using Lists. But there is none, at least he didn't mentioned one. Which makes the title even more clickbait and misleading. He stated himself that lists are one of the most used datatypes in Java, so yet again another reason why the title is clickbait/misleading. And that's why its more than appropriate to downvote this video into oblivion. The overall quality of this one particular video is way below his usual content quality.

    • @BloodyScythe666
      @BloodyScythe666 ปีที่แล้ว

      @@th33xitus yes very understandable. viewers should let the creator know what they don't like about a video.

  • @aayush5474
    @aayush5474 ปีที่แล้ว

    which ide are you using?

  • @GJ22
    @GJ22 ปีที่แล้ว

    Your video makes perfect sense to me, i started with ArrayList with the uni study book i had then moved onto arrays but they never had anything in the study material about this.

    • @BloodyScythe666
      @BloodyScythe666 ปีที่แล้ว +1

      that sounds very weird, since arrays are some of the more basic types you can have and you should learn what arrays are in the first year.

    • @GJ22
      @GJ22 ปีที่แล้ว +1

      @@BloodyScythe666 open uni for ya, I had to use bluej too. I very quickly switched to eclipse when the module finished

  • @omerfarukcengiz
    @omerfarukcengiz ปีที่แล้ว

    Someone is having fun while editing :)) Thanks for the amazing content as always!!

  • @pedrocosta9986
    @pedrocosta9986 ปีที่แล้ว

    I agree as a form of learning. Actually knowing about data structures is what differentiates many professionals when selecting an employee these days. But from the moment we understand how it works, let's use what is already created and tested.

  • @simonebriffa9480
    @simonebriffa9480 ปีที่แล้ว

    Hi! This is a topic really close to me and I want to ask you a question.
    To be honest, I never get inside the ArrayList class to see how method are implemented (or maybe yes but not in deep). I am Java dev but first language I saw in my life at university was C.
    In C, the main difference between arrays and lists is that arrays have fixed size and each slot has a contiguous memory address to the next one; lists use a structure using pointers, they can grow dynamically and due of pointers they not have contiguouses memory address (this makes the search operation less efficient that in arrays).
    Now I see from this video that Java uses arrays inside lists... so ? There is not a real difference in Java between arrays and lists ? Are lists just a shortcut ?

  • @PbPomper
    @PbPomper ปีที่แล้ว

    Damn, this guy discovered the effects button XD J.J. Abrahms eat your heart out!

  • @Namnguyen-xe6ej
    @Namnguyen-xe6ej 11 หลายเดือนก่อน

    I think the topic's name may be misleading and some disagree with you. It always right to start with basics to learn something new, but use existing libraries and frameworks that make solving real-world problems much more efficient and less complicated. Inheriting inventions from our predecessors helps us to develop and create more value.
    That was my thought.
    An awesome video and very clear, pls continues

  • @artur-rdc
    @artur-rdc ปีที่แล้ว +2

    I also have less than 2 years of experience with java, but I have studied data structures with other languages, so I'll stick with lists.

  • @I_EAF_19882
    @I_EAF_19882 ปีที่แล้ว +1

    I really appreciate your videos. Could you mix the sound effects a bit lower? They’re pretty loud compared to your voice. The graphics are nice!

  • @tech-talks-with-shakeel0346
    @tech-talks-with-shakeel0346 7 หลายเดือนก่อน

    What about arrays for enterprise applications where we deal a million records objects??
    In this case arrays or list?? Can someone explain

  • @bli2008
    @bli2008 ปีที่แล้ว

    why should I fallback to arrays? any operations on the array, I have to reinvent the wheel again. When I want to optimize, I optimize somewhere else. How about concurrent list? how to use it in parallel stream?
    You give wrong advice here to newbies.

  • @codertravel99
    @codertravel99 ปีที่แล้ว +1

    Hey hi Nelson,
    I have one request pls make a complete session on spring cloud function so work with serverless programming like working with aws services and daily work like perform crud operation and if possible then working with video , image file upload and download pls it's my humble request ❤️❤️❤️

  • @bazar9000
    @bazar9000 ปีที่แล้ว

    Its ok to dive into libraries api used methods implmentations just to get a quick understanding but it becomes tirelessly when you are using several libraries in your application. If there is a library and a method that can ease your development life you should just use it without deep diving into it. Nonetheless great video!

  • @sonydedz
    @sonydedz ปีที่แล้ว

    Hi, i would like to see a tutorial on how to create a video call and chat functions using Java, Spring Boot and ReactJS. Would be much appreciated.

  • @carlosredfield
    @carlosredfield ปีที่แล้ว

    so is bad practice using a cointains inside a loop? casuse is a loop insted of another loop

  • @crimsonx_
    @crimsonx_ ปีที่แล้ว

    Mostly, I also use arraylist.. my senior said exactly what you've said 2 yrs ago..

  • @omarhadidi1067
    @omarhadidi1067 ปีที่แล้ว

    وعليكم السلام ورحمة الله وبركاته ❤❤❤
    I learned Postgresql From you. It was a really simple tutorial and covered many many things. Really thank you ❤

  • @andresivan321
    @andresivan321 ปีที่แล้ว

    Thank you so much excelent video! btw what plugins are you using to have those icons?

  • @sacmaliyoruz
    @sacmaliyoruz ปีที่แล้ว

    we need a playlist that complete course includes spring boot and react

  • @friedec3622
    @friedec3622 ปีที่แล้ว

    I'm graduated from uni, so basically I'm no longer beginner?
    I don't see any advantage using array over list, unless you're absolutely sure you just need to store data.

  • @isaacwhiz
    @isaacwhiz ปีที่แล้ว

    Obviously one should (must) learn data structures to become a good programmer and to have the knowledge of what happens under the hood then with experience, later you can shift to usage of Lists. Thanks.

  • @Namelessssssssssssssss
    @Namelessssssssssssssss 9 หลายเดือนก่อน

    No One explains better than you this concepts on the tube.

  • @saschaAi
    @saschaAi ปีที่แล้ว +1

    Assalamualaikum, great video amigos !

  • @atharpanahi3563
    @atharpanahi3563 ปีที่แล้ว +1

    I think you mentioned a good point that we should first understand how things work, but the title of the video is not good.

  • @brandonrussell734
    @brandonrussell734 ปีที่แล้ว

    Is it an intellij theme or is it other IDE you are using?

  • @imdadabro4118
    @imdadabro4118 ปีที่แล้ว

    Walaikum Assalam Warahmatullhe brother amigos you are 100% right.

  • @adigunolamide3230
    @adigunolamide3230 ปีที่แล้ว

    This is why when I solve coding problems in codewars I dont use built in Java data structures.

  • @arunyton
    @arunyton ปีที่แล้ว +1

    Need to cut down on the animation by half. Use it just at points that you want to highlight. Otherwise it's more of a distraction.

  • @RuslanSlobodian
    @RuslanSlobodian ปีที่แล้ว

    Hi, I agree with you. But at 8 second - ArrayLists vs Lists, not Arrays vs Lists

  • @ARAEGY
    @ARAEGY ปีที่แล้ว

    Akhi, when I first saw your face I said to myself "this man is probably a Muslim", then I opened the video and heard you saying "Assalamu Alaykum" 😃.
    May Allah bless you
    love you for the sake of Allah
    I'm your brother, Mohamed, from Egypt.

  • @paulsnehasish5830
    @paulsnehasish5830 ปีที่แล้ว +2

    you can use ANYTHING that helps you get your job done :D

  • @btxf
    @btxf ปีที่แล้ว

    I mean I get the idea of inducing Java beginners to get familiar with data structures. But this is like saying that you should prefer JDBC instead of JPA for basic database operations.

  • @devopsjockey
    @devopsjockey ปีที่แล้ว

    I found that following your channel is more worth

  • @soniablanche5672
    @soniablanche5672 ปีที่แล้ว

    Wait... so the implementation creates a new array with size+1 every time you add ? I thought the optimal solution was to double the size every time it reaches maximum capacity.

    • @abarakus722
      @abarakus722 ปีที่แล้ว

      You're right. It creates new array only if the size of list reaches current capacity. But capacity is not growing twice, only half.

  • @gaben-agent
    @gaben-agent ปีที่แล้ว

    You must learn arrays and you must learn lists. But there is no use of slowing down your learning process by using arrays instead of lists. Just explore the internals of ArrayList.

  • @vbrao
    @vbrao ปีที่แล้ว

    any python videos for covering the internals

  • @igorkolesnikov3700
    @igorkolesnikov3700 ปีที่แล้ว

    Bro just discovered that ArrayList is based on array :)
    Jokes apart - it's extremely important to know that, because the chance they will ask you about lists on interview is very high

  • @RamGorre
    @RamGorre 10 หลายเดือนก่อน

    Not in agreement. Depending on the operations, you pick which one to use. If you know the max limit and if your operations are just traverse, add and remove (with no issues even if you remove somewhere in the middle) then you can prefer object array. Lists are more efficient and convenient for many operations.

  • @budgeter4807
    @budgeter4807 ปีที่แล้ว

    Can we reduce the effects please, feels like an overdo

  • @gleitonfranco1260
    @gleitonfranco1260 11 หลายเดือนก่อน

    I´d like to think that beneath the surface of ArrayList there was an entirely new data structure =\

  • @rimeshsapkota7335
    @rimeshsapkota7335 ปีที่แล้ว +3

    Provide me intellij liscence

  • @jondevlin4754
    @jondevlin4754 10 หลายเดือนก่อน

    Wow … used pure C to teach gifted grade 11 and 12 Programming classes for last 25 years…just changed schools and now I will be using Java … the way they teach coding using Java seems like an attempt to take the logic out of coding … yes I know OOP makes writing and maintaining larger programs easier but how many coders … like you are saying new coders should be getting some experience creating algorithms to solve problems rather than hunting for methods to do everything for them … say you want to delete all occurrences of a given character from a string … in C you could shift all chars one left every time you encounter the char to be deleted … but this solution is O(n^2) …there is an O(n) solution … give students a chance to solve this type of problem when learning to code!

  • @Md_sadiq_Md
    @Md_sadiq_Md ปีที่แล้ว +1

    Walekum assalam from India

  • @govindgupta290
    @govindgupta290 ปีที่แล้ว +1

    Bro if we start implementing each and every method the code can become too complex and huge. These inbuilt methods are provided for our comfort

    • @akaCRock
      @akaCRock ปีที่แล้ว +1

      its not about not using them, its about not using them until you understand how datastructures work, especially as a beginner.

  • @smarttrupti2007
    @smarttrupti2007 ปีที่แล้ว

    True for beginners.

  • @DineSpack
    @DineSpack ปีที่แล้ว

    This video feels like a fever dream

  • @rodrigovaccari7547
    @rodrigovaccari7547 ปีที่แล้ว +1

    All the visual and sound effects for zoomers degrade the quality. It's not a tiktok short. And sustained attention is a required skill for developers. The effects dont help retaining attention.

  • @angelleonardnamaycabanilla2831
    @angelleonardnamaycabanilla2831 ปีที่แล้ว

    Amigoscode please use "pista de audio" in spanish ❤

  • @channelforcomments6657
    @channelforcomments6657 ปีที่แล้ว

    "Shift + Esc" to close the "Structure"

  • @DevlogBill
    @DevlogBill ปีที่แล้ว

    Wow, I noticed Java has so many of the same built in methods Kotlin has but without all the boiler plating. I don't know if you know Kotlin? But I am guessing if you learn Kotlin well, you'll have a stronger understanding in Java and maybe be able to learn Java even quicker later on after you master Kotlin? I see so many similarities between the two programming languages.

    • @tyler8995
      @tyler8995 ปีที่แล้ว

      Kotlin is built off of Java, so that logic would actually go the other way. Better knowledge of Java would help you more with Kotlin

    • @DevlogBill
      @DevlogBill ปีที่แล้ว

      @@tyler8995 Thanks I maybe I should re-think it and start off with Java and later learn Kotlin? I just started with Kotlin about 8 days ago.

    • @tyler8995
      @tyler8995 ปีที่แล้ว

      @@DevlogBill I think you're good learning Kotlin first. While it builds on top of Java, you don't need an in-depth knowledge of Java to use it. Rather, it would be good to go back later after your comfortable to see how Java handles things such as variables. For example, where Kotlin uses var and val, Java requires that you specifically set each data type (String, int, boolean).

    • @DevlogBill
      @DevlogBill ปีที่แล้ว +1

      @@tyler8995 Thanks, I never used a strongly typed programming language before, Kotlin is my first. This is my second programming language I came from JavaScript. There is a different way in thinking with Kotlin. I was becoming over whelmed with JavaScript and the constant changes with the libraries and frameworks.

  • @gaiedmahdi8791
    @gaiedmahdi8791 หลายเดือนก่อน

    the audio effects are so annoying
    but good content

  • @Fri3ndsMr.X
    @Fri3ndsMr.X ปีที่แล้ว

    I like the effect of this video

  • @slavaM77
    @slavaM77 ปีที่แล้ว +4

    Too many effects. Very annoying while watching videos. Please don't do that again. Good luck! )))

  • @smanqele
    @smanqele ปีที่แล้ว

    Try writing your own array logic in a real Sprint and see the fire you'll get in your reviews. Learning the underlying structures is still fine tho

  • @user-wt1hc4hm3t
    @user-wt1hc4hm3t ปีที่แล้ว

    Content TOP!

  • @josephkalema1973
    @josephkalema1973 11 หลายเดือนก่อน

    Thanks for the advice but not every time an ArrayList needs to grow because it has a DEFAULT_CAPACITY of 10 elements :) and a load factor of 0.75f

  • @kalamataway
    @kalamataway ปีที่แล้ว

    subtitles was a nice feature in this video. Special effects and sounds made the video kind of videos for babies. Also the title was more like a clickbait

  • @wardibald
    @wardibald ปีที่แล้ว +2

    Try to limit the use of add and remove from Lists, unless they stay local, like in unit tests. Stream immutable Collections (or Arrays!) to new immutable Collections as much as possible.

    • @leandro-ds2vn
      @leandro-ds2vn ปีที่แล้ว +1

      Why?

    • @bli2008
      @bli2008 ปีที่แล้ว +1

      once you start thinking functional programming, you see everything as a collection where you perform an action.
      why is this better? you concentrate more on the real problem then on the small (almost not relevant details). that's why use library (3rd party jar files) instead solving those problem yourself

    • @wardibald
      @wardibald ปีที่แล้ว +1

      @@leandro-ds2vn Because that's how modern streaming works. Just like keeping regular Objects immutable, think the same way for Collections. Anyone can always make a copy constructor to get local mutable contents from it, and streaming made most of that even unnecessary, as one can always collect to a new Collection.
      I've seen many bugs happen because other programmers do mutable operations on Collections because they think it suits their immediate needs, failing to realize the contents will be needed as-is later on. Such things often even pass unit tests as the immediate functionality indeed functions as expected.
      This is why recent Java versions provided us with the record, the Collectors.toList, and the List.of functionality.
      This isn't a set in stone paradigm; by all means pass a mutable Collection if it suits your needs, but do it judiciously.

  • @teputube
    @teputube 11 หลายเดือนก่อน

    Title seems misleading, you are actually proposing a learning method for beginners....not suggesting a preference for arrays vs lists in general.

  • @Squish888
    @Squish888 ปีที่แล้ว

    I guess this is why we’re forced to use C in the first few years of comp sci.

  • @eranjeneabeysinghe8100
    @eranjeneabeysinghe8100 ปีที่แล้ว +1

    No you cannot 'prefer' arrays over 'arraylists'.. Abstractions are there for a reason. With abstractions we could visualize higher order functions much more easily. There could be small performance bottlenecks with ArrayList implementations but they will be next to unnoticeable with today's fast cloud compute instances. Therefore putting effort to optimize that level of detail with primitive datastructures is a waste of time and effort. If you think along this line, using SpringBoot will also be a waste due to its internal complexities.

  • @diegoramos27
    @diegoramos27 ปีที่แล้ว

    You can’t use “List” because they are interfaces

  • @giorgosterzis3331
    @giorgosterzis3331 ปีที่แล้ว +15

    Hey Nelson, this video is one of your worst videos

    • @salehahmed8936
      @salehahmed8936 ปีที่แล้ว +2

      Its for Beginners but anyway explain why

    • @giorgosterzis3331
      @giorgosterzis3331 ปีที่แล้ว +8

      @@salehahmed8936 It's a clickbait title, most of the times you should use lists instead of arrays. Also, too many unnecessary sound and video effects.

    • @salehahmed8936
      @salehahmed8936 ปีที่แล้ว

      @@giorgosterzis3331 video effects aside you give me junior dev vibes

    • @AlFredo-sx2yy
      @AlFredo-sx2yy ปีที่แล้ว

      @@giorgosterzis3331 i agree that there's tons of unnecessary editing effects, but why in the actual fuck would you use a list before an array in most situations? If anything, linear cases are far more common so what would the point of having a list be in most situations? go use some C, hippie. Once you cleanse your mind of perverted List thoughts you can come back and stop fucking around.

    • @maxnix9256
      @maxnix9256 ปีที่แล้ว +1

      @@salehahmed8936 the video is bad, because it is missleading. You use lists all the time and it is very important to get familiar with them and Collections. I also think it is not neccessary to know how exactly it is working, when you are a junor dev. Get down with the basics (how to use stuff rather than how it works) and then dig deeper in the code. With more experience you will have more to refelct and pay more attention on details like the grow function.
      Even though I think it is good to teach people to dig deeper and check out the functions you are using, a much better approch would have been to do exactly that and use a honest title. Show some examples and what to look for. Maybe even add a showcase where you talk about the runtime or memory usage.

  • @IO_389
    @IO_389 ปีที่แล้ว

    Hi Nelson.
    The video is great as usual but, would you please lower the volume of the effects (Or even better, don't use it)?
    It was really annoying :(

  • @indunayak9882
    @indunayak9882 ปีที่แล้ว +1

    Awesome explanation and helpful information

  • @erickjhormanromero6905
    @erickjhormanromero6905 ปีที่แล้ว

    It's an amazing videos because it's really important to know how the things work in order to know what data structure or anything else match your use case.
    For example I need to know how stack or deque work in order to choose the best data structure for certain requirement.
    Yes, we should learn arrays before arraylist and even arrays makes part of the fist data structure that came with java 1.0.
    I thinks it's the same process with spring boot and spring framework in a certain point , I mean you can learn spring boot without spring framework but i'm so sure you must read somenthing about the core when you face any issue.

  • @caffeinejavacode1475
    @caffeinejavacode1475 ปีที่แล้ว +14

    clickbait video without value

    • @mohammadtoficmohammad3594
      @mohammadtoficmohammad3594 ปีที่แล้ว +3

      He mentioned from the start its ment for beginners to learn datasturcture, and even if clickbait what the problem he is depending on himself to make money independent from enslaving software companies

    • @caffeinejavacode1475
      @caffeinejavacode1475 ปีที่แล้ว

      @@mohammadtoficmohammad3594 it's like I have 24 hours course where I explaine what is value in Java

    • @caffeinejavacode1475
      @caffeinejavacode1475 ปีที่แล้ว

      @@mohammadtoficmohammad3594 Moreover, courses that I bough doesn't cost $10 because of lack of practise and people have been kpeople have been hooked

    • @salehahmed8936
      @salehahmed8936 ปีที่แล้ว

      @@caffeinejavacode1475 So you're basically a hater trying to steal viewers to your little channel, cute

    • @mohammadtoficmohammad3594
      @mohammadtoficmohammad3594 ปีที่แล้ว

      ​@@caffeinejavacode1475 If its up to me i will take amigocode course instead of yours

  • @Stl71
    @Stl71 6 หลายเดือนก่อน

    This is the reason Arrays are a little faster than ArrayLists.

  • @kokojolo
    @kokojolo ปีที่แล้ว

    Hey
    i wanna see the exact same video about every Collection and Map

  • @rbelatamas
    @rbelatamas ปีที่แล้ว +1

    the effects are too much, too loud 😂

  • @Mirage2020
    @Mirage2020 6 หลายเดือนก่อน

    Per aspera ad Astra

  • @AlFredo-sx2yy
    @AlFredo-sx2yy ปีที่แล้ว +2

    vine boom vine boom vine boom fart huh metal pipe falling vine boom Danger Alarm Meme Sound Effect taco bell bababooey Android notification meme sound effect vine boom vine boom vine boom AMOGUS goofy aaaaaaahhh snort vine boom fart huh fart metal pipe falling metal pipe falling fart fart vine boom Fart Meme Sound vine boom vine boom vine boom AMOGUS goofy aahh sound effect AMOGUS he's thicc boye dayumn son wow vine boom vine boom

  • @kamurashev
    @kamurashev ปีที่แล้ว

    (When learning)

  • @BloodyScythe666
    @BloodyScythe666 ปีที่แล้ว

    I think this is absolutely useless. although I knew that in java/c# array size is immutable, I didn't even care for three years that lists use arrays internally, because it doesn't matter 99.9% of the time. I'd say, if you're interested in it or need to know, look it up.

  • @Lallushe
    @Lallushe ปีที่แล้ว +1

    Did you hire a new editor or something? The effects are unnecessary and distracting.

  • @Sucheit
    @Sucheit ปีที่แล้ว +1

    nothing new lol

  • @michal234486
    @michal234486 ปีที่แล้ว

    With all respect - instead of publishing this content you could focus on finishing the paid course on microservices, where still plenty of videos are missing

  • @mtc539
    @mtc539 ปีที่แล้ว

    These edits and transitions are a bit much. Totally distracting.

  • @lmax0001
    @lmax0001 ปีที่แล้ว

    If use Arrays instead of of some type of collection(list)your Code reviews will get destroyed. This is not a good video.

  • @TheKodeToad
    @TheKodeToad ปีที่แล้ว

    The effects are distracting and create unnecessary suspense... I found them quite funny but I don't think it's appropriate lol

  • @anchalavinash66
    @anchalavinash66 ปีที่แล้ว

    Too much of editing

  • @user-fu2kg4ug2q
    @user-fu2kg4ug2q 9 หลายเดือนก่อน

    Is there a point in this video besides wasting our time?