---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=shopify&tag=refactoring"
---

# Posts

Filtered by topics: Refactoring & migrations, source: Shopify Engineering.

Posts 1–21 of 21, page 1 of 1, newest first.

## 2026-11-10

- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code.

## 2026-09-21

- [Helix: The internal tool powering our Shopify app's native migration](https://swe.quest/articles/helix-the-internal-tool-powering-our-shopify-app-s-native-migration-db9fcd596ae9b1fc.md): Shopify Engineering · 2026-09-21 · Medium · 8 min read · AI for coding, AI agents, Mobile, Refactoring & migrations, React
  Helix is Shopify's internal LLM tooling for rebuilding its 300+ screen React Native app in native Swift and Kotlin.

## 2026-09-10

- [Migrating Shop app from React Native to native](https://swe.quest/articles/migrating-shop-app-from-react-native-to-native-d251eff5b6600925.md): Shopify Engineering · 2026-09-10 · Medium · 6 min read · Mobile, React, AI for coding, Refactoring & migrations, Performance engineering
  Shopify rebuilt the Shop app from React Native into native Swift/SwiftUI and Kotlin/Jetpack Compose in 12 weeks, with coding agents porting features using the existing React Native app as a reference.
- [Native is now the future of mobile at Shopify](https://swe.quest/articles/native-is-now-the-future-of-mobile-at-shopify-4bc17172ea398962.md): Shopify Engineering · 2026-09-10 · Easy · 10 min read · Mobile, AI for coding, React, Refactoring & migrations, AI agents
  Shopify is moving its mobile apps from React Native back to native Swift and Kotlin because coding agents have cut the cost of building and keeping features in parity across two platforms, while native still gives closer access to platform capabilities and first-party tooling.

## 2026-07-16

- [Upgrading Checkout Blocks app to Polaris web components](https://swe.quest/articles/upgrading-checkout-blocks-app-to-polaris-web-components-6cf6ef4febe89e45.md): Shopify Engineering · 2026-07-16 · Medium · 10 min read · Frontend, Web performance, Refactoring & migrations, React, E-commerce
  Shopify's Checkout Blocks team migrated five high-traffic checkout UI extensions from React and the legacy Remote UI bridge to Preact, remote-dom and Polaris web components, rewriting them in TypeScript, and cut transferred bundle sizes by 40-85% and extension load time by about 8% at P50.

## 2025-09-05

- [Migrating to React Native's New Architecture](https://swe.quest/articles/migrating-to-react-native-s-new-architecture-ea77244bbb28fd72.md): Shopify Engineering · 2025-09-05 · Medium · 12 min read · React, Mobile, Refactoring & migrations, Deployment
  Shopify moved Shopify Mobile and POS to React Native's New Architecture (Fabric) without pausing weekly releases.

## 2025-06-30

- [Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready](https://swe.quest/articles/remixing-shopify-s-admin-how-we-made-it-30-faster-and-ai-ready-996b243df73e0345.md): Shopify Engineering · 2025-06-30 · Medium · 7 min read · Web performance, React, Frontend, Refactoring & migrations, AI agents
  Shopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite.

## 2024-02-07

- [A Packwerk Retrospective](https://swe.quest/articles/a-packwerk-retrospective-b9d1167fd6021459.md): Shopify Engineering · 2024-02-07 · Medium · 14 min read · Ruby, Static analysis, Refactoring & migrations, System design
  Packwerk, Shopify's static analysis gem for enforcing package boundaries in Rails monoliths via constant references, works best as a dependency-graph tool rather than an API-privacy tool, which is why privacy checks were removed in 3.0.

## 2023-03-31

- [How Migrating from Vanilla Redux to Redux Toolkit Improved State Management in Shopify POS](https://swe.quest/articles/how-migrating-from-vanilla-redux-to-redux-toolkit-improved-state-management-in-bb79ef4f578fa9c6.md): Shopify Engineering · 2023-03-31 · Medium · 8 min read · React, Refactoring & migrations, Mobile, TypeScript, Frontend
  Shopify's Point of Sale React Native app moved from vanilla Redux to Redux Toolkit over about three months.

## 2023-02-21

- [The Case Against Monkey Patching, From a Rails Core Team Member](https://swe.quest/articles/the-case-against-monkey-patching-from-a-rails-core-team-member-b0bd43ce3a761b2b.md): Shopify Engineering · 2023-02-21 · Medium · 14 min read · Ruby, Refactoring & migrations, Open source
  Monkey patching Rails and other gems is brittle and should be avoided.

## 2023-01-10

- [From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience](https://swe.quest/articles/from-ruby-to-node-overhauling-shopify-s-cli-for-a-better-developer-experience-c31f4bbd707f942e.md): Shopify Engineering · 2023-01-10 · Medium · 12 min read · Developer tools, TypeScript, JavaScript, Refactoring & migrations, Testing
  Shopify rewrote its CLI from Ruby to TypeScript on Node to reduce system requirements, unify the Theme, App and Hydrogen workflows, and stay easy for internal teams to contribute to.

## 2022-12-27

- [Migrating our Largest Mobile App to React Native](https://swe.quest/articles/migrating-our-largest-mobile-app-to-react-native-da3490e74f9ce01b.md): Shopify Engineering · 2022-12-27 · Medium · 12 min read · Mobile, React, Refactoring & migrations
  Shopify is moving its largest native app, Shopify Mobile (300 screens per platform), to React Native through "Iterative Porting" rather than a rewrite.

## 2022-11-15

- [Caching Without Marshal Part 2: The Path to MessagePack](https://swe.quest/articles/caching-without-marshal-part-2-the-path-to-messagepack-dde2d14188f0b673.md): Shopify Engineering · 2022-11-15 · Medium · 17 min read · Ruby, Caching, Refactoring & migrations
  Shopify replaced Ruby's Marshal with MessagePack as the Rails cache format for its core monolith so that code changes would stop breaking cached payloads on deploy.

## 2022-10-11

- [How to Write Code Without Having to Read It](https://swe.quest/articles/how-to-write-code-without-having-to-read-it-1700fbc56278687d.md): Shopify Engineering · 2022-10-11 · Medium · 12 min read · Type systems, Testing, Refactoring & migrations, TypeScript, Developer productivity
  Engineers can safely change unfamiliar code with minimal reading by letting the compiler, linter and unit tests guide them: locate the entrypoint via user-visible strings (or git bisect for regressions), make the breaking change at the leaf component, then climb the callstack following build errors and sweep back down via lint errors, exhaustive switches and test failures.

## 2022-09-01

- [Focus On Behavior, Not State, for a More Maintainable Codebase](https://swe.quest/articles/focus-on-behavior-not-state-for-a-more-maintainable-codebase-d186fd1356391a16.md): Shopify Engineering · 2022-09-01 · Medium · 9 min read · Refactoring & migrations, Ruby, E-commerce, System design
  When adding pre-orders and try-before-you-buy to Shopify's Purchase Options APIs, code that equated "has a selling plan" with "is a subscription" forced repeated refactors.

## 2022-05-11

- [Our Experience Porting the YJIT Ruby Compiler to Rust](https://swe.quest/articles/our-experience-porting-the-yjit-ruby-compiler-to-rust-221d770c36dd7d35.md): Shopify Engineering · 2022-05-11 · Medium · 16 min read · Rust, Compilers, Ruby, Refactoring & migrations, C & C++
  Shopify's YJIT team ported the CRuby JIT compiler from about 11,000 lines of C99 to Rust because C's lack of modules, generics, containers and safe macros made a growing compiler hard to manage.

## 2022-03-10

- [After the Refactor: A Path to Faster Rendering with Liquid-C](https://swe.quest/articles/after-the-refactor-a-path-to-faster-rendering-with-liquid-c-69e5ad9480eaeead.md): Shopify Engineering · 2022-03-10 · Medium · 4 min read · Runtimes & VMs, Compilers, Ruby, C & C++, Refactoring & migrations
  Liquid-C's bytecode VM was refactored to replace its sequential constant pointer with per-instruction indexes into the constants array, so the instruction pointer can jump freely without recomputing constant offsets.

## 2022-02-18

- [Changing a polymorphic\_type in Rails](https://swe.quest/articles/changing-a-polymorphic-type-in-rails-8b5924e77ba397de.md): Shopify Engineering · 2022-02-18 · Medium · 7 min read · Ruby, Refactoring & migrations, Schema migrations, Databases
  Rails stores the parent's class name in a polymorphic association's type column, so moving models into a new namespace (e.g. Car to Garage::Car) leaves mixed values like "Car" and "Garage::Car" and breaks lookups in both directions.

## 2022-01-27

- [How We Fixed the Dependency Confusion Vulnerability in Over 600 Ruby Applications](https://swe.quest/articles/how-we-fixed-the-dependency-confusion-vulnerability-in-over-600-ruby-14f9a0a0836510b2.md): Shopify Engineering · 2022-01-27 · Medium · 9 min read · Supply chain security, Ruby, Refactoring & migrations, CI/CD
  Shopify closed a dependency confusion hole across roughly 600 Ruby applications by migrating each \`Gemfile.lock\` to Bundler's newer format, which pins every gem to an explicit source.

## 2021-04-09

- [How Shopify Dynamically Routes Storefront Traffic](https://swe.quest/articles/how-shopify-dynamically-routes-storefront-traffic-4416894393bf5cd2.md): Shopify Engineering · 2021-04-09 · Medium · 9 min read · Load balancing, Deployment, Refactoring & migrations, Configuration management, Resilience
  Shopify shifted storefront traffic from its legacy Rails storefront to a rewritten renderer using a rule-based routing system in nginx/OpenResty Lua load balancers, with rules stored as JSON in a control plane and managed via the spy chatbot so changes skip CI and deploys.

## 2021-03-19

- [Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in Ruby](https://swe.quest/articles/remove-circular-dependencies-by-using-dependency-injection-and-the-repository-605bdeddd937fd64.md): Shopify Engineering · 2021-03-19 · Medium · 8 min read · Ruby, Refactoring & migrations, Type systems, Testing
  Shopify broke a circular dependency between an internal pricing gem and its two consumers (the Shopify Core Rails monolith and the Storefront Renderer) by applying the Repository pattern with constructor-based dependency injection.

Same list as RSS: [https://swe.quest/feed.xml?source=shopify&tag=refactoring](https://swe.quest/feed.xml?source=shopify&tag=refactoring). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
