Maxim Mironjuk | Page 277
Posts by Maxim Mironjuk
-
Apr 23, 2025
Ever since the iPhone X with its notch and the iPhone 14 Pro with its Dynamic Island, web developers have had to make sure content does not disappear behind hardware elements. CSS env() together with the safe-area-inset-* variables is the standardized solution, working the same way across browsers, PWAs and native WebViews.
-
Apr 23, 2025
Talking about temporary tables in MySQL often means two entirely different things: tables explicitly created with CREATE TEMPORARY TABLE and bound to a session, and internal optimizer constructs that MySQL itself creates for GROUP BY, ORDER BY, or DISTINCT without anyone asking for them. Then there is the MEMORY storage engine for explicitly created, permanently in-memory lookup tables. Anyone who keeps these three concepts cleanly separated also understands why some queries turn unexpectedly slow and how to fix that in a targeted way.
-
Apr 23, 2025
Testing Pinia stores in isolation takes more than instantiating a store and calling an action. Between createPinia and createTestingPinia, real versus mocked actions, and cross-store dependencies lie decisions that determine the meaningfulness and maintainability of an entire test suite.
-
Apr 23, 2025
A maintainable dark-light token system does not emerge from a single layer of custom properties, but from three cleanly separated tiers: primitive tokens, semantic tokens and component tokens. Together with the light-dark() function, this architecture can be implemented without a growing media query per component.
-
Apr 23, 2025
An unencrypted backup is a second copy of the most sensitive data in a company, often protected even less than the original. Backup encryption is therefore not a nice-to-have, but a basic requirement as soon as a backup leaves your own server. This article shows how GPG, OpenSSL, restic, and Borg are used on Linux for encrypted backups, and what to watch for in key management.
-
Apr 23, 2025
In Hyva theme projects, a bug rarely lives cleanly on one side: is a Tailwind class generated wrong, or does the watcher simply never see it? PhpStorm can bundle an Xdebug session and a Node process into a single Compound configuration so both sides pause in sync.
-
Apr 22, 2025
Repository tests with mocks check the wrong layer. A mock repository cannot detect a SQL syntax problem, an index problem, or an N+1 bug. Real database access in tests is expensive, but irreplaceable at the right spots. The art lies in knowing exactly where those spots are and how to implement database isolation reliably.
-
Apr 22, 2025
Cypress tests that pass reliably on your local machine often fail unexpectedly in CI due to resource limits, mismatched viewports, and timing differences on shared runners. This article shows how to run Cypress headless in GitLab CI and GitHub Actions, capture video and screenshot artifacts on failure, cache node_modules and the Cypress binary, and parallelize test runs across multiple jobs.
-
Apr 22, 2025
Beyond the built-in shorthands like flip-block, @position-try lets you define your own named fallback positions, complete with their own viewport safety margin. This article walks through ready-to-copy recipes for dropdown menus, nested submenus and tooltips that reliably stay inside the visible area.
-
Apr 22, 2025
Anyone who wants to customize an invoice PDF inevitably ends up at Pdf\AbstractPdf, Pdf\Invoice, and Zend_Pdf, not at the sales business logic. This article shows how a targeted preference instead of a full class copy extends PDF generation, how custom renderers get registered via di.xml, and how invoice PDFs can be generated performantly via CLI batch or message queue instead of synchronously in checkout.