Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Refactor Yourself!

Refactor Yourself!

Have you ever tried building up a new habit or changing an existing one? It’s a hard thing to do, and we often fail at making new habits stick.

We find it hard to improve the design of our own behaviours, but when it comes to our code, we do know what to do. We know how to refactor to make sure that the code we have is improving without changing any unexpected behaviours. So how about we apply the same techniques to ourselves?

In this talk, we’ll look at the psychology of creating new habits, how this relates to refactoring code and how we can combine the two to drive change to our own behaviours.

Avatar for Melinda Seckington

Melinda Seckington

May 01, 2025
Tweet

More Decks by Melinda Seckington

Other Decks in Technology

Transcript

  1. SECKINGTON.COM LEARN BUILD SHARE What went well? What did you

    learn? What was unusual? Who helped you? What was your main strength? What inspired you? What went less well? What did you fail at? What would you change? Who did you help? What was your weakness? What still puzzles you?
  2. SECKINGTON.COM LEARN BUILD SHARE What are your values? Re fl

    ect on who you are. How would you describe yourself in 5-8 words?
  3. SECKINGTON.COM LEARN BUILD SHARE candid? courageous? ef fi cient? empathetic?

    imaginative? inspiring? playful? What did I do that was: What could I do that was more:
  4. SECKINGTON.COM LEARN BUILD SHARE What are your goals? What are

    you trying to achieve? How am I progressing with my goals? What do I need to do differently to achieve those goals?
  5. SECKINGTON.COM LEARN BUILD SHARE What behaviours do you want to

    change? What behaviours do you want to keep?
  6. SECKINGTON.COM LEARN BUILD SHARE • Maintainability • Extensibility Improving the

    design of the existing codebase: make it easier to add new features and capabilities make it easier to fi x and change things
  7. SECKINGTON.COM LEARN BUILD SHARE Improving the design of ourselves: make

    it easier to add new behaviours or skills make it easier to change existing behaviours or skills • Maintainability • Extensibility
  8. SECKINGTON.COM LEARN BUILD SHARE How do we make it easier

    to change or add new behaviours or skills?
  9. SECKINGTON.COM LEARN BUILD SHARE “Over time, this loop - cue,

    routine, reward - becomes more and more automatic. The cue and reward become intertwined until a powerful sense of anticipation and craving emerges.” Charles Duhigg
  10. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue
  11. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue
  12. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    My teeth feel icky My teeth are clean! Brush my teeth The Habit Loop
  13. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    My teeth feel icky & fl oss! My teeth are clean! Brush my teeth The Habit Loop
  14. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Calendar reminder to read Learnt something new! Read book The Habit Loop
  15. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Time to pick up a new feature to work on Shipped a feature! Implement the feature Reading time? The Habit Loop
  16. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Time to pick up a new feature to work on Implement the feature Shipped a feature! Read for 30 minutes! The Habit Loop
  17. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue
  18. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    I see what time it is I’m on time for my next meeting! I stop the meeting The Habit Loop
  19. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    I’m on time for my next meeting! I stop the meeting The Habit Loop Noti fi cation when the meeting is done
  20. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Someone asks for help Feel good for helping them Give advice The Habit Loop
  21. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Feel good for helping them Ask a question and shut up The Habit Loop Someone asks for help
  22. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    The laundry basket is full Clean laundry! Throw in a wash The Habit Loop
  23. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    The laundry basket is full Throw in a wash The Habit Loop Have a special snack Play a video game
  24. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue
  25. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    The Habit Loop Going to bed Read a book for 30 min Go to sleep more relaxed and disconnected
  26. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Getting asked to do something I am scared of Say “Yes” Feeling proud for doing something you were scared of! The Habit Loop
  27. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    The Habit Loop Getting asked to do something I am scared of Eat cake! Buy a new book! Book a spa! Say “Yes”
  28. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue
  29. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Wake up early and see my running gear Go running Feel more energetic The Habit Loop
  30. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    Excitement and curiosity about next episode Go running and listen to ZombiesRun Experience the story The Habit Loop
  31. SECKINGTON.COM LEARN BUILD SHARE Cue Routine Reward 1 2 3

    When you fi nish a sentence Pause and take a breath Refocus and calm down The Habit Loop
  32. SECKINGTON.COM LEARN BUILD SHARE Build on existing loops Replace part

    of the loop Find new cues and new rewards Create a new loop with an existing cue