CEI rule in interviews — when do you actually break it without breaking the contract?
Everyone tells juniors: “Follow Checks-Effects-Interactions.” ✅
But the moment a Solidity interview goes deeper — we freeze. 😅
Real world smart contract security isn’t just memorizing rules. Sometimes you do call external contracts early (maybe you need to verify a state on another protocol before changing your own storage). Other times, sticking blindly to CEI can even hurt functionality.
What interviewers really want to see is your reasoning around re-entrancy risks, gas refunds, and how you structure interactions depending on trust boundaries.
So I’m curious — have you hit a moment where CEI truly mattered in your code?
When did you realize it’s a guideline, not a religion?