4 ms·
As the parent comment said. Even if you never need to do it. Being quire familiar with these topics can help you select the correct solution. Sometimes you don
by jpc0 2y ago
As the parent comment said. Even if you never need to do it. Being quire familiar with these topics can help you select the correct solution.
Sometimes you don't need a binary tree, you just need a O(n) linear search but someone who has never played with the actual low level datastructures has no idea when that matters, so in their mind a hashmap makes a ton of sense because searching is between O(1) and O(log n) depending on implementation. But in many cases a flat array will be significantly more performant and is a simpler implementation but in their mind a hashmap is the better solution.
Now it probably doesn't matter, but when it matters it's better to know the the answer.
That for me is the big distinction between software engineering and software development.
Plumbers don't need to be engineers, but there are times when you really need an engineer to design the plumbing system.
Strive to be the engineer, purely because you will enjoy the craft a lot more, and people recognise drive and ambition.
It doesn't matter if you are in the right place at the right time if you don't have the skills to back it up.
Granted if all you want to be is a plumber that pipes APIs together and lives a different life, by all means I encourage you to enjoy life. But don't make students believe thats all their is to the industry.