The Benefits of Not Writing Tests for Every Piece of Code

The Benefits of Not Writing Tests for Every Piece of Code

The Unspoken Truth: When Tests Aren’t the Answer In the world of software development, the mantra of “write tests for everything” has become almost gospel. However, like any dogma, it’s essential to question its absolute applicability. While unit tests are undoubtedly a powerful tool, there are scenarios where they might not be the best approach. Let’s delve into the benefits of not writing tests for every piece of code and explore when this might be the more prudent choice....

November 19, 2024 · 4 min · 785 words · Maxim Zhirnov
Преимущества отказа от написания тестов для каждого фрагмента кода

Преимущества отказа от написания тестов для каждого фрагмента кода

Невысказанная правда: когда тесты — не решение В мире разработки программного обеспечения девиз «тестировать всё» стал почти мантрой. Однако, как и любую догму, его применимость нужно подвергать сомнению. Безусловно, модульные тесты являются мощным инструментом, но есть ситуации, когда они не лучший подход. Давайте рассмотрим преимущества отказа от тестирования каждого фрагмента кода и выясним, в каких случаях это может быть более разумным выбором. Издержки чрезмерного тестирования Один из основных аргументов против тестирования каждой строки кода — это время и усилия, которые требуются для этого процесса....

November 19, 2024 · 3 min · 505 words · Maxim Zhirnov
Creating Your Own ORM in Go: A Step-by-Step Guide

Creating Your Own ORM in Go: A Step-by-Step Guide

Introduction to ORMs When working with databases in any programming language, you often find yourself juggling between the world of objects and the realm of relational databases. This is where Object-Relational Mappers (ORMs) come into play. ORMs act as a bridge between your application’s object-oriented code and the relational database, making it easier to manage data without the hassle of writing raw SQL queries. In this article, we’ll delve into the process of creating a custom ORM in Go....

November 18, 2024 · 5 min · 1029 words · Maxim Zhirnov
Создание собственного ORM в Go: пошаговое руководство

Создание собственного ORM в Go: пошаговое руководство

Введение в ORM При работе с базами данных на любом языке программирования часто приходится иметь дело с объектами и реляционными базами данных. Здесь на помощь приходят Object-Relational Mappers (ORM). Они служат мостом между объектно-ориентированным кодом приложения и реляционной базой данных, упрощая управление данными и избавляя от необходимости писать SQL-запросы. В этой статье мы рассмотрим процесс создания пользовательского ORM на языке Go. Хотя в Go есть отличные библиотеки вроде GORM, которые упрощают взаимодействие с базой данных, создание собственного ORM может стать полезным опытом обучения и дать более глубокое понимание того, как эти инструменты работают внутри....

November 18, 2024 · 3 min · 601 words · Maxim Zhirnov
The Myth of 'The Perfect Codebase': Why Imperfection is Inevitable

The Myth of 'The Perfect Codebase': Why Imperfection is Inevitable

The Elusive Dream of Perfection In the realm of software development, there’s a persistent myth that haunts many a developer: the myth of the “perfect codebase.” This notion suggests that code can be written without any bugs, errors, or the need for future modifications. However, this ideal is as elusive as a unicorn in a tech conference. The Reality of Imperfection The concept of perfect code is appealing, but it’s a fantasy....

November 18, 2024 · 4 min · 771 words · Maxim Zhirnov