Viktor Debre’s Post

Three patterns for becoming a good engineer Three ideas I use every day: 1. Separate the “what” from the “how” My functions used to do too much because I thought in terms of tasks, not responsibilities. Now I ask myself: “What would force me to rewrite this?” If there’s more than one answer, I split the function. Yes, the code gets longer. But it becomes far easier to change. 2. Write code for the person debugging it at 2 AM That person might be you - six months from now, with zero context. A simple rule: if understanding requires holding more than 3 things in your head, refactor until it doesn’t. 3. Design for failure first Most of us design the happy path, and only later think about errors. Flip it. Start by listing everything that can go wrong. Treat the success path as just one of many scenarios. This single shift completely changed how I think about reliability. #SoftwareEngineering #CleanCode #CodeReview #Programming #Developers #TechLeadership #CodingLife #Refactoring #CodeQuality #EngineeringCulture #DevMindset #BestPractices #LearnToCode #TechCareers #GrowthMindset

Viktor Debre Solid advice. Especially point #2 - writing code for your future self (the 2 AM debugger) is a lifesaver. Readability over complexity, always. 🎯

To view or add a comment, sign in

Explore content categories