Maxim Mironjuk | Page 228
Posts by Maxim Mironjuk
-
Jul 5, 2025
A Redis hash with three fields and a Redis hash with thirty thousand fields are stored internally in completely different ways, even though both are addressed through the same commands like HSET and HGET. Redis automatically chooses between a compact, memory-optimized listpack encoding for small collections and a classic hashtable structure for large ones, depending on configurable thresholds. Knowing this automatic switchover point makes it possible to deliberately design data models so Redis stays in the memory-efficient listpack encoding as long as possible. This article covers how the switch works technically and what practical consequences follow for memory planning.
-
Jul 5, 2025
Attribute routing covers the vast majority of applications, but it hits its limits once routes need to come from a database at runtime, for example for CMS pages or redirects. This article shows how a custom loader covers those cases, how custom requirements validate parameters with regex right inside routing, and how to reliably control ordering when routes overlap.
-
Jul 4, 2025
A kernel version upgrade without a plan can take down a production server if drivers go missing or DKMS modules stop building. With a clear baseline snapshot, an LTS strategy, GRUB as a rollback safety net and a test plan, the risk turns into a controlled, repeatable procedure.
-
Jul 4, 2025
Adding fields, mutations or complex types to the GraphQL schema from your own Magento module takes more than extend-type syntax: resolver architecture, cross-module schema merging and batch resolving against N+1 queries are all part of the job. This article walks through real code showing how a custom schema extension in Magento 2.4.8 is built cleanly, testably and in a version safe way.
-
Jul 4, 2025
A test suite can reach 100 percent code coverage and still miss an obvious bug in a REST endpoint's validation logic, because code coverage only measures whether a line was executed, not whether its actual behavior was verified by a test. Mutation testing closes exactly this gap by artificially introducing small bugs into the code and checking whether the existing test suite actually catches these artificial bugs, instead of blindly relying on pure line coverage as a quality measure.
-
Jul 4, 2025
A full git clone transfers every version of every file across the entire history, even when only the current state is needed. Partial clone and shallow clone reduce the transferred data volume in different ways, each suited to different scenarios, from CI runners to developer workstations.
-
Jul 4, 2025
Immutable objects fundamentally change how reliably PHP code behaves: once constructed, a value object can no longer be secretly changed from anywhere else in the program, because there simply are no setters left. Instead of mutating existing instances, with-methods create a new, fully initialized copy with the changed value on every change. This article uses a running Money example to show how readonly properties, with-methods, and named constructors work together, and why cloning followed by mutation simply does not work technically for readonly properties in PHP.
-
Jul 4, 2025
A keyboard trap happens when keyboard focus enters a modal, dropdown, or third-party widget and can't find its way back out with Tab or Shift Tab. For keyboard users and screen reader users, that means a complete blocking point. This article covers common causes, a systematic test procedure, and a correct focus trap implementation that can always be exited reliably with the Escape key.
-
Jul 4, 2025
Anyone who keeps GraphQL queries manually in sync with types builds up technical debt, every single time a schema field changes. Code generation from the schema and operations files turns types into automation instead of a maintenance chore.
-
Jul 4, 2025
Release notes speak to users and stakeholders, not developers, and therefore need a different tone than a technical changelog. This article shows how a Bash script automatically builds readable release notes with contributors, highlighted key changes, and a comparison link from the commit range between two tags, and pushes them directly to the GitHub or GitLab Release API.