DEV Community

Timothy Adeleke
Timothy Adeleke

Posted on

You Learn Something Every Day While Coding, Then You Forget It

You learn something valuable every day while coding.
And you lose it by tomorrow.

That’s the real problem.

Most developers don’t fail to write; they fail to remember.
Insights disappear between commits, deadlines, and context switches.

So I made CodeDraft proactive!

Yes!

Now it doesn’t wait for you to be disciplined.
It watches your workflow and nudges you at the exact moment learning happens ⚡️

🌟 New Features

1. Intelligent Background The Monitoring

CodeDraft now watches your activity (file saves, git commits) to identify "interesting" moments.

  • Try opening a source file
  • Make a significant change (e.g., add a new function with >20 lines or add a try/catch block).
  • Save the file.

Result: You should see a notification: "Interesting change detected. Capture this learning?"

2. Git Commit Analysis

When you commit code, CodeDraft analyses the message and changes.

Here is how you can verify the changes:

  • Stage some changes.
  • Commit with a message containing keywords like fix, refactor, or feat (e.g., git commit -m "fix: resolve null pointer exception").

Result: CodeDraft will prompt: "Significant commit detected: ... Capture this learning?"

3. Status Bar Integration

A new status bar item keeps you informed.

👁️ (Eye Icon): CodeDraft is watching (0 pending captures).
📓 (Notebook Icon) + Count: Shows how many learnings you've captured.
Clicking: Quickly generates a draft from pending captures.

4. Automated Reviews & Drafts

Weekly Review: On Fridays at 5 PM (configurable), it reminds you to review your week's learnings.
Draft Suggestion: Once you accumulate 5+ captures, it suggests generating a draft.

⚙️ Configuration

You can customise the proactive behaviour in VS Code settings (CodeDraft > Proactive):

Try using CodeDraft for a day of normal work.
Adjust the Notification Cooldown if you find it too chatty or too quiet.


📦 Quick Links


If you are just hearing about Codedraft, it is an intelligent coding extension that helps you turn your daily coding into publishable drafts for blogs or social media. Read more about it here


Top comments (0)