Maxim Mironjuk | Page 151
Posts by Maxim Mironjuk
-
Oct 19, 2025
Shell scripts rarely survive code reviews without objections, because standardized checklists are simply missing. This Bash checklist covers all critical dimensions: security, error handling, logging, testability with BATS, and static analysis with ShellCheck, systematically and with a practical focus.
-
Oct 19, 2025
A Hyvä theme follows its own directory structure and build approach: registration.php and theme.xml declare the package, web/tailwind/ carries the single real build step, and Alpine.js runs directly in the template with no compile step. Once you understand Hyvä theme architecture, you can find your way around any Hyvä project immediately.
-
Oct 19, 2025
touch-action decides which built-in gestures like pinch-zoom or scroll the browser handles for an element, and which instead get passed on to your own JavaScript. pointer-events answers a completely different question: whether an element reacts to pointer input at all. Keeping the two apart lets you build swipe carousels and touch widgets that do not fight the browser over every gesture.
-
Oct 19, 2025
Composer can do far more than just install dependencies: through Composer scripts and lifecycle hooks, every step of the installation process, from the very first composer install to the last autoload dump, can be extended with custom automation. Whether a shell command or a PHP callback via Composer\Script\Event, anyone who knows the complete event list replaces manual setup steps, forgotten cache clears, and improvised onboarding instructions with reproducible, versioned automation right inside composer.json.
-
Oct 18, 2025
A single getCurrentPosition call sounds like the easiest thing in the world, but location services sit at the intersection of accuracy, battery consumption and user privacy. Integrating geolocation into a React Native app without a clear concept risks drained batteries, confused users and rejected App Store reviews. This article shows how to request location services correctly on iOS and Android, track efficiently and test reliably.
-
Oct 18, 2025
Content formats increasingly determine whether a language model can reliably extract a piece of content and render it correctly in a generated answer. Body text without clear structure forces a model into interpretation, while lists, tables, FAQ blocks and definition boxes deliver information in a form that can be adopted directly into an answer with no room for interpretation.
-
Oct 18, 2025
When the Linux kernel comes under memory pressure, the OOM killer decides within a split second which process must die, often the database or PHP-FPM pool instead of the actual memory hog. This article explains the oom_score calculation, shows how to trace OOM kills in dmesg and journalctl, and how to protect critical services through oom_score_adj and cgroup limits.
-
Oct 18, 2025
Write-through writes synchronously into both cache and database, guaranteeing consistency at the cost of extra latency. Write-back only writes to the cache and delays the database write asynchronously, saving latency but creating a real risk of data loss if the cache server fails. Which strategy fits depends on the consistency requirements of the specific data.
-
Oct 18, 2025
A modal nested deep inside a component often gets visually clipped by an ancestor's overflow: hidden. createPortal() renders it into a different DOM node without it losing its logical place in the React tree for events and context.
-
Oct 17, 2025
A persistent data structure keeps its old version fully intact after every change and produces a new version instead, without copying the entire content. In PHP 8.4 this principle can be implemented directly with immutable linked lists and structural sharing, with no external library required.