Senior Engineers Ask the Right Questions Before Coding

Salam all! The difference between junior and senior isn't knowing how to write a loop. It's knowing what happens when the loop runs 10 million times. Take a simple task: find the maximum number in a list. A junior might write: def find_max(nums): return max(nums) A senior also uses max(). But they also ask: What if the list is empty? What if it's 10 million numbers? (O(n) vs O(n²) matters here) What if the data is streaming and doesn't fit in memory? What if I need to do this repeatedly on the same dataset? The code looks the same. The thinking is different. Joe Reis talks about fundamentals not as "knowing syntax" but as "understanding tradeoffs." That's become my new focus. It deserves all my attention. I used to think being a good engineer meant knowing the right function. Now I know it means asking the right questions before writing a single line. What's one question you always ask yourself before you start coding? #DataEngineering #Python #SystemDesign #Fundamentals #JoeReis Wasalam!

To view or add a comment, sign in

Explore content categories