In the world of software development, when it comes to organizing data, there are many tools that could do the job. The trick is to know which tool is the right one to use for our given purpose.
As a reminder: regardless of which language we start coding in, one of the first things that we encounter are data structures
, which we should be familiar with by now.
Data structures are objects that use different ways to structure and "shape" our data. They are usually built up of primitive
s like variables
, arrays
, hashes
, or objects
. However, these are just the tip of the iceberg when it comes to the possibilities. There are many more which may start to sound complicated as you learn more about their properties.
One of the data structures that sounds complicated at first is that of a linked list
.
The more you hear about linked lists
, the more intimidating they can get. Linked lists are actually super simple, but they seem to have this reputation of being complex. The more you learn about them, the more you realize it isn't necessarily the structure of linked lists that's confusing. Rather, it takes a while to fully grok the logic that goes into deciding when to use them and how to use them.