---
title: "Before you write any code, ask these 3 questions:"
date: "2025-12-04"
language: en
text: full
source: "LinkedIn"
format: "Post"
credit: "By Damir Majer"
contributors:
  - name: "Damir Majer"
    role: author
original: https://www.linkedin.com/feed/update/urn:li:share:7402263785886900224
canonical: https://damirmajer.com/notebook/2025-12-04-before-you-write-any-code-ask-these-3-questions/
---

# Before you write any code, ask these 3 questions:

LinkedIn · Post · By Damir Majer · 4 December 2025

1\. "Can someone else understand this in 6 months?"\
→ If not, simplify\
→ Future you will thank present you\
→ "Clever code" ages like milk, "simple code" ages like wine

Test: Can a junior developer explain what this code does?\
If no → Too complex.

2\. "How will I test this?"\
→ If you can't test it, redesign it\
→ Testability = good design signal\
→ Untestable code = poorly designed code (always)

Test: Can you write a unit test in &lt; 5 minutes?\
If no → Design needs refactoring.

3\. "What breaks if I'm wrong?"\
→ If production breaks → Add safeguards (validation, error handling, monitoring)\
→ If nothing breaks → You're overthinking it\
→ Risk-appropriate engineering (not over-engineering)

Test: What's the blast radius of a bug here?\
High blast radius → More testing, more reviews.\
Low blast radius → Ship with confidence.

These 3 questions prevent 80% of bugs.\
Not after the code is written.

BEFORE you start typing.\
That's the Clean Code mindset shift:

Before ASE Coaching:\
→ Write code → Hope it works → Debug when it breaks

After ASE Coaching:\
→ Think first → Design for testability → Write with confidence → Ship safely

One developer in our program (zero bugs for 1.5+ years) asks these 3 questions every time.

Not because he's paranoid.\
Because he's professional.

What question do you ask before coding?

#CleanCode #BestPractices #SoftwareDevelopment

## Sources

- [View the original on LinkedIn](https://www.linkedin.com/feed/update/urn:li:share:7402263785886900224)
