NoFOMO
搜索 中EN 登录 注册

最高第 2 名 已下榜

Superlogical全员直推main

Mitchell Hashimoto 介绍其公司 Superlogical 全员可信直推 main 分支、机器辅助代码评审的开发模式。

名次变化

要点

  • Mitchellh 表示,Superlogical 的每个人都获信任可直接推送到 main,推送前有机器辅助代码审查,推送后有真人加更多机器辅助审查,且几乎不做 PR。
  • 团队一致认为,如果招来的人不被信任直接推送到 main,那他可能不适合这个团队。
  • 每个人都可以发版;发布流程全自动,启动后会触发 Slack 通知和 15 分钟倒计时,期间公司任何人都可以暂停发布,15 分钟不可覆盖,只能暂停。
  • Mitchellh 说自己在 macOS/iOS UI 方面“相当糟糕”,所以涉及 UI 的功能会开 PR 请人帮忙看,但业务逻辑和内部实现直接推 main。

要点和反应摘要由 AI 依据本页推文整理,请以原推为准。 我们怎么用 AI

原推

Mitchell Hashimoto @mitchellh 24.1万 粉丝

We're still so small but I'm loving the team we've got at Superlogical. They're so talented and kind and love their craft. It's a different era of software development and our expectations and practices reflect that. I want to share a bit about how we work. First, everyone is trusted to push to main. We do machine-aided code review pre-push and human plus more machine-aided code review post-push. Limited to no PRs. Culturally, we've all agreed that if we ever hire someone who we DON'T trust to push directly to main, then they probably aren't the right fit for the team (so far, not an issue). Some common sense here: if someone is stepping outside their lane or comfort zone, we'll open PRs. For example, I'm pretty trash at macOS/iOS UI, so I'll open PRs for UI-affecting functionality and ask for eyeballs/help. But for business logic and internals, I push to main. Second, everyone can cut a release. Our release process is fully automated and when you start a release (for any platform) it triggers a Slack notification and a 15 minute countdown. The 15 minute warning is a final gate that allows people to review plus collaborate on a changelog. During that 15 minutes, anyone in the company can pause the release rollout. After 15 minutes, the train leaves the station. You can't override the 15 minutes (except to pause). It gives everyone a chance to step in. Third, we avoid synchronization through fast remediation rather than through planning. The server and clients on various platforms ship features as fast as they can. We use post-hoc human review and AI-assistance to identify feature mismatches across products ("Windows has support for X and Mac doesn't." or "Mac and Windows differ in their behaviors for Y in this way."). This avoids expensive "sync" meetings and coordination. We trust that producers of features are mindful of what they're producing and we trust that adjacent product lines will self-synchronize quickly. In practice, we see feature parity across platforms within 24 to 48 hours. All of this works on mutual trust. It ONLY works with mutual trust. Everyone at all times has to trust that they've got each others back: 1. Push to main only works if you fix your mess, or if you don't, that someone else will quickly but that you'd do the same (and generally in equal amounts). 2. Anyone can deploy only works if you trust everyone to cut at the right time, with the right changelog, and that people will respect the 15 minute timer. 3. Sync through fast remediation only works if you trust other teams will pick up and integrate your work quickly, which only works if you would too. It also only works if you are fairly producing mismatches (e.g. not constantly). We've got a great team. I know we're still small and that these practices will change in many ways as we scale. But this is already a markedly different practice than what I would've done 15 years ago. In general, we are building from day 1 on a foundation of mutual respect, excellence, and trust. And it's been awesome.
3,972点赞 154转发 154回复 20.4万浏览

在 X 上查看 收藏

X 上的热门回复

X 上的反应: 回复以具体提问为主,而非争论:有人问落地后代码审查用什么工具、机器如何完成审查,有人问如何与新入职者建立信任、最难改掉的旧习惯是什么,还有人问是否会支持更多平台或提供独立无头服务器。一位独立开发者说,自己怀念的是有人能提出不同意见。

登录后查看 X 上的 5 条热门回复

来自 @steveklabnik, @yaserabbass, @vasilios_s 等,已过滤广告,附中英文翻译。

免费注册 已有账号?登录

讨论 0

还没有人讨论,来说第一句。

推荐信源

觉得我们漏了哪个一手信源,或者该关注什么话题?告诉我们。审核通过后,所有人的榜单都会覆盖到它。

@用户名,或者主页链接