1. Home
  2. Soft Skills Engineering

Mar 16, 2025

A junior developer secretly refactored the entire front end

25 min → 1:43

Overview

The hosts discuss the risks of refactoring a client's legacy codebase without permission and how to handle intense pushback on self-initiated code improvements.

3 things to know

Jameson: Unplanned code cleanup can look like wasted time

Jameson explains that improving a codebase outside of a planned sprint can cause friction if others see it as derailing scheduled work or using unapproved time.

More

The act of improving a codebase without it being part of a planned task or sprint.

▶ Watch at 5:05

Soft Skills Engineering says to frame code cleanup around business

Soft Skills Engineering emphasizes that framing technical improvements around business value, like reducing the bug rate or building future features faster, is more effective than just announcing a code cleanup.

More

Instead of just saying "I refactored the code," it's more effective to demonstrate outcomes like "future features will be developed faster" or "we've reduced the bug rate."

Consultancy Dynamics

The hosts highlight that in a consulting relationship, work is often strictly defined by contracts and tickets.

More

Refactoring that wasn't requested by the client can be difficult to justify, as it may not align with their perceived value or budget.

▶ Watch at 3:45

Also in this episode

Unplanned code changes draw heavier criticism on Soft Skills Engineering

Soft Skills Engineering notes that unsolicited, off-the-books code changes face higher scrutiny and suggestions for ever-expanding scope during reviews because the normal cost-benefit limits of a planned sprint are absent.

Soft Skills Engineering jokes anticipating clean code often beats finishing

Soft Skills Engineering humorously discusses how the anticipation of a clean codebase is often more satisfying than the reality after finishing the cleanup, because standards for clean code simply adjust.

Quotes

“It's hard to tell them after the fact because what they might think is, 'Wait, what about all the features that we wanted that we didn't get because of all this time that you took?'”

▶ Watch at 5:05

“If you want to learn and you're passionate about improving stuff... you could advocate for either specific targeted improvements to be made in the sprint or or just to say like, 'Hey, I want a teeny bit of capacity also to do some of these improvements to learn.'”

▶ Watch at 19:32

“Tired of just moving tickets and fixing bugs, I decided to refactor the front end of the entire application.”

▶ Watch at 3:45

1 more quote

“It takes more than resolving deadlocked technical disagreements by picking number three to be a great software engineer.”

▶ Watch at 0:06

Full summary

Episode Overview

  • The hosts discuss a question from a junior developer at a consultancy who took the initiative to refactor a messy legacy codebase without explicit permission from their manager or the client.
  • They explore the potential risks and rewards of this "rogue refactoring," particularly the challenge of communicating the work after the fact and getting recognition for it.
  • The conversation delves into the unique dynamics of consultancy work, where time is strictly billed and unsolicited improvements can be viewed as unapproved scope.
  • A second question is addressed concerning how to handle excessive scrutiny and pushback on self-initiated pull requests that aim to improve the codebase.

Key Concepts

  • Unsolicited Refactoring: The act of improving a codebase without it being part of a planned task or sprint. While well-intentioned, it can create friction if it's perceived as derailing planned work or costing unapproved time.
  • Consultancy Dynamics: The hosts highlight that in a consulting relationship, work is often strictly defined by contracts and tickets. Refactoring that wasn't requested by the client can be difficult to justify, as it may not align with their perceived value or budget.
  • Communicating Value: A central theme is the importance of framing technical improvements in terms of business value. Instead of just saying "I refactored the code," it's more effective to demonstrate outcomes like "future features will be developed faster" or "we've reduced the bug rate."
  • "Whataboutism" in Code Reviews: The phenomenon where unsolicited or "off-the-books" pull requests receive a higher level of scrutiny and suggestions for ever-expanding scope, as the normal cost-benefit constraints of a planned sprint are absent.
  • Hedonic Treadmill of Refactoring: The hosts humorously discuss the feeling that the anticipation of a clean codebase is often more satisfying than the reality after the refactoring is complete, as one's standards for "clean" simply adjust.

Quotes

  • At 00:06 - "It takes more than resolving deadlocked technical disagreements by picking number three to be a great software engineer." - The podcast's opening tagline, setting the stage for discussions on the non-technical aspects of software development.
  • At 03:45 - "Tired of just moving tickets and fixing bugs, I decided to refactor the front end of the entire application." - The listener frames the core problem: taking initiative to improve a poor codebase when regular work feels unfulfilling.
  • At 05:05 - "It's hard to tell them after the fact because what they might think is, 'Wait, what about all the features that we wanted that we didn't get because of all this time that you took?'" - Jameson highlights the primary risk of presenting unsolicited work, which is the perception that it came at the cost of planned feature delivery.
  • At 19:32 - "If you want to learn and you're passionate about improving stuff... you could advocate for either specific targeted improvements to be made in the sprint or or just to say like, 'Hey, I want a teeny bit of capacity also to do some of these improvements to learn.'" - Jameson suggests a proactive approach to formalize and legitimize improvement work within the team's existing process.

Takeaways

  • Frame unsolicited work by its positive outcomes. When you present improvements you made on your own initiative, focus on the tangible benefits you've created, such as increased development velocity for future tasks or a reduction in bugs, rather than the process you followed.
  • Proactively formalize time for technical improvements. To avoid the friction of "off-the-books" changes, advocate for officially allocating a small portion of your team's sprint capacity to learning, experimentation, and addressing technical debt. This makes the work visible and approved.
  • Communicate with your manager before going rogue. Instead of refactoring in secret, have a conversation with your manager about your desire to improve the codebase. You might be able to create an official process for this work, which avoids surprising the team and ensures everyone is aligned.

Watch the full episode 25 min

Read along with the audio summary

A junior developer at a consultancy got tired of just moving tickets and fixing bugs, so they decided to refactor the front end of an entire messy legacy application without explicit permission from their manager or the client. In this episode, which came out on March 16, 2025, the hosts of this software engineering podcast, including Jameson, discuss the listener's question and a second question about pushback on self initiated code changes. By the end, you will learn how to navigate the risks of rogue code improvements and get your team on board.

Why your well intentioned code cleanup might actually create workplace friction. Improving a codebase, known as refactoring, can cause tension when it is done outside of a planned task or work cycle. As Jameson notes, it is hard to tell people after the fact because they might wonder about all the features they wanted and did not get because of the time you took. Instead of refactoring in secret, have a conversation with your manager about your desire to improve the codebase so you might create an official process and ensure everyone is aligned.

This friction gets even trickier because of how consulting relationships work, which brings us to why a client might not appreciate unsolicited improvements to their software. When you work at a consultancy, time is strictly billed and work is often strictly defined by contracts and tickets. It can be viewed as unapproved scope that may not align with the client's perceived value or budget.

How to translate technical cleanup into a language that managers and clients value. A central theme of the discussion is framing technical improvements in terms of business value. For example, it is more effective to demonstrate outcomes like showing that future features will be developed faster, or that you have reduced the bug rate.

Why your off the books code changes might attract endless nitpicking from your peers. When a pull request is unsolicited or off the books, the normal cost and benefit constraints of a planned sprint are absent. Because of this, these reviews receive a higher level of scrutiny and suggestions for ever expanding scope, a phenomenon called whataboutism. To avoid the friction of off the books changes, advocate for officially allocating a small portion of your team's sprint capacity to learning, experimentation, and addressing technical debt.

Why that sparkling clean codebase might not make you as happy as you expect. However, the hosts humorously discuss what is called the hedonic treadmill of refactoring. They note that the anticipation of a clean codebase is often more satisfying than the reality after the refactoring is complete, because your standards for what counts as clean simply adjust.

Going rogue to fix messy code carries real risks, especially when time is strictly tracked and your peers review unscheduled work without normal sprint limits. If you want to improve your codebase without surprising your team, talk to your manager beforehand, request official sprint capacity for technical debt, and always highlight the business outcomes of your work. It takes more than resolving deadlocked technical disagreements by picking number three to be a great software engineer.

More from Soft Skills Engineering

Related Episodes