Why career Is Harder Than It Looks — Guides article on career

Why career Is Harder Than It Looks (modules)

The trade-offs behind a technique that appears simple in isolation. Compares the two approaches we tried. (2)

The thing nobody tells you about career is that the specification is short and the implementation history is not. Every behaviour you rely on was added for a reason that no longer applies to your code.

We used a feature query, a polyfill, and a fallback that shipped the old behaviour. It is unglamorous and it works, and it has survived three major browser releases without incident.

The trick is to make the correct thing the easy thing. If the path of least resistance produces good output, you do not need a linter, a style guide, or a code review rule to enforce it.