As computer programmers we write code to instruct computers to process, store, edit and retrieve data. Data Structure is a method of organizing data so that the information can be stored and regained efficiently.
Every computer program needs to store data in various data structures for processing. Modern software programming languages and frameworks are highly sophisticated that, once common, data structure programming is mostly abstracted behind the scenes to make programmers life easier. Reduced code complexity lessens the chances of bugs in it!
Nonetheless, there are instances when we programmers can write more elegant programs and APIs if we know the fundamentals of algorithms and data structures. …
A couple of days ago, I was watching my friend who just began studying computer science and programming writing a simple Python code.
He was instructed by his mentor to start writing failing test cases first and make them pass subsequently by implementing just that feature.
He continued doing this approach with great enthusiasm until eventually, he implemented all the required use cases with an astonishing 100% test coverage! For him, it was just as easy as wiring the question first and then answering it in the next step.
He never programmed or never knew any other approach to programming. …
He probably would go fainted to see Node Package Manager (NPM) and NPM registry! …