← Everyone's take

TAKES · Greg answers

What do we do about the project in Nebraska?

What do we do about the project in Nebraska?“Put an interface in front of it. Then it's replaceable.”Greg Hollis, The Hedger

💡 WHY GREG IS RIGHT

The danger is less that the dependency exists than that the codebase is fused to it. A narrow team-owned interface confines it to one module, so replacing or forking it touches one place instead of hundreds of call sites. Cheap now, every option kept.

✅ RIGHT WHEN

The library's API is called from many places across the codebase.

🚩 TOO FAR WHEN

The adapter has more bugs than the library, and two of them are in production.

See all 12Greg's profile

After xkcd 2347.