Skip to content
tezvyn:

Technical and comms plan for a Button break

Source: interviewMediumHow cards are made

Summary

pairing technical migration tooling with communication.

Key points

additive-first then deprecate, major semver, codemod and guide, multi-channel early comms with adoption tracking.

What's really being asked

This checks that you treat a breaking change as both a technical migration and a coordination problem across many teams.

The full answer

On the technical side, prefer an additive rollout: introduce the new API while the old one still works, mark the old path deprecated with build or runtime warnings, and reserve removal for a future major. Bump the major version per semver. Write a codemod so most consumers migrate automatically, and a migration guide with concrete before-and-after snippets. On the communication side, announce early and through several channels: changelog, release notes, a dedicated message to consuming teams, and optional office hours or a support thread. Publish a clear deprecation timeline with a removal date, and maintain an adoption dashboard showing who still uses the old API so you can nudge stragglers. Remove the deprecated path only once adoption is high, in the next major.

The mistakes people make

Nailing the code but ignoring communication. A single announcement treated as enough. No deprecation window. No tooling to ease migration. Shipping the break as a minor version.

What usually comes next

How do you handle a team that misses the deadline? How long should the deprecation window be? How do you measure adoption automatically?

A concrete example

The Button drops a deprecated size prop in favor of a new scale prop. Version 7.0.0 supports both, with size emitting a deprecation warning. You publish a codemod, a migration guide, and announce two sprints ahead with a removal date. A dashboard tracks remaining size usage. Once it nears zero, version 8.0.0 removes it.

Interview question

A team writes a flawless codemod for a breaking Button change but only posts a single changelog line. What is the main risk?

  • a.The codemod will corrupt consumer code automatically
  • b.Many teams will miss the change and break on upgrade despite the toolingCorrect
  • c.The deprecation window becomes unnecessary
  • d.Semver no longer applies once a codemod exists
Why?

Even excellent migration tooling fails if teams never learn about the change, so multi-channel, early communication is essential. A codemod does not replace communication, override semver, or remove the need for a deprecation window.

Just read this? Test yourself on what you have been reading.

Read the original → zeroheight.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles