What's the quickest way to fail a tech interview?
No it's not a wrong answer or floundering with algorithms. Not even being nervous or shy or having a language barrier. Culture fit is the least of your worries if you make this mistake.
The fastest red flag I've seen is when you're confidently wrong.
We had a candidate recently. Great guy, oodles of talent, gritty as heck. Had a couple of fantastic interviews, even taught me about datalist. Clearly self-taught and not ready to be senior, but so much potential. My favorite trait in a not-yet-senior. I'd give him a chance any day.
But his system design 😬
Swiz: "Hello again", I interviewed him twice, "today we're going to design a system. You'll build a schema, write a few SQL queries, and sketch out a system architecture. Here are the requirements"
Our prompt includes user numbers, traffic patterns, and a problem where everything connects. This is important.
Him: "Okay first I would shard the database"
Swiz: "Ok ok let's back up. Why don't we start with the schema, look at the traffic numbers again, and talk about scale when everything's in place"
That helped. He designed the system, wrote the queries, and struggled with the scale question. Which is fine, not everyone is an expert in scaling databases.
I thought he'd make a fine addition to the team. The hiring manager felt strongly about the confidently wrong red flag and we passed. 💩
Why sharding was the wrong answer
Sharding is a last resort scaling strategy for relational databases. You reach for sharding when you have a lot of writes and don't care about relations across shards.
Gaming worlds are shards, for example.
Diablo has separate servers (and databases) in Europe and in North America. You can't use the same character on both. Your friends don't translate. Even your username doesn't. When I play these days, I have to use the European servers even though I'm in San Francisco. I don't exist on the North America shard. 💩
There's many scaling strategies like indexes, better queries, partitioning, vertical scaling, and read/write replicas you should try first. Sharding comes with lots of drawbacks.
Yes social networks like Twitter have solved this problem. But they have tens of thousands of writes per second. And it took years of engineering effort to fix. I think several academic papers came out of the effort.
You don't need sharding. I once had to push Postgres and Rails pretty far and it worked fine.
Why "confidently wrong" is a red flag
Being wrong is fine. Being confidently wrong is not.
To paraphrase the hiring manager:
We need to trust our engineers to ask questions when they're out of their depth. We don't want to babysit.
How to avoid being confidently wrong
It's hard. I struggle with this a lot.
Like when I failed my Google on-site interviews because I read about tries the week before, got excited, and told every interviewer that accessing a hash map is
O(key length) because you'd implement it with a trie. Every person gave me a chance to catch my mistake. I confidently did not.
The best solution I've found is to do your research and ask why.
"Here is my answer and this is why" 🤔
"Wait a minute, that makes no sense, that's a terrible why. Let's try this other answer ..."
Iterate until your reasoning makes sense. Because X said so in a blog or book is never the right why.
And yes going through that chain of logic will impress an interviewer. And your peers.
PS: missing the why behind their answer is the quickest way to spot someone how has book knowledge but doesn't understand. Or as Feynman liked to say "Knowing the name of a thing is not the same as knowing the thing"
Become a *true* Senior Engineer
Get promoted, earn a bigger salary, work for top companies
Getting that senior title is easy. Just stick around. Being a true senior takes a new way of thinking. Do you have it?
Leave your email and get the 5 Action Steps to Senior Engineer - a short email course showing you steps you can take right now to become a true senior engineer and go from writing code to being a true collaborative partner that builds products.
5 Action Steps to Senior Engineer
Get a short email series with action steps you can take right now to be true senior engineer. Go from being a pair of hands that write code to a collaborative partner that others rely on.
Here's what a reader had to say:
Hey Swiz, I really enjoyed the series. Quite useful 5-step roadmap, if everybody kept those things in mind we would be in a much better place and our industry would be a more mature and less hype-driven one. Thanks, keep up the great work!
Senior Mindset Book
Get promoted, earn a bigger salary, work for top companiesLearn more
Have a burning question that you think I can answer? Hit me up on twitter and I'll do my best.
Who am I and who do I help? I'm Swizec Teller and I turn coders into engineers with "Raw and honest from the heart!" writing. No bullshit. Real insights into the career and skills of a modern software engineer.
Want to become a true senior engineer? Take ownership, have autonomy, and be a force multiplier on your team. The Senior Engineer Mindset ebook can help 👉 swizec.com/senior-mindset. These are the shifts in mindset that unlocked my career.
Curious about Serverless and the modern backend? Check out Serverless Handbook, for frontend engineers 👉 ServerlessHandbook.dev
Want to Stop copy pasting D3 examples and create data visualizations of your own? Learn how to build scalable dataviz React components your whole team can understand with React for Data Visualization
Did someone amazing share this letter with you? Wonderful! You can sign up for my weekly letters for software engineers on their path to greatness, here: swizec.com/blog
By the way, just in case no one has told you it yet today: I love and appreciate you for who you are ❤️