Maxim Mironjuk | Page 262
Posts by Maxim Mironjuk
-
May 13, 2025
Staggered chapter counters, nested lists with mixed styles, custom markers for list items: pure CSS handles all of it with counter-reset, counter-increment, and counter(). Once you understand the system, you can strike JavaScript counters from your toolkit for good.
-
May 13, 2025
Prepared statements are often understood purely as a defense against SQL injection, but they are also a performance tool for repeatedly executed queries. This article explains why string concatenation is structurally unsafe, how prepared statements solve this problem, what the difference between server-side and client-side prepare is, and shows correct implementations with PDO and mysqli, including common pitfalls.
-
May 13, 2025
As soon as a class uses two traits with same-named methods, PHP reports a fatal error unless the conflict is resolved explicitly. insteadof decides the winner, as assigns alias names and changes visibility. This article shows both operators in detail and where trait conflicts typically arise in real projects.
-
May 13, 2025
Tailwind's content scanning promises that only actually used classes end up in the final CSS. In practice, unused Tailwind classes still accumulate, through removed components, oversized safelists, and dynamically composed class names that scanning can never classify as safe in the first place.
-
May 13, 2025
Choosing a primary key is one of the most consequential decisions in table design: a business natural key such as an email address or a product SKU carries meaning, an artificial surrogate key such as an auto-increment value or a UUID is stable and meaningless. This post compares both strategies concretely, presents composite keys as a third option, and delivers a practical decision guide.
-
May 13, 2025
Teams that accept AI suggestions without review gradually lose the ability to reason about code independently and to find bugs without assistance. This article shows how skill atrophy develops in a development team, which habits keep understanding of generated code intact, and how the productivity gains of AI assistants can coexist with genuine, lasting developer competence.
-
May 12, 2025
When a Linux server resolves domain names sometimes and not other times, the cause is rarely the DNS server itself but the local resolution chain in front of it: resolv.conf, systemd-resolved, nsswitch.conf, or a stubborn cache. This guide walks step by step through the correct order of checks, from the configuration file to the actual application runtime, and shows why a successful dig call alone proves nothing.
-
May 12, 2025
CLI commands are often the least tested part of a PHP application. Yet these are exactly the commands that drive cron jobs, migrations, deployments and critical batch operations. The exit code is the only communication channel between a process and the calling system, and it has to be correct so CI pipelines and orchestrators can react to failures.
-
May 12, 2025
The Vue 3 template compiler analyzes every template at build time and produces render functions that already know which parts can possibly change at runtime. Understanding these compiler optimizations lets you write templates that benefit fully from them instead of accidentally triggering slow fallback paths.
-
May 12, 2025
A REST API that never makes breaking changes is an API that never truly evolves. Teams that plan deprecations, sunset dates and migration paths from the start can evolve their APIs deliberately, without losing integrators or breaking them without warning.