Video summary

How I tricked my brain to get addicted to coding

Main summary

Key takeaways

Wellness and Self-Improvement

Key wellness / motivation strategies & self-care techniques (for learning to code + staying consistent)

Reframe the pain → pleasure association

  • When you struggle, stress hormones (e.g., cortisol) can reinforce a negative memory loop like: “LeetCode = pain.”
  • The goal is to change your brain’s reward association so LeetCode becomes linked with positive feelings instead of avoidance.

Use the “15-minute rule” (start with an easy win)

  • Begin every session with a problem you’re confident you can solve in ~15 minutes (warm-up problems).
  • Examples:
    • Merging sorted arrays
    • Longest common prefix
  • Why it works:
    • Early success releases dopamine, building momentum and reducing dread.
    • Helps you avoid starting sessions with overwhelm from setup/auth/config issues.

Target “desired difficulty” (middle ground challenge)

  • Avoid:
    • Too easy (boring, no satisfaction)
    • Too hard (discouraging, quitting)
  • Instead, pick problems that:
    • Stretch you but still feel solvable
    • Often use a recently learned concept or a trick you haven’t fully mastered yet

Add competition to activate motivation

  • Join weekly LeetCode challenges or anything with rankings/time pressure.
  • Why it works:
    • Competition triggers achievement motivation (status/recognition drives effort).
    • Time pressure reduces “analytical paralysis,” helping you trust intuition.
    • Urgency can speed up solutions.

Build consistency with microhabits (tiny, automatic commitment)

  • Pair LeetCode with an existing automatic routine, e.g.:
    • Right after brushing your teeth, solve one problem.
  • Keep it extremely small so it’s nearly impossible to fail.
  • Avoid unrealistic goals (e.g., “5 problems daily”) that create guilt and cause drop-offs.
  • Expected result: after ~6 weeks, it can feel as automatic as the trigger habit.

Temptation bundling (pair work with something you crave)

  • Only allow an enjoyable reward during the coding session.
  • Example:
    • Drink favorite coffee only while actively doing LeetCode
  • Other options:
    • Favorite music, snack, or any must-have pleasure—exclusive to LeetCode time
  • Goal: rewire the association so LeetCode leads to immediate gratification and excitement.

Keep a 5-minute programming journal (metacognition + progress proof)

  • After each session, write for ~5 minutes:
    • What you learned
    • What you struggled with
    • Any insights / breakthroughs
  • Benefits:
    • Consolidates learning into long-term memory
    • Reveals thinking patterns you’d miss otherwise
    • Creates a tangible record of progress beyond “problems solved”
    • Helps motivation during stuck periods by reminding you of prior wins

Suggested starting point

If you’re overwhelmed or unmotivated, start with the 15-minute rule first—fast wins + momentum for the other techniques.

Presenters / sources mentioned

  • Sahil (presenter/host)
  • Dr. B.J. Fogg (Stanford) — behavioral design research on habit formation
  • Katie Milkman (Wharton School of Business) — research on “temptation bundling”
  • Supabase (sponsor; backend/platform mentioned)

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video