Maxim Mironjuk | Page 246
Posts by Maxim Mironjuk
-
Jun 9, 2025
Compression is essentially always worth enabling for REST APIs, since JSON compresses exceptionally well, the real question is which algorithm to use where. Gzip is the safe, universal default, Brotli gets meaningfully better ratios but at a CPU cost that only pays off in the right circumstances.
-
Jun 9, 2025
Tailwind CSS v4 puts an end to JavaScript configuration files. The CSS-First approach makes it possible to define colors, fonts, spacing and custom design tokens directly in CSS with the @theme directive, closer to the platform, faster to build and easier to understand.
-
Jun 9, 2025
Fabric replaces the asynchronous bridge with a shared C++ shadow tree that JavaScript and native code access directly through JSI. Building a custom native view as a custom component means understanding how ComponentDescriptor, ShadowNode and generated codegen code work together, from the first spec file to the finished component view on iOS and Android.
-
Jun 9, 2025
A system prompt defines how an AI coding assistant responds throughout an entire conversation, which role it takes on, which coding rules apply, and which boundaries it respects. This article uses practical examples from Magento and Hyva development to show how to write effective system prompts and why too many detailed rules tend to weaken an assistant's reliability rather than strengthen it.
-
Jun 9, 2025
Anyone who does not cancel fetch requests risks race conditions, memory leaks and inconsistent UI states. AbortController is the native browser API that solves this problem once and for all, for fetch, event listeners and any async operation.
-
Jun 8, 2025
Multipart uploads in GraphQL are technically possible, but in practice they cause more problems than they solve. Anyone uploading files through GraphQL ends up fighting proxies, body size limits, missing caching, and resolvers that are hard to test. This article explains where the real limits lie and how presigned URLs solve the problem more elegantly.
-
Jun 8, 2025
Webfonts are one of the most common causes of poor Core Web Vitals, especially high CLS (Cumulative Layout Shift) values. CSS font-display controls how and when a browser switches to a loaded font. With size-adjust, the visual jump caused by a font swap can be reduced to nearly zero.
-
Jun 8, 2025
In most agency projects, attribute sets grow uncontrolled: every new product type gets its own set, naming conventions are missing, and after two years nobody can say which of the eighty sets are actually still used in production. Teams that instead align attribute sets with product types and business requirements before creation, generate them programmatically through Data Patches and keep them under a clear governance process, keep the EAV structure maintainable, performant and comprehensible for new developers.
-
Jun 8, 2025
A dark mode that resets on the next visit, or one that briefly flashes light before turning dark on load: those are the two most common mistakes. Alpine.js solves both. $persist stores the user preference permanently in localStorage, and a blocking script placed before Alpine.js prevents the flash of wrong theme.
-
Jun 8, 2025
An API-first architecture reverses the classic order of software development: instead of building a user interface first and treating data access as an afterthought, a stable, well documented API comes first, from which any number of frontends, from the classic storefront to a mobile app, can be served. For Magento 2 that means a deliberate break from the monolithic core architecture, in which frontend rendering and business logic are traditionally tightly interwoven. This article shows what an API-first architecture for Magento 2 looks like in practice, where sensible microservice boundaries run, and how an existing store can migrate there step by step.