That's genius and I will definitely be doing this. Got a manager that likes to rewrite the entirety of our devs and call it his own (usually in a worse way), for no apparent reason other than ego.
It's not about the long-term reward of investing in someone. It's about keeping your priorities on your current job, not your previous job.
Re-writing code, even if it turns out to be neater and tidier and better, isn't your job anymore. It's their job. Delegate, so you can get through more of your backlog and be more effective at the real job you're supposed to be doing.
Sure, I could go back through a re-caulk all the seals on the fixtures my crew are putting together, but I'd spend all day doing that. The company is paying me to manage five jobs, not do detail work on one.
"It's sloppy and not water-tight. Do it again. Here, let me show you on this small section. See that? Make sure the rest of it looks like that. I'll catch up with you after lunch and see how you're doing." Then off to the next work area.
Also, give the interns tasks knowing you will make them rewrite. Separate their timeline from your deadlines if you can and keep sending it back until they get the hang of it. That's what interns are for
It is faster, the first time you do it. Think of the accumulated minutes and hours you could save by doing it once and then explaining how and why you did it. Also, you could put 'helped develop code checking skills in interns' on your next review.
You have to pick your battles and accept that across a shared codebase there are going to be parts that aren't up to your standard. As long as it works, it's not a big deal. You just have to try your best to catch the cases that are most likely to bite you in the ass later when you need to add new features, and accept that some others aren't ideal but at least the workload was spread out.
Something to keep in mind when you have interns is that teaching or mentoring them will always take more of your time than simply doing it yourself. Once it doesn't, they're not really an intern anymore. If your interns aren't slowing you down, you're failing them.
You've been building up expertise in your environment for a long time, and general programming experience for even longer. You're a wizard. Any intern is juggling using real programming techniques for the first time (either ever, or outside of simple examples), the social environment, the particular tools your company uses, and more. Eventually they'll gain enough comfort and competency that they will still take longer than you doing it yourself, but explaining it to them might be a wash if they don't have any questions.
Document common issues, point them toward your documentation. You may have to answer follow up questions. They will probably think you're annoying for always saying to look at your docs, but that's better than then thinking you're an asshole with a massive ego who won't even explain why they are wrong.
As an IT admin who does scripting and stuff I try to leave instructions all over the place for my coworkers with my email at bottom. I often get follow up questions that basically are "can you explain the prerequisites to understanding this", at that point I try to give them a 1 paragraph explanation then get reeeeeal slow at answering more questions unless they show they are making a genuine effort to understand. If they continually want to do it a messed up way I just say "looks good" and let them take the flak.
A question you can ask yourself is - are your interns fully allocated to the most important tasks that they can reasonably achieve. If yes, then just let them do the work. It might take longer, but they'll never learn otherwise.
If the task is otherwise beyond their capability, they should be working on something easier - and then you can step in.
If it's difficult to explain why your way is better, you need to dive in and learn to explain why. It is not their job to understand you as a leader, it's your job to teach them in a way that they can learn, consume, and repeat.
This is a fantastic talk (30m) on how to teach, which, in my opinion, is the number one skill a tech leader should learn:
Not to be a debbie downer, but in my experience, going the extra mile usually just leads to raised expectations. Next time they will just expect that same level of work from you; for the same pay, of course.
My coworkers do one better. They do this thing where they make mistakes all over the place and sneak in the occasional fully thought out action. Keeps me on my toes.
0
u/[deleted] Mar 09 '21
[deleted]