Skip to main content

7 posts tagged with "refactoring"

View All Tags

Queue Types Refactoring

· 4 min read

Problem Statement

The current job queue system has several issues:

  • Job names and data types are not properly typed
  • Job data types are not enforced at compile time
  • Queue and job names are scattered across different files
  • No clear relationship between queues and their valid job types
  • Type safety is not enforced when adding jobs to queues

Исповедь уебка: как я переписывал DynamicTPSL сервис

· 4 min read
Max Kaido
Architect

Сегодня я пришёл к пониманию одной фундаментальной истины: быть уебком легко, а писать простой код — сложно. Особенно, если вместо того, чтобы смотреть на уже существующие решения, ты изобретаешь свой велосипед с ядерным реактором и квантовым генератором промптов.

TypeScript Declaration Pitfalls: 10 Costly Decisions to Avoid

· 4 min read
Max Kaido
Architect

When building a TypeScript project, type declarations are your first line of defense against bugs and maintainability issues. However, certain type declaration patterns can actually work against you, creating technical debt and making your codebase harder to maintain. Let's explore 10 specific anti-patterns we've identified in our analysis of real-world TypeScript projects.

Elegant Refactoring: A Journey to Better Domain-Driven Architecture

· 15 min read
Max Kaido
Architect

In any growing project, there comes a time when the initial architecture starts showing signs of strain. As features expand and requirements evolve, what once seemed like a clear structure can become muddled. Today, I want to share our journey of refactoring TON Arcana, focusing on creating a more cohesive, domain-driven architecture.

Here are 10 elegant improvements we're implementing to make our codebase cleaner, more maintainable, and better aligned with domain concepts.