Contents:

Free Python Course ➞ Mini-course for beginners and experienced coders. 4 awesome portfolio projects, live chat with the speaker. Click and find out what you can learn in the course.
Learn MoreHave you ever noticed how the layout on YouTube is unstable? Or how VKontakte and Facebook sometimes lag? If you're a long-time Apple fan, you probably remember the difficulties associated with iOS 11. These performance and content display issues can significantly degrade the user experience. Understanding the causes of such glitches can help developers create more stable and efficient platforms.
Stereotypical jokes often claim that mistakes are made only by newbies at low-budget startups. However, in practice, even experienced programmers from Silicon Valley are not immune to screw-ups. The main reason for this phenomenon is the human factor. Mistakes can happen to anyone, regardless of skill level or experience. Experienced mid- and high-level developers shared their significant mistakes and offered tips for reducing the number of errors in code. These recommendations will help improve software quality and increase development efficiency. Adopting best practices such as regular code reviews, testing, and using static analysis tools can significantly reduce the likelihood of failures. Experience shows that attention to detail and continuous self-education play a key role in reducing the number of errors in the programming process.
Didn't take into account backward compatibility and released it for production too early

Konstantin is a Middle Java developer working at one of Russia's leading banks. His experience in software development and deep knowledge of Java allow him to effectively solve complex problems and implement innovative solutions. Konstantin is actively involved in the design and development of banking applications, which helps improve customer experience and enhance service quality. He applies modern technologies and development methodologies in his work, making him an indispensable member of the team. Konstantin strives for continuous professional development and mastering new tools, which allows him to stay at the forefront of the rapidly changing world of financial technology.
We are currently developing a payment transaction processing system. One of the tasks required changing the way information about the transaction amount is stored, including both the amount and the currency. I created a new Amount data type and implemented it in all necessary parts of the system. The implementation process is going well.
I updated one of the objects by adding a new type and removing deprecated fields that were used to pass data between modules. Testing was successful, but all modules were installed simultaneously in a lab environment, which does not reflect the real situation. Issues arose in the production environment, and system functionality was disrupted.
Note: updated clients now send objects in a new format that includes the amount field and excludes the old fields. At the same time, requests were processed by legacy services that were unaware of the new field, which resulted in the inability to deserialize the received objects. During the update rollback, several hundred transactions were lost on this service.
It is important to remember the need for backward compatibility and emulate production conditions during testing. This will help ensure the reliability and stability of your product in real-world conditions. Testing in conditions as close to production as possible allows you to identify potential issues early and prevent them from occurring in the future. Effective backward compatibility testing ensures that new changes do not break existing functionality. Therefore, adhering to these principles is the key to successful software development and maintenance.
Ran out of coffee — looked through old code

Ivan Ponomarev is the team lead and Senior JS developer for the GoLogin anti-detection browser. He actively contributes to the development and optimization of the product's functionality, ensuring a high level of security and anonymity for users. In his work, Ivan uses advanced JavaScript technologies, which improves the browser's performance and expands its capabilities. Thanks to his experience and leadership, the GoLogin team successfully addresses the challenges of protecting personal information and privacy online.
The character's first comment concerns the clinic.
The character's second comment: Seriously, this is a manifestation of banal carelessness. In my haste to add new code, I didn't notice that a small section of the old code remained. This is a typical error that can lead to undesirable consequences in the program's operation. It is important to pay attention to detail and test changes to avoid such situations.
As a result of generating a configuration object for browser launch, a situation arose where fonts were added and then immediately removed. Even an experienced programmer can make such a mistake. Problems often arise in complex tasks and under high stress, such as when deadlines are tight or other tasks have piled up. The error turned out to be so absurd that my brain refused to accept its existence. So, at first, I persistently reassured everyone that everything was fine.
The moral: mistakes due to inattention or lack of concentration can happen even to experienced professionals. However, this is no reason to relax and neglect your work. On the contrary, you need to increase your attentiveness, clearly organize your work processes, and discipline yourself when it comes to sleep and rest. Only then can you significantly reduce the number of thoughtless mistakes and improve the quality of your work.
Forgot that strings are compared lexicographically.

Ismail Khamitov holds the position of Product Analyst (Middle). Ismail is a data scientist at Yandex. In his role, he is responsible for data analysis, which helps optimize products and improve user experience. Ismail uses modern tools and methods to extract valuable insights from large volumes of data. His expertise in analytics helps the team develop more effective strategies and make informed decisions aimed at the growth and development of Yandex products.
I once encountered a serious error when I was asked, "How did you limit the version in this report?" During data processing, I used the condition version >= «12.0» to filter records with a specific version. However, this string comparison is lexicographic, which leads to incorrect results: for example, version 2.0 is higher than 12.0. To avoid such errors, it's important to use formats that are correctly handled during comparisons, such as ISO 8601 dates. These formats allow for accurate and unbiased lexicographic comparisons, which is especially important when working with software versions.
Recently, while discussing the mid-year report with the product manager, we encountered a problem: some data was incorrect. This meant we could proudly present significant growth in the tens of percents that actually didn't exist, or we could miss real growth in areas where it was actually present. The mistake was that I used an outdated chart and data that covered not only Russia but also the global market. Such errors arise whenever I overestimate my knowledge and experience in this area. It's important to remember that thorough data verification and attention to detail are key to achieving accurate and reliable reporting.
Errors naturally evoke fear, and the desire to minimize them is entirely justified. However, as Yandex Managing Director Tigran Khudaverdyan notes, developing successful products requires the ability to cope with challenges and sometimes sacrifice sleep. Industry leaders aren't afraid of mistakes and even make them regularly. This allows them to find solutions to problems that previously seemed unsolvable. Every mistake and every experience with product failures becomes a stepping stone to more effective solutions. Therefore, it's important not only to strive for perfection but also to embrace mistakes as part of the innovation process.
The moral: don't be afraid of mistakes, but be wary of unsolved problems. Approach each project with full responsibility and treat it as your own business.
It's important to maintain the feeling that you're still a beginner and are developing as a specialist. Overconfidence can lead to mistakes and a narrow perspective. A constant desire for learning and self-improvement will help avoid stagnation and improve your professional skills. Openness to new knowledge and experiences contributes to a deeper understanding of your field and expands horizons.
I didn't write the best code.


Egor Volokitin holds the position of CTO at the GoLogin anti-detect browser. In his role, he is responsible for the development and implementation of innovative technologies that ensure a high level of anonymity and security for users online. Under his leadership, the GoLogin team is actively working to improve the browser's functionality and performance, making it a leader in the anti-detection technology market. Egor actively shares his experience and knowledge in the field of personal data protection, helping to popularize safe online browsing.
The first code version has quadratic complexity due to the use of the spread operator (ellipsis). The reduce function already iterates over the array, while the spread operator in this case simply copies it. It sequentially iterates over the original array and adds each of its elements to the current array. Thus, the overall complexity of the algorithm is O(n). This leads to an increase in execution time, which is undesirable for optimizing the code's performance. Therefore, it is worth considering alternative methods that can reduce the complexity and improve efficiency.
The Reduce function also processes the original array sequentially, and its time complexity is O(n). Using the spread operator leads to repeated iteration of the array, which means that at each iteration of the outer loop, a full iteration cycle is performed on the inner array. This can negatively affect performance, especially when working with large amounts of data. Optimizing this operation can significantly improve the efficiency of the code and reduce the execution time.
When processing an array of length 10 elements, the first code version is executed 100 times. At first glance, this seems like an insignificant number, but if the array grows to 1000 elements, the number of iterations increases to 1 million. This already represents a significant load on the system. Optimizing the code and reducing the number of iterations can significantly improve performance and reduce the resource intensity of operations with large arrays.
The second version of the code is rarely created right away, as less attention is paid to application performance these days. I don't consider this a mistake, so I marked it as both bad and good code. Why didn't I mark it as good? I simply didn't realize it could be improved.
The moral: regularly improve your skills and strive to choose the optimal code for solving problems. This affects not only the readability of the code but also the overall performance of the application. Don't forget the importance of your application's performance, as it can significantly impact user experience and productivity.
Should You Be Afraid of Mistakes?
Experienced programmers openly discuss their mistakes without shame and are willing to share their experiences and advice. If you aspire to achieve the same level of success as the heroes of this collection, don't ignore your failures. Learn from them, analyze them, and use the lessons learned to grow. Admitting your mistakes is an important step toward professional development and improving your programming skills.

