TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Premortems will keep your code alive

67 pointsby eschluntzover 3 years ago

5 comments

cactus2093over 3 years ago
I like this idea and this framing of it. A way I&#x27;ve put it in the past is that a postmortem is only really useful if you thought that you were already doing everything you could to prevent an issue of this type. In 95% of incidents I&#x27;ve experienced in my career, this is just not the case. There was a known lack of testing, the deadlines were too tight and we decided to push through and take shortcuts to launch anyway, there was known tech debt where everyone on the team was scared of this code but it was too much work to address it so it kept getting put off, etc.<p>Often every person on the team could rattle off 5 major problems off the top of their head. That&#x27;s it, that&#x27;s your postmortem right there, let&#x27;s go and prioritize solving these underlying problems. But engineering orgs get obsessed with establishing a sacred heavy-handed process around postmortems. There must be a reviewer, and a chairperson, and a standardized form that takes an hour or two to fill out, and several rounds of revisions. This gives you a nice shiny metric to point to where you can say that 100% of incidents were followed up with a postmortem. If any big picture questions come up during the postmortem, well that&#x27;s not the kind of thing you can just make a jira ticket for, i.e. &quot;don&#x27;t make the deadline so short next time&quot;. So we&#x27;ll move right past that one and then make one or two actionable jira tickets like adding another view to the metrics dashboard which overfits on this particular issue while doing nothing to address the underlying problems, and then get back to work taking shortcuts and building up more tech debt on a whole new set of features.<p>A premortem may end up with the same sort of perverse incentives, but it&#x27;s an interesting thing to try. If it&#x27;s something the org commits to actually putting aside time for ahead of every deadline, I could even see it potentially helping a little bit to address some of the underlying problems.
评论 #28857320 未加载
评论 #28869614 未加载
评论 #28857982 未加载
评论 #28882533 未加载
nickm12over 3 years ago
Rather than ask &quot;what could go wrong?&quot; the standard technique of premortems[1] is to imagine an specific thing went wrong and then brainstorm root causes. Our brains are much more creative when working backwards this way.<p>I&#x27;ve done premortems for the launches of new features where we imagine some symptom (&quot;user apparently saves data, but it doesn&#x27;t commit&quot;) and then have the team try to hypothesize causes for it. You can generate the symptoms either by thinking of common failure modes or having people on the team privately come up with their own cause-symptom pairs.<p>Another important thing to do is use the exercise to discuss what tools&#x2F;dashboards&#x2F;techniques you would use to diagnose and repair these issues. his can help you find gaps in your monitoring, logging, and diagnostic capabilities.<p>[1] <a href="https:&#x2F;&#x2F;hbr.org&#x2F;2007&#x2F;09&#x2F;performing-a-project-premortem" rel="nofollow">https:&#x2F;&#x2F;hbr.org&#x2F;2007&#x2F;09&#x2F;performing-a-project-premortem</a>
onion2kover 3 years ago
<i>Before deploying new code, ask yourself and at least one other person “If this is going to cause a major issue, what would it be?”</i><p>I love a premortem, but this isn&#x27;t quite how I do them. I prefer to start long before a deploy, before a feature hits sprint planning. By asking my team &quot;What could go wrong if we start this?&quot; we often uncover some of the unknowns that can derail our engineering effort. It&#x27;s particularly important to get the quality assurance team involved that early too, by getting them to think about how they&#x27;ll test the feature - QA should be about implementing processes to assure quality after all.
评论 #28867120 未加载
eschluntzover 3 years ago
Author here! Sorry about the CSS crashing :p<p>Don&#x27;t worry, our robots are hosted separately from our marketing site.
codetrotterover 3 years ago
Page seems to not load CSS for me. Anyone else seeing that happening?<p>Edit: Here’s a snapshot of the page with seemingly no CSS loaded, same as I was seeing <a href="https:&#x2F;&#x2F;archive.ph&#x2F;qe2IW" rel="nofollow">https:&#x2F;&#x2F;archive.ph&#x2F;qe2IW</a>
评论 #28858045 未加载
评论 #28855797 未加载
评论 #28855777 未加载