Maxim Mironjuk | Page 260
Posts by Maxim Mironjuk
-
May 16, 2025
Shell scripts without tests are a black box in your automation. The Bash Automated Testing System (BATS) brings structured unit tests, fixtures, and mocking to the shell world, and it integrates seamlessly into GitHub Actions, GitLab CI, and Jenkins without any external runtime dependencies.
-
May 16, 2025
Once more than one php-fpm process is running, the default file-based session storage quickly becomes a problem, at the latest once you scale horizontally across multiple servers. SessionHandlerInterface offers exactly six methods to store session data in Redis, a database, or any other backend instead, without any framework at all. This article walks through the implementation in detail, including the locking strategy that protects parallel requests for the same session from data loss.
-
May 16, 2025
Scroll, resize, and input events fire hundreds of times per second and can bring the main thread to a crawl if every call triggers an expensive function unchecked. Debouncing and throttling tame this flood deliberately, with clear timer mechanics, rAF-based patterns for visual updates, and ready-made Alpine.js modifiers for Hyva themes.
-
May 16, 2025
Symfony UX Autocomplete connects Doctrine entities, custom search logic and external APIs through a single form field type, delivering server side rendering, Stimulus wiring and Tom Select on the frontend without writing a single custom JavaScript module.
-
May 16, 2025
Claude and other AI assistants produce code that looks convincing, but for security-critical logic, payment processing, data migrations, and scripts touching production data, looking convincing is not enough. This article walks through concrete high-risk areas, explains why confident-sounding explanations are a warning sign rather than reassurance, and describes when manual implementation remains the more reliable choice.
-
May 16, 2025
A named pipe (FIFO) behaves like a file on the filesystem but works like a classic pipe: data flows directly from a writer to a reader and never lands on disk. Used correctly, FIFOs decouple independent processes, build logging multiplexers, and avoid the race conditions that intermediate files almost always introduce.
-
-
May 15, 2025
A freshly installed PHPStorm without a checklist costs hours: wrong interpreter, too much indexed vendor bulk, no Xdebug, no run configurations. This checklist covers all the critical settings, in the order that matters most for Docker Magento projects.
-
May 15, 2025
Large TypeScript projects often suffer from slow builds because the compiler fully rechecks every file and recomputes every type on each run. This article shows in practice how the tsbuildinfo cache, the incremental and composite flags, and project references combined with tsc build noticeably reduce compile times in monorepos and large codebases, including concrete diagnosis and measurement methods for stubborn bottlenecks in everyday work.
-
May 15, 2025
The CODEOWNERS file automatically assigns pull and merge requests to the right reviewers, based on which file paths changed. This article explains the syntax and path matching rules, shows how to combine CODEOWNERS with branch protection on GitHub and GitLab, provides practical examples for Magento 2 and Hyva projects, and describes how a team keeps the file current over time.