Simplicity is a great virtue, but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. -- Edsger Wybe Dijkstra
The tech industry is booming today. With the advent of new technologies like AI and blockchain, we are witnessing a new shift in the industry. In my earlier days, when I was authoring simple websites, I used to know in and out how it worked end-to-end. I was able to handle the entire scale of the website easily. After working for software giants, I realized it is impossible to replicate the same stature in the industry. There are several million lines of code written to run simple software. This enormous code base took decades to evolve into the current state, and this code in production drives revenue to the company. More and more lines of code are added every day. There is, however, one crucial thing that I believe everyone is overlooking—the complexity. Computer systems consist of thousands of smaller components, each built on top of the other. There are hundreds of layers of abstractions on the stack. Such abstractions do a great job of providing a platform for developers. However, Hyrum's law allows developers to push the limits of every abstraction and use it in every way possible.
While a few things are truly complex, as they are meant to be foundational stuff in computer science, most of the complexity seems to be a result of the fluidity of the software industry. The industry adapts itself rapidly to the changing needs of the world. Things are changing so fast that it is easy to find new projects based on ever-changing requirements, deliver them, show impact, and grow to senior positions soon. However, this fluidity has been harming the simplicity of software. The code goes through years of churn and adds to the ever-growing technical debt. Engineers who authored the code no longer find motivation in fixing the debt once the software is rolled out to production, and it is proven that it somehow "works." There is usually a strict deadline associated with a new feature, so the engineers are forced to dump code on top of the existing abstraction. The resulting code is so complex, and it is impossible to rationally read through it without opening the blame and checking out the commit history. Such technical debts, when accumulated over thousands of sprint cycles, give birth to a system so complex that there is no single engineer who understands all parts of it.
Usually, people think that tech giants like Google and Microsoft are at an advantage over startups because they already have the system infrastructure in place. With experience, I realized that learning all parts of the infrastructure takes the same effort as building one. This is because the existing infrastructure has so much code churn that it is difficult to maintain it and ensure that it works. Moreover, requirements keep changing. Adding new code to the existing infrastructure only makes the churn worse. Sometimes they change so much that engineers often end up rewriting the whole infrastructure instead of upgrading the existing one. The rewrite starts with simplicity in mind but is often roadblocked by deadlines, which forces the engineers to inherit flaws from the existing infrastructure. As a result, all the complexities are also ported into the new system. That is how the entire software industry is working. Also, just to let you know, only 10% of the work done by engineers at tech giants ends up being useful. 90% of the work (startup/experimental/research) is discarded at some point. These complexities are not limited to the software industry. Even hardware companies face the same. There are hundreds of thousands of different designs of integrated boards, and it is difficult to handle and maintain their complexity. There is no single engineer aware of the entire design (except for some selected principals). Things somehow work when the components interact via interfaces.
Politically, corporations suffer from the age-old problem of fierce peer competition, where every employee is trying to create some visible impact with their product. This is where simplicity often loses the race in the design phase itself. Flexible software can be sold with a vision of higher tangible value in the future, which can often lead to the growth of the organization as a whole. This is where unnecessary complexity also creeps in. I believe that the greatest sin in software engineering is assuming future requirements. On a personal level, I have been a strong advocate of designing for what is required today without thinking about tomorrow. Even the most simple design often ends up with a lot of complex pieces by the time it is productionized. Any interfaces designed for the future are simply deprecation projects for future engineers. Additionally, there are often multiple teams within a company working on a similar product, artificially differentiated by use case. Maintaining two versions of almost the same product is an added cost to the company. However, merging them together can also potentially reduce the flexibility of adaptation. At this point, the decision becomes completely political. The future of the teams depends on the stakeholder's decision, which may be driven by personal motives to maximize jurisdiction of control.
Last but not least, the thing that worries me most is the lack of proper documentation in projects. Documentations are scattered, and there is no single glue that can help you understand all the components in a single shot. The only legal way to learn a system is through experience. That is sad because almost every engineer ends up spending a long time learning and understanding the system before making any meaningful contributions. This is almost always the thing that makes hiring difficult for big tech companies. Engineers are often not interested in onboarding and learning an age-old system when they can use their own skills to rewrite the system within the same time frame. Also, learning the age-old system only improves your domain knowledge and doesn't impart any transferable skills that can be useful to engineers when they switch to another job.
So what is the solution to this problem? Well, I am not into management, so I may not be the best person to answer these questions. A careful decision-making process weighing the pros and cons of all aspects can help with the decision. However, the chief driver in solving the complexity problem will take a long time to come. This may only happen when the software industry as a whole matures enough to pause on rapid advancement in every domain. This is where we may see a slowdown where only the most important components live long. Till then, we would only witness more and more complexity, and most of the staff in a company hired just to understand the complexity until the time it becomes so unmanageable that the company's fortune won't be able to support it, leading to a sharp decline.
Comments
Post a Comment
Please keep your comment respectful!