低效的技术领导的优点
When changing roles means changing mindsets
原文:mp.weixin.qq.com · 前端早读课
前言 昨日刚看到的,有兴趣可以看看。本期由@飘飘翻译分享。 正文从这开始~~ When changing roles means changing mindsets 当角色的改变意味着思维的改变 For first-time tech leads, transitioning from an engineering role to an engineering + tech lead role can be a bit of a culture shock. Gone are the days of writing code without distraction. You will be asked questions on things you’ve never previously needed to give any thought to, and those questions will be across all domains of your project. Oftentimes, these problems will come across your desk because no one else can solve them. 对于第一次担任技术负责人的人来说,从一个工程师角色过渡到一个工程+技术负责人的角色可能会有一种文化冲击。不分心地写代码的日子已经一去不复返了。你将会被问到一些你以前从未想过的问题,这些问题会涉及到你项目的所有领域。通常情况下,这些问题会出现在你的办公桌上,因为其他人无法解决它们。 While these challenges are something to look forward to, they don’t always sum to the most productive feeling days. These circumstances can beg the following questions: 虽然这些挑战是值得期待的,但它们并不总能让你的日子变得富有成效。这些情况可能会引起以下问题。
- If tech leads are still engineers, where should their focus be if it isn’t writing code like it was beforehand? 如果技术负责人仍然是工程师,那么如果不再像以前那样写代码,他们的重点应该放在哪里?
- With these new demands, how should a lead prioritize what is most important, especially when demands stack up faster than they can be addressed and when it comes at the expense of your morning’s to-do list? 面对这些新的需求,领导应该如何优先考虑哪些是最重要的,尤其是当需求堆积如山无法解决,而且是以牺牲你早上的待办事项清单为代价的时候? To answer those questions, one must fully understand the role of a tech lead and why companies find their position so important. 要回答这些问题,我们必须充分理解技术负责人的角色,以及为什么公司认为他们的职位如此重要。
The Foreman Analogy
工头的比喻 Tech leads are like project foremen. They don’t design the visual appearance of a building, but they oversee the technical aspects required to get it built. Let me draw a few parallels by asking some rhetorical questions. What is the role of a foreman on a construction site? Does that person hoist the steel beams in place because he can do it faster than the crane operator? Does he pour the cement or install the windows or wire the building? 技术负责人就像项目工头。他们不设计建筑物的视觉外观,但他们监督建造所需的技术方面。让我通过问一些反问句来做一些对比。在建筑工地上,工头的角色是什么?这个人把钢梁吊起来,因为他比起重机操作员做得更快吗?他是否浇筑水泥、安装窗户或为建筑物布线? The answer to all of those questions is, of course, no. Foremen are not hired to that position because they are the best, fastest, or most knowledgeable of all of the related aspects for that project. Instead, they: 当然,所有这些问题的答案都是否定的。工头不是因为他们是最好的,最快的,或对该项目所有相关方面知识最渊博的。相反,他们是。
- have a unique understanding of their project’s demands 对项目的要求有独特的理解
- are a “people person” that can rally their colleagues around a cause and keep the team flowing well 你是一个“善于交际”的人吗?
- have enough knowledge of their project’s components to know when something is going right or wrong and requires further attention 对项目的组成部分有足够的了解,以便知道什么时候是正确的,什么时候是错的,需要进一步关注
- keep the timeline on track 保持时间表的正常运行 Notice that there are very few technical requirements in the above list. Swap out “foreman” for “tech lead,” and you have nearly an exact blueprint of what to do. 请注意,上面的清单中很少有技术要求。把 "工头 "换成 "技术负责人",你就有了一个大致准确的工作蓝图。
Keep Your Colleagues’ Plates Spinning
让你的同事们的盘子转起来 If you can pick up a story because the team is flowing well, and there aren’t other areas that require your attention, then go ahead. However, that is no longer your primary obligation. 如果你能够选择一个故事是因为团队运作良好,并且没有其他需要你关注的领域,那么就去吧。然而,这不再是你的主要义务。 Even if you are a savant who could literally smoke your keyboard as you write out line after line of perfect code, you will never be as productive as your team. All it takes are a few engineers (even new ones) to outperform a senior. 即使你是一个可以在一行接一行地写出完美代码的时候抽烟的专家,但你永远不会像你的团队那样富有成效。只要有几个工程师(甚至是新来的)就能胜过一个高级工程师。 Being a tech lead isn’t a pat on the back for being the most productive engineer on the project, but it is a (kindly, metaphorical) kick in the rear to make your team as productive as possible. Your job is to remove the barriers and friction to ensure that the development process is as seamless and smooth for everyone else as possible. You are looking out for your team, not yourself. 作为一个技术负责人,并不是因为你是项目中最有生产力的工程师,但它却是一种鞭策,让你的团队尽可能保持生产力。你的工作是消除障碍和摩擦,确保开发过程尽可能顺畅。你关心的是你的团队,而不是你自己。
Make Difficult Jobs Simple
让困难的工作变得简单 This point is one of those times where you put the “tech” in “tech lead.” You are not suddenly untechnical because you’ve stopped writing code every day. Here are some ways you can make the jobs of your colleagues easier: 这是你把“技术”放在“技术领先”的时候之一。你不会因为不再每天写代码而突然不懂技术。这里有一些方法可以让你的同事的工作更简单。
- Identify bad patterns used repeatedly in the codebase and set the standard for a new way of doing them. 识别代码库中重复使用的不良模式,并为执行新方法设置标准。
- Offer to take the difficult or elusive problems off your teammates’ plates so that they can go on being more productive and having fewer spin-cycles. 帮你的队友解决困难或难以捉摸的问题,这样他们就能继续提高工作效率,减少工作循环。
- Fill in the biggest gaps in your internal documentation so that future eyes and fingers can understand what to do when, inevitably, that subject needs to be revisited or implemented elsewhere. 在你的内部文档中填满最大的空白,这样以后的眼睛和手指就可以知道当这个主题不可避免地需要重新审视或在其他地方执行时该怎么做。
- Refactor or repackage complex code that shows up on multiple occasions and always gives your colleagues a hard time. 重构或重新打包那些在多个场合出现的、总是让你的同事感到棘手的复杂代码。
- If your team is stuck on something, then take the lead and find the answer for it. This answer can be technical or non-technical in nature. Either way, it was a blocking issue that needed attention. 如果你的团队在某件事情上被卡住了,那就带头为它找到答案。这个答案可以是技术性的,也可以是非技术性的。无论哪种方式,这都是一个需要关注的阻塞问题。
Blaze the Trails
开辟道路 Unknowns can be intimidating. That is why companies send out their best to tackle them. These discovery processes aren’t always the most straightforward or productive feeling exercises, but they often prove incredibly necessary and insightful for the product or technical direction. 未知的事物可能是令人生畏的。这就是为什么公司派出他们的精英来解决这些问题。这些发现过程并不总是最直接或最有成效的感觉,但它们往往被证明对产品或技术方向有难以置信的必要性和洞察力。 Your trial-and-error or start-and-stop investigation may be slow, but will unlock the virtue of speed whenever it comes time for you to hand the baton to the team to implement the feature. It is a trade-off that pays dividends. 你的试错或开始和停止的调查可能是缓慢的,但每当你把接力棒交给团队实施功能时,就会释放出速度的美德。这是一个有回报的权衡。 Once you have gained and digested a relative expertise on this subject, the added time you spend sharing and documenting your findings will only make the jobs of two, three, four, or more engineers easier and less error-prone. This process also sets the trend for how this feature and similar situations in the future are addressed. This is an important role that can have long-term impacts. 一旦你在这个问题上获得并消化了相对的专业知识,你花在分享和记录你的发现上的额外时间只会让两个、三个、四个或更多的工程师的工作更容易,更不容易出错。这个过程也为这个功能和未来类似情况的处理方式设定了趋势。这是一个重要的角色,可以产生长期的影响。
Set the Technical Vision and Direction
设定技术愿景和方向 I cannot emphasize this point enough. This aspect of technical leadership is an opportunity to flex your technical muscles and be a leader of vision. Even though the product team is responsible for the application’s feature set and appearance, that doesn’t make your role any less important. 这一点我怎么强调都不为过。这方面的技术领导力是一个发挥你的技术力量和成为愿景领导者的机会。尽管产品团队负责应用程序的功能设置和外观,但这并不意味着你的角色不重要。 How can the product’s vision be set and continued? 如何设定和延续产品的愿景?
- Establish an architectural standard or a general practice for building commonly used components. 为构建常用组件建立一个体系结构标准或通用实践。
- Research tools or libraries that can ease the burden of custom development or simplify complex implementations. 研究能够减轻定制开发的负担或简化复杂实现的工具或库。
- Identify areas where your team is not adhering to best practices and address them. Oftentimes, this problem can stem from a lack of knowledge or time. 确定你的团队没有遵循最佳实践的地方,并解决它们。很多时候,这个问题可能源于知识或时间的缺乏。
- Keep up to date with the latest development trends so that your team isn’t falling behind. This often involves a lot of reading during your downtime (at work, of course, not off the clock) to stay abreast of the industry’s direction. 紧跟最新的开发趋势,这样你的团队不至于落伍。这通常需要你的休息时间(当然是在工作中,而不是在下班后)进行大量的阅读,以跟上行业的发展方向。
- Taking the time to build out a new way of doing something, then use it as a template for the rest of the team to follow as new functionality is added or old code is migrated to newer standards. 花时间建立一个新的做事方式,然后把它作为一个模板,供团队其他成员在增加新功能或将旧代码迁移到新标准时遵循。 From a technical standpoint, fundamental practices and architectural patterns can be the most impactful and far-reaching decisions you’ll ever make. Being a good leader involves listening to your team and gathering feedback, but ultimately being in charge of making the go/no-go call. 从技术角度来看,基本实践和体系架构模式可能是你所做的最有影响和最深远的决定。作为一个好的领导者,你需要倾听你的团队并收集反馈意见,但最终还是要负责决定是否采取的决定。
Conclusion
结论 Now that I’ve laid out the most important jobs of an engineering tech lead, suddenly, they don’t seem so unproductive. Sacrificing your morning’s neatly organized to-do list for the ongoing benefit of an entire team seems like a worthy exchange. 现在,我已经列出了一个工程技术负责人最重要的工作,突然间,他们似乎并不那么无益。为了整个团队的持续利益而牺牲你早上整齐的待办事项清单似乎是一个值得的交换。 In a sense, these leaders are no longer concerned with the minute details of the code or their own productivity, but with the broad expanse of the entire project, team, and codebase. After all, when the project, team, and technical direction are healthy, the code will reflect that. 从某种意义上说,这些领导者不再关心代码的微小细节或自己的生产力,而是关心整个项目、团队和代码库的广阔空间。毕竟,当项目、团队和技术方向是健康的,代码就会反映出来。 Without code dominating your attention and thoughts, your top priority becomes what will move the team and project forward in the best possible manner. This notion helps keep things in balance, especially when requests and priorities stack up faster than you can process. 如果代码不占据你的注意力和思想,你的首要任务就会变成以最佳方式推动团队和项目的发展。这种观念有助于保持事情的平衡,特别是当请求和优先事项的堆积速度超过你的处理能力时。 So next time you feel unproductive because your focus has been derailed, ask yourself this: is my team still moving along smoothly? If so, you can rest assured that you are doing the right thing. After all, we can quote Peter Parker when we say, “with great power comes great responsibility.” Use it wisely. 因此,下次当你因为注意力偏离了方向而感到效率低下时,请问一下自己:我的团队是否仍在顺利地前进?如果是这样,你可以放心,你做的是正确的事情。毕竟,我们可以引用彼得-帕克的话说,"巨大的权力伴随着巨大的责任"。明智地使用它。 关于本文 译者:@飘飘 作者:@Oliver Spryn 原文:https://betterprogramming.pub/the-virtues-of-an-unproductive-tech-lead-b17b31ee9065