US Web3 startup interview: I blanked on EVM gas (SSTORE/SLOAD, warm vs cold, slot packing). What’s the mental model engineers use in real contracts?
Yesterday I had a smart contract interview with a US-based Web3 startup (small team, very practical round). They went deep on EVM storage gas: SSTORE vs SLOAD, warm vs cold access (EIP-2929), and when slot packing actually saves gas in real projects.
I thought I knew this. I understand the basics: storage writes are expensive, warm/cold exists, and fixed-size variables can share a 32-byte slot. But under pressure, the “why behind the numbers” disappeared — especially when they asked the questions that sound simple but aren’t:
“When does this matter in production contracts?”
“How would you optimize storage patterns without hurting readability, audits, or upgrade safety?”
“Would you pack this struct, or keep it clean and boring?”
I don’t want to memorize gas tables for the sake of it. I want a clean mental model I can explain in plain English during Web3 interviews — the kind of web3 interview prep where you can show reasoning and trade-offs (which I’m guessing is also part of what recruiters look for in crypto jobs when they screen for real engineering maturity).
If you’ve shipped Solidity in real systems, how do you explain:
Why are storage writes so expensive in the first place?
When does warm/cold access show up in real transactions?
Does slot packing always work, or are there layout traps?
And how do you think about this at architecture level without over-optimizing?