It's always easier to drop everything and find better pastures when shit gets hard and/or bad.
But is it best for your long-term growth? If you're already in a difficult place mentally, it probably is best to leave. But if you're in a good place generally, and up for a challenge, you learn a ton more when you go from hard/bad to easy/good, and those skills are very sought after in the market place.
So if you can gain those skills, I'd go for doing just that. But again, that's not for everyone.
Framed another way: is it better for your long term growth to work with colleagues who can teach you new skills, or to try to wrangle a dysfunctional team?
IMO it depends on what you want to learn. If you want to develop your technical skills, it's definitely good to go somewhere that you're not the best dev in the room. Wrangling a team is more management / soft skills.
> is it better for your long term growth to work with colleagues who can teach you new skills, or to try to wrangle a dysfunctional team?
Good point, although I'd consider "wrangle a dysfunctional team" as a skill, granted the team is only dysfunctional because of good management, not if they are inherently bad programmers, too big egos or whatever.
> IMO it depends on what you want to learn
Yeah, that's a good point. That nuance in my comment was missing to thanks for adding that.
I can tell, and this is a familiar situation to me. It's hard to remember what a good environment is like when you have been exposed to dysfunction for a long time. I advocate good organizational health, and I can't do that independently if I stay in bad organizations for too long.
How is the boss a bad actor? The OP is being relied on by the boss because the boss admitted he trusts the OP and cannot judge technical talent.
If the CEO of a small company hires bad programmers, then brings in a CTO, and the CTO complains about the team it's no longer the CEO's fault. The lead seems to be listened to.
The boss is a bad actor because they have delegated leadership duties without any authority to make necessary changes. The boss is not able to judge technical talent.
But is it best for your long-term growth? If you're already in a difficult place mentally, it probably is best to leave. But if you're in a good place generally, and up for a challenge, you learn a ton more when you go from hard/bad to easy/good, and those skills are very sought after in the market place.
So if you can gain those skills, I'd go for doing just that. But again, that's not for everyone.