In my second week at work, I watched a senior engineer spend 3 days refactoring an API that took 1 day to build.

The endpoint worked. The logic was correct. The code was clean.

But halfway through integration, the frontend team came back with a list of questions:

"Why does this return a nested object here but a flat array there?"

"Where's the pagination? We assumed it would be paginated."