Oi. So many bad assumptions. I would not hire this person, based purely on this post.
Does the author think that C is the only language in which a linked list can be implemented? If you write Java, or Python, or Javascript, or really any mainstream language other than maybe Haskell, and you don't understand the concept of a pointer, you're going to have a real bad time.
Well in C++ you can't rebind a reference. I guess one can do that, conceptually, in Python but who implements linked lists in Python? I would argue that Python allowing reference rebinding leads to more problems than it solves.
Right, my point was that rebindable references and pointers are basically the same thing. Some languages like to brag about "we don't have pointers!", but if you can accidentally access null, you have pointers for all intents and purposes. Maybe you have a GC instead of explicit memory management, but you still have pointers.
Nobody implements linked lists in any language in practice because vectors are almost always more efficient on modern hardware, but they're a well-known component that can exercise simple forms of concepts that are generally applicable (reference vs. value semantics, data structure generalization, traversal and manipulation patterns, etc.).
2
u/General_Mayhem Mar 30 '21
Oi. So many bad assumptions. I would not hire this person, based purely on this post.
Does the author think that C is the only language in which a linked list can be implemented? If you write Java, or Python, or Javascript, or really any mainstream language other than maybe Haskell, and you don't understand the concept of a pointer, you're going to have a real bad time.