All writing

Work & Career

Getting Laid Off Is Not the End of the World: An Engineer's Guide to Restarting After Adversity

Translated from the original Chinese essay · Read the Chinese original →

The morning I received my first layoff notice, I sat at my desk staring blankly at the screen.

Slack was still pinging, and colleagues around me went on with their meetings and coding as if nothing had happened. But I knew my career system had just crashed.

The video call with the CTO and my manager was short—from the opening remarks to "you'll receive an email with the compensation package," it took less than ten minutes. I barely got a word in (and honestly, there wasn't much to say). My access was already being revoked, the email client popped up a login window, and arrangements were made to collect my equipment. In that moment, I didn't even have room to react. I just felt a familiar sensation: like a long-running service being hard-stopped without even a chance to write its logs.

It wasn't anger or shock, but a kind of blankness. I suddenly realized: my career had been force-shut-down, and I hadn't saved my progress.


Layoffs Are Not a Performance Review; They're Just a Line on a Spreadsheet

Whether you're an engineer, a designer, or a product manager, the moment you're laid off, many people feel something similar: it's like a feature you've been pushing forward suddenly gets its PR reverted, with no explanation and no chance to push back.

I used to think being laid off was a euphemism for "you didn't perform well enough." But after actually going through it, I've come to understand:

Layoffs are often not about us doing something wrong. It's that the entire system has changed its rules. We just happened to not be in the next run plan.

Some people had just transferred to a new role and hadn't found their footing yet. Some were already on marginal projects, just lucky before. Others were simply high-title, high-salary, and became "priority release targets" under budget pressure.

We can be hardworking, reliable, and highly capable, and still end up on the list. Not because we're bad, but because we're not part of the company's "current optimal solution."


Those Days, I Felt Like I'd Lost My Main Function

The 72 hours after the layoff were the most "offline" I've been in years. Not that I was disconnected from the internet, but my whole being was like a crashed program—no input produced any response.

Many people say you should "update your resume immediately and find the next job," but I truly couldn't. At that point, I couldn't even face IntelliJ on my screen. It was as if it was reminding me: no matter how much you write now, it's useless.

I forced myself not to open job boards and did only one thing: go outside. I met friends for meals, took walks alone, read a few unrelated books. Those days, I didn't try to think or find a "way out." I just let myself recover.

Looking back now, that wasn't procrastination. It was a necessary "cool-down period before restart." When a program crashes, a restart involves clearing the stack and flushing the cache. Our restart takes even longer. Otherwise, if we come back online with old state, we'll crash again sooner or later.


Sometimes It's Not That You're Slow; You Genuinely Can't Wait

Of course, I know not everyone can afford a 72-hour cool-down like I did.

A friend of mine was in the middle of renewing his lease the day he was laid off, and his credit check hadn't gone through yet. He had no time to think about retrospectives or rebuilding confidence. He jumped straight into emergency mode:

Who's hiring freelancers? Sign up for Fiverr and remote gig platforms right away.

Do any friends have side projects that need help? Ask directly.

Even if GitHub doesn't have many projects, can you put together a one-page portfolio? Good enough to show.

It's not about avoiding emotions; it's about switching threads. First, keep the system from crashing, then gradually tune performance.

So if you're in that "survive first" state right now, that's okay. Handle the emergency first, optimize later. There will be time to patch the version.


The Real Turning Point: Retrospective Without Self-Blame

Once I recovered a bit, I started trying to understand: what actually happened? This step is very hard because you have to face some things that are hard to articulate.

I didn't sit down for a formal retrospective. Instead, like writing a technical incident report, I reasoned with myself:

Was the project direction already unclear when I joined?

Were there early signs that the team would be "adjusted," and I just didn't take them seriously?

Was I actually not a good match for this team?

As I thought, I realized: often we're not unaware of problems; we just didn't want to face them before. Or maybe, when the system is still running, we don't want to think too much.

Being laid off leaves us no choice, forcing us to do a thorough system check.

The most important thing is not to blame yourself. Don't take the company's mistakes and pile them onto your own shoulders.


The Resume Isn't the Most Important "Restart File"; Confidence Is

When I finally started updating my resume, I hit a very real problem: I wasn't sure where I wanted to go.

I used to think "find a new job ASAP" was the top priority. But when I actually sat down to code, what felt empty wasn't the code—it was my confidence.

I started doing very small things, like re-reading my old project notes, tidying up a couple of small utility scripts, contributing to a friend's side project. Not for any grand purpose, but to rebuild the feeling that "I'm still useful."

I also carefully summarized the projects I'd done, drew architecture diagrams, explained what went well and what didn't, how tradeoffs were made, and what I'd improve if I did it again. Then I slowly started writing small stories for behavioral questions.

Confidence isn't built by stacking successes; it's repaired through a deeper understanding of yourself.


Real Capability Is Knowing How to Restart

Someone asked me, looking back now, how do you feel about being laid off?

Honestly, I don't think it's true that it "trained me" or "made me stronger." Layoffs are fundamentally destructive; they don't intend to teach you anything. But if you can come back online from a broken state, that's your own achievement.

I just tried, throughout the process, not to let myself completely break—not to lose confidence, connections, or self-definition.

Now I've started a new job. I'm a bit more cautious in some ways, and a bit more relaxed in others. I no longer take "stability" for granted, and I'm not as afraid of "interruptions" anymore.

Because I know:

The strongest engineers aren't those who never have bugs, but those who know how to check logs, fix bugs, and restart services.

A layoff is like a forced kill -9—brutal, but it gives us a chance to come back online with a cleaner process.


I've personally been laid off three times, so I'm quite experienced in this area.

Maybe your experience will become someone else's restart button to get through the dark.