r/learnprogramming • u/FantasticFourSkin • Jan 31 '14
Can someone ELI5 linked lists?
Part of my assignment for my online class involves linked lists and we don't really go over them. I looked around online and I'm slightly confused by all the explainations since I'm fairly new to programming. Can someone dumb it down for me?
74
Upvotes
View all comments
Show parent comment
-2
u/Samus_ Feb 01 '14
It's not that you can't, you sure can as an exercise but not as a real application because in that context it's unnecesary.
real linked lists exist because they're useful but they're only so in a place without a higher abstraction.
the reason I make this point is because for someone who's learning it's helpful to understand the "why" and not just the "how" of things, if I were a student being taught linked lists in Java the first question I would have is "why the fuck are we doing this?" and the answer would be "no reason, in Java is pointless" but no professor would ever tell you that.