Prefer Arrays Over Lists. Seriously...

preview_player
Показать описание
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
===========================================

🙊 Here are the goods for all my videos video 🙊

► Recommended Books
===========================================

► Computer and Monitor
===========================================

► Camera Gear
=============================================

► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime

P.S
===========================================

❤️ Thanks for watching
Рекомендации по теме
Комментарии
Автор

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.

Ben-xfix
Автор

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.

bensonification
Автор

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

TheLukasz
Автор

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.

MichaelMarques
Автор

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

APPLAY
Автор

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.

lucasfkam
Автор

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

DarkCebolix
Автор

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

VX
Автор

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

selvisokak
Автор

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 :)

erkin
Автор

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

igoerche
Автор

It’d be appreciative if you tell us about what your take on taking OCJP, the Java certification, is. I personally took OCJP in SE 11 version, and it helped me a lot to understand the basic concepts and syntax like the topic of this video.

ichirot
Автор

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

WARHED
Автор

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

marcinx
Автор

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

omerfarukcengiz
Автор

I agree that junior devs should start with Array before jumping to List. But, given that internal implementation understood, each class has their own use cases, ie if you want to store fixed size collection and not changes, stick with array, if you want to change and add elements don’t use array, list is your friend.

kocesat
Автор

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

shashishekhar----
Автор

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 ?

simonebriffa
Автор

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!

I_EAF_
Автор

What about arrays for enterprise applications where we deal a million records objects??

In this case arrays or list?? Can someone explain

tech-talks-with-shakeel