Skip to content
Anton GoncharovAI systems developer

The Willpower Instinct

Kelly McGonigal

  • Habits
  • Psychology

A book based on “The Science of Willpower”, the course Kelly McGonigal teaches at Stanford. She divides self-control into three powers — “I will”, “I won’t” and “I want” — and uses research to explain why we lapse and procrastinate and how to fix it.

Key ideas

  1. Willpower is like a muscle: it tires by evening, but it can be trained.
  2. Sleep, movement and calm breathing give more self-control than forcing yourself.
  3. Praising yourself for “good” behavior gives you moral license to lapse — keep your eye on the goal, not on your merits.
  4. Guilt after a lapse leads to another lapse, while self-compassion leads back to the goal.

Where and how I applied it

  • Demo · Next.js website · Python in the browser, AI mentor

    Online school with a student account

    A student dashboard with an activity calendar and a day streak: the habit of studying is supported by visible progress, not by forcing yourself.

  • Demo · Telegram and Max · points, QR at the till, broadcasts

    Loyalty program in Telegram and Max

    “Every sixth coffee free” stamps and guest levels: a reward for a habit people want to come back to.

More on the shelf

  • Reading

    Hands-On APIs for AI and Data Science

    Ryan Day

    A practical book on building an API for data and connecting AI to it. The running project is a FastAPI service with a database and documentation, then an SDK for it, using the API in analytics and, finally, LangChain agents that call the API themselves.

    AI and agentsPythonAPIApplied in 3 projects
  • Reading

    Server Applications in Python, Django, Flask and FastAPI

    R. S. Bukharev

    The path of server-side development in Python, from sockets and protocols to architecture and launch on a server. Django, Flask and FastAPI are covered through real projects: a CRM system, a Telegram bot with server-side logic, a REST API for a mobile app and a WebSocket chat. Separate chapters cover caching and scaling, Docker and Kubernetes, PostgreSQL, MySQL, SQLite and MongoDB, and security: password hashing, JWT and OAuth 2.0, protection against SQL injection, XSS and CSRF, TLS.

    ProgrammingPythonBackendApplied in 1 project