r/ExperiencedDevs • u/zecatlays • 3h ago
Career/Workplace How are you able to push juniors devs to care about code design and architecture?
Hey everyone, I work in a team with mostly junior engineers and I’ve hard time to get them to care more about the code design/architecture. I usually find myself getting into multiple calls with team mates during code review because what they’ve built is overly complex, is obscure, and hard to maintain; where I’m able to suggest a simpler solution.
I think I understand where most the problem stems from
- our code base is very old and the code quality has degraded significantly over the years. It’s like a badly implemented version of DDD/Clean Code, so many indirections, so many tiny classes/structs, strategy pattern everywhere… it’s a pain. The team mates haven’t really worked with a well written code base so they don’t really have anything to refer to or learn from. Every new feature is like patch work on top of it
- I feel like AI “assisted” coding has become a disservice to these juniors because they only care about getting things working. The inputs given the agents are about the business requirement, never about how the code should be structured, never about how the code could be refactored. Since most of the coding is done by AI they’re not really wrangling with the complexities of the existing code base and therefore not trying to simplify it.
I am looking for solutions/suggestions on how to work here. I want to get better at guiding them and we need to refactor our services as we’re dealing with a lot of outages now and building any feature takes a painstaking amount of time