Why You Should Sometimes Use Global Variables in Your Codebase

Why You Should Sometimes Use Global Variables in Your Codebase

The Global Variable Conundrum In the world of software development, global variables are often treated like the proverbial elephant in the room – everyone knows they’re there, but nobody wants to talk about them. The general consensus is that global variables are bad, and for good reason. However, like any tool, they have their place and can be incredibly useful when used judiciously. The Case Against Global Variables Before we dive into why global variables might be useful, let’s quickly address the elephant....

February 14, 2025 · 4 min · 696 words · Maxim Zhirnov
Почему вам иногда следует использовать глобальные переменные в вашей кодовой базе

Почему вам иногда следует использовать глобальные переменные в вашей кодовой базе

Загадка глобальных переменных В мире разработки программного обеспечения глобальные переменные часто воспринимаются как пресловутый слон в комнате — все знают, что они есть, но никто не хочет о них говорить. Общее мнение таково, что глобальные переменные — это плохо, и на то есть веские причины. Однако, как и любой инструмент, они могут найти своё применение и быть невероятно полезными при разумном использовании. Аргументы против глобальных переменных Прежде чем мы углубимся в вопрос о том, почему глобальные переменные могут быть полезны, давайте быстро обратимся к «слону»....

February 14, 2025 · 4 min · 648 words · Maxim Zhirnov
Why Your Code Isn't as Testable as You Think It Is

Why Your Code Isn't as Testable as You Think It Is

The Testability Conundrum In the world of software development, testability is often the unsung hero. It’s the difference between a smooth, efficient development process and a tangled web of debugging nightmares. Yet, despite its importance, many developers underestimate the complexity of making their code truly testable. Here’s why your code might not be as testable as you think, and what you can do to change that. The Factors of Testability Testability is not just about writing tests; it’s about designing your code in a way that makes testing easy, efficient, and effective....

February 9, 2025 · 4 min · 852 words · Maxim Zhirnov
Почему Ваш код не так поддается тестированию, как Вы думаете

Почему Ваш код не так поддается тестированию, как Вы думаете

Головоломка тестируемости В мире разработки программного обеспечения тестируемость часто остаётся незамеченным героем. Это разница между плавным и эффективным процессом разработки и запутанной паутиной кошмарных отладок. Тем не менее, несмотря на её важность, многие разработчики недооценивают сложность того, чтобы сделать свой код действительно тестируемым. Вот почему ваш код может оказаться не таким тестируемым, как вы думаете, и что вы можете сделать, чтобы это изменить. Факторы тестируемости Тестируемость — это не только написание тестов, но и проектирование кода таким образом, чтобы тестирование было лёгким, эффективным и результативным....

February 9, 2025 · 4 min · 791 words · Maxim Zhirnov
Why You Should Sometimes Choose Proprietary Formats Over Open Formats

Why You Should Sometimes Choose Proprietary Formats Over Open Formats

When it comes to the age-old debate between proprietary and open-source software, the choice often seems clear-cut to many developers. However, there are scenarios where opting for proprietary formats might be the better, or even the only, viable option. Let’s dive into the reasons why you might want to choose proprietary software over its open-source counterparts, and explore some practical examples to illustrate these points. User Experience and Ease of Use One of the most compelling reasons to choose proprietary software is the user experience....

January 23, 2025 · 4 min · 738 words · Maxim Zhirnov