Generally, the same situation exists in other fields of software development.
For example mobile applications. 2 years ago Apple introduced a new programming language Swift. The iOS operating system releases a new version almost every year with new APIs and features.
This is great for the software industry. But is a big load for us, software developers.
Unfortunately, human intellectual possibilities are impressive… but limited. You cannot (and should not) know all the new frameworks and build tools.
What a software developer can do? The solution is to apply an efficient learning strategy: * put accept on programming fundamentals*.
The programming fundamentals consist of algorithms, data structures, and programming language knowledge.
If you want to be a great software developer, without doubt, you should constantly master trending technologies (like React, Redux, Angular). And in the meantime put the same amount of effort to learn regularly fundamentals like algorithms, data structures, the principles of writing scaling and clean code.
The article is my own thoughts on how to deal with the development complexity. Also, you’ll find an interesting division of developer’s mastery progress. I name these phases upside-down triangle, rectangle and triangle.
An important part of the programming fundamentals are the algorithms. An algorithm is a step-by-step description of operations that should be performed to obtain a result.
The common categories of algorithms that you should know:
- Sorting algorithms: bubble sort, insertion sort, quick sort, etc
- Search algorithms: binary search, breadth-first search, depth-first search, etc
- Shortest path algorithms: Bellman–Ford algorithm, Dijkstra’s algorithm, etc
- Math algorithms: Fibonacci numbers sequence, greatest common divisor, least common multiple, etc
The number of existing algorithms is impressive. And many of these algorithms are at the base of software development and networking.
When it comes to learning algorithms, the first reason I hear is that the developer doesn’t need to know exactly how specific algorithm works. You may think that all existing algorithms are already implemented, tested and included in standard libraries.
This excuse is the wrong approach if you are determined to be a successful software developer. To build complex and top quality applications you must have algorithms knowledge.
Indeed algorithms are implemented in standard libraries and developer doesn’t need manually to write them. But the lack of expertise doesn’t allow the developer to see when a problem is elegantly solved using a specific algorithm.
Libraries with algorithms exist, but the developer simply cannot see the case when they are useful.
Learning algorithms in detail is a valuable experience. Studying and mastering them cultivates an intuition to solve difficult issues.
Powerful intuition is what defines a great software developer. Of course alongside with experience and discipline.
Intuition is a pure gold.
Data structures are an essential aspect too. Learning them teaches how to correctly represent the information in an application.
The correctly chosen data structure has huge benefits. It makes the code that manages data simpler to write and maintain. The operations of data manipulation, storage, query are easier to implement.
The quality code consists of an effective algorithm and a convenient data structure.
For an easier representation lets divide coding abilities into a simplified scheme:
- Fundamentals: everything related to algorithms, data structures, computer science questions, application design principles (SOLID, KISS, DRY, SoC), scalability
- Framework: everything related to frameworks (AngularJS, ReactJS, Cocoa Touch) and platforms (Browser, NodeJS).
The first level of software development mastery is the beginner, which is represented by an upside-down triangle.
Every programmer started at this level, including me.
A beginner developer got really excited by a particular framework, ReactJS for example. He followed some framework tutorials and has a decent level of understanding.
The knowledge of algorithms and data structures is very limited.
When a part of the application may benefit from a well-known algorithm, the developer doesn’t see that and starts inventing the wheel. And the invented wheel is usually low-quality and time waster.
The next level is a proficient developer, represented by a rectangle (I hope to attribute myself to this level!).
The proficient developer can see the situations when certain data structure or algorithm makes the code more productive. But only until a limited level.
For example, an application has a component that searches often in an array with lots of elements. If the array is altered rarely, the developer concludes that it is reasonable to sort the array. And when a search operation is necessary, use the binary search algorithm, which is very efficient in this situation.
At rectangle case, the developer is able to create quality applications, but not the most efficient.
The upper level is an expert developer, which mastered all 3 directions: fundamentals, the language, and framework. He is represented by a triangle with a solid base.
The expert developer is able to see the efficiency of certain algorithms and apply them when necessary. He benefits from choosing correct data structures, making data manipulations simple.
The challenge is to select from available algorithms the most efficient for a concrete situation. It is a process of balancing to obtain the maximum possible performance.
Trending frameworks or even languages will be gone sooner or later. They will be replaced with better tools: an inevitable result of evolution. What you can do is put an accent on fundamentals.
Certainly, the fundamentals are tough to learn. Many algorithms are hard to understand and remember. My suggestion is just to have fun: you may read a complicated algorithm many times. Think of what benefits may bring a specific data structure. Challenge yourself to become better and better.
Despite the fact that fundamentals are difficult, there is a pleasant bonus: it doesn’t change often. Starting the 80’s or even 70’s weren’t created any significant new algorithms or data structures. Learn them once and good, then repeat them from time to time, and you’re good to go.
Big software companies like Google, Apple and Microsoft are serious about algorithms and data structures. An interview at these companies contains many computer science questions, whiteboard coding, balancing trees and so on.
I’ve read many posts that criticize such an approach that companies query the wrong skills. They say that the developer doesn’t deal with sorting algorithms or balancing trees in “real world” programming.
You can beat such arguments easily: I never encountered a programmer that mastered algorithms and data structures, and then claimed it was a waste of time. Moreover mostly claims that these are important.
I personally agree with computer science interview questions. Because the software development industry is moving so fast, the company needs developers that have a solid background.
On one hand, such a developer can efficiently solve complicated problems. On the other hand, he can easily move forward in new languages and frameworks, adapting to a fast-evolving industry.
In the end, it’s a real pleasure to be a professional. If you’re asked: “Please solve this problem […] using Dijkstra’s algorithm”. No problem! Take the chalk, solve easily the problem and impress them how good you are!
There is no shortcut to becoming a master. What makes you better is learning and practicing.
Constantly learn and practice.
- Fundamentals: The Algorithm Design Manual by Steven S. Skiena
- Framework: React: Up & Running by Stoyan Stefanov
After solidifying your ground in those directions, take the next level:
- The quality and readability of your code: Clean code by Robert C. Martin (one of my favorite books)
- The object-oriented design and scalable code: Design Patterns: Elements of Reusable Object-Oriented Software
What is your opinion on software development craftsmanship? Speak up your mind in a comment below!