Maxim Mironjuk | Page 168
Posts by Maxim Mironjuk
-
Sep 25, 2025
declare in Bash is far more than a visible declaration. Every flag, whether integer enforcement, export, associative array, name reference, or readonly, changes how a variable actually behaves on every assignment, with pitfalls that only surface during real script runs.
-
Sep 25, 2025
Touch gestures in Vue apps rarely fail on the core idea, but on details such as scroll conflicts, missing passive event configuration, and janky animations under load. With pointer events, VueUse composables, and a clean separation between recognition and reaction, swipe to delete, drag and drop, and pinch to zoom can be built robustly and performantly.
-
-
Sep 24, 2025
The Cookie Store API replaces the error prone parsing of document.cookie with an asynchronous, promise based interface featuring structured cookie objects, change events and real service worker access. Anyone managing session cookies, consent banners or auth tokens will find a much more robust foundation in the Cookie Store API than manual string parsing.
-
Sep 24, 2025
A mobile navigation that only toggles visibility is not enough: without a state model for nested categories, without a focus trap and without scroll lock, the off-canvas menu quickly becomes a dead end for keyboard and screen reader users. This article shows how to build the mobile navigation of a Hyvä theme as a self-contained Alpine component, with a state stack for category levels, x-transition for the slide-in panel, a focus trap, ARIA attributes and performant CSS transform animation instead of layout thrashing.
-
Sep 23, 2025
In Magento 2 there are three fundamentally different test types with very different runtimes, maintenance costs, and areas of use. PHPUnit for unit and integration tests, MFTF for end-to-end browser tests, and REST API tests for the web service layer. The most common mistakes in Magento test strategies: too many MFTF tests, too few unit tests, and API tests that should really be logic tests.
-
Sep 23, 2025
After every Magento deployment the Redis cache is empty, and the first requests hit the database unchecked. This article explains why that traffic spike happens, how warmup crawlers and cache preload scripts prevent it, and how warmup can be cleanly integrated into a deployment pipeline.
-
Sep 23, 2025
The Long Animation Frames API delivers a far more granular breakdown of blocking frames than the older Long Tasks API, showing exactly how much of each long frame comes from script execution versus rendering. That makes it a central tool for precisely diagnosing INP regressions.
-
Sep 23, 2025
Codegen turns a TypeScript spec file into the single source of truth for a TurboModule, generating matching interface code for iOS and Android at build time. This article walks through what codegen actually does, how a new TurboModule spec comes together in practice, and which class of bugs disappears entirely compared to hand-written bridging declarations.
-
Sep 23, 2025
Conditional aggregation is one of the most common needs in reporting queries: how many orders are cancelled, how many completed, how many still open, all in a single row per group. The classic path there runs through COUNT combined with a CASE WHEN expression that returns either a value or null depending on the condition. The SQL standard has offered a noticeably clearer alternative for a while now: the FILTER clause, attached directly to the aggregate function. This article covers how FILTER works, why it beats CASE WHEN for readability in many cases, how it combines with window functions for several parallel metrics, and where database availability draws the line.