How to learn fast and teach effectively - where coding and psychology meet
Hana Harencarova20:012023
Rereading your notes feels like learning, but it is not the habit that sticks
Rereading notes gives the impression of understanding everything, until the book closes and the real test begins. For developers who must keep learning as technologies change, choosing the wrong study habit wastes focus. Hana Harencarova, a GitHub software engineer with a PhD in judgement and decision-making psychology, turns memory research into a question every learner faces: which habits actually move new code concepts into long-term memory?
Learn the study, feedback and teaching habits that make coding knowledge stick
Hana Harencarova, a GitHub software engineer with a PhD in judgement and decision-making psychology, explains how the brain learns and turns it into practical habits for learning to code. She argues for retrieval practice, mini tests, spaced repetition and alternating focus with breaks over rereading and multitasking, and closes with principles for teaching code well.
“Another great strategy, how to really learn and understand something is to teach it or explain it to someone else.”
“Because you have the impression that you understand everything. But in the practice, when you close the book, then you can see how much information did you retain.”
What you will learn
Alternate short focused learning blocks with real breaks to use both the focused and diffuse modes of the brain.
Replace rereading and underlining with recall from memory, mini tests and flashcards reviewed with spaced repetition.
Use the text editor, tests, code reviews and pair programming as regular feedback loops while coding.
Build motivation with projects you care about, a learning buddy and public accountability.
Design coding lessons around learners' goals, with workshops, an overview map, summaries and frequent questions.
Key takeaways from the speaker
Understand how your brain works best
Tricks from social psychology that keep you accountable and motivated
Boost your career growth through teaching
Details
Level
All levels
Format
Talk
Technical depth
Introductory technical
For
Early career, Career changer, Mid-career
Length
20:01
Published
June 2023
Questions this talk answers
Which study strategies work best for retaining information?
Recalling things from memory and mini testing work well because they show what you really know. Rereading, underlining and multitasking are less effective.
How should I structure my study time when learning to code?
Block a slot such as 20 minutes for focused learning, then take a real break, switching between the focused and diffuse modes instead of juggling emails, calls and learning.
Where can I get feedback while learning to code?
From the text editor's syntax highlighting, from tests and pipelines, from colleagues' code reviews and from regular pair programming sessions.
How do I stay motivated and accountable when learning?
Work on problems you care about, get a learning buddy, and tell friends, family or social media what you plan to do so someone checks on you.
What tips help people with ADHD or procrastination?
Use shorter focus periods with more breaks, experiment with Pomodoro timings, and put learning slots in your calendar so you no longer have to decide when to start.
About this talk
As a developer, staying up to date with the latest technologies and skills is an ongoing process. But how do you ensure that you're learning effectively in the face of constant change? Understanding the science of how our brains learn is the key to success.
You'll discover the secrets of effective learning and teaching in the field of coding. You'll learn about the most effective strategies for retaining information, from repetition to hands-on experience. Use the tricks from social psychology to keep you accountable and motivated.
Whether you're just starting out in your development journey, or you're a seasoned professional looking to stay ahead of the curve, you can improve your learning skills and boost your career growth with these new insights.
Rereading vs recall: which study habits work (84 s)
Teach it, sleep on it, get the aha moment (75 s)
Retrieval and spaced repetition in one minute (58 s)
Speaker 1: Hello. So this is Hana. I work as a software developer at GitHub. And I think I'll wait until people will come, right? Okay. So I'd say let's start. Speaker 1: Today I want to show you about how to learn fast and teach effectively as my formal background is in judgment and decision-making psychology. And then I switched my careers and learn to code. And now I work as a developer.
Speaker 1: So we will talk about three topics. First, we will have a look at how our brain works. Speaker 1: Then we will learn how to learn to code and how to teach to code. Speaker 1: Our brain operates basically in two modes. Could you guess how can we call these modes? Speaker 1: They're called focused and diffused. So what do you think belongs here?
Speaker 1: You're in the focus mode when you concentrate on the task, when you learn, when you work hard. Speaker 1: But then there's also the diffuse mode. Speaker 1: What do you think belongs here? Speaker 1: Those are the moments when you're trying, when you're looking at the big picture. Speaker 1: When you're doing creative activities.
Speaker 1: Or when you're just doing some sport or you relax by reading a book or taking a walk. Speaker 1: And why this is important? Speaker 1: How can you make advantage of these two modes? Speaker 1: The best thing is to switch between them. Speaker 1: So you alternate the focus mode when you work with a break where you stretch a bit, Speaker 1: go for a short walk or just walk around the house, take a short break.
Speaker 1: And this all goes, boils down to memory. Speaker 1: So how can you use those two modes to improve your memory? Speaker 1: Do you know how much slots we have in a shorter memory? Speaker 1: You can guess and you can even type it in the chat. Speaker 1: So before researchers believed that it's a seven.
Speaker 1: Nowadays, they they are inclined rather to to number four. Speaker 1: So we can operate with four slots. And the question is, how do we get information from a short term memory to the long term memory? Speaker 1: Let's talk about chunks and how we can create them. Speaker 1: You can imagine chunks as a slot in your brain Speaker 1: where you can put information with which you can work just right now.
Speaker 1: It can be, for example, number or image or names, simple things. Speaker 1: But the more you learn, the more complicated concepts you can hold in one chunk. Speaker 1: And then you can connect this information from the chunks. Speaker 1: So that's one of the points of learning and deepening the understanding of the concepts that the information you can hold in your brain at once with which you can operate Speaker 1: It gets bigger and bigger.
Speaker 1: So how can you create a chunk? Speaker 1: First, of course, it's a focused attention. Speaker 1: So when you learn and when you consciously try to remember things, it's very good to first, before you deep dive, get an overview Speaker 1: And then make a map of what you're going to learn. Speaker 1: Try to understand the idea and get the bigger picture.
Speaker 1: And then repeat and get practice. Speaker 1: Understanding the context is the first step, but making the knowledge strong by its repetition, it's important part. Speaker 1: Also, by solving different problems and various problems, Speaker 1: You make sure that you understand the concept fully. Speaker 1: So let's make a short guessing game and let's see what works.
Speaker 1: Here are six strategies which people often use. Speaker 1: So you can type now for one. Speaker 1: Do you think it's a good? Speaker 1: Does it work or not? Speaker 1: You can type in the chat. Speaker 1: So rereading books and notes. Speaker 1: Is, of course, a strategy to learn, but it's not the most efficient strategy.
Speaker 1: Because you have the impression that you understand everything. But in the practice, when you close the book, then you can see how much information did you retain. Speaker 1: And that brings us to the second one. Speaker 1: Yes, you can write in the chat those which you think are most effective. Speaker 1: Recalling things from memory is really good strategy to bring the knowledge to a long-term memory.
Speaker 1: It may. Speaker 1: So you just close the book. Speaker 1: You close the notes and you try to remember as much as possible. Speaker 1: Then mini testing is also very good strategy because it gives you a direct feedback about what you really know and what you still need to learn and fill which holes you need to fill.
Speaker 1: Underlining can help in a visual orientation, Speaker 1: But it was not proven as the most effective learning strategy. Speaker 1: Multitasking is probably not surprising that it doesn't help you to learn well. Speaker 1: And again, solving different problems. Speaker 1: It's an important part of understanding the whole concept. Speaker 1: So now when we know something more about how our brain works, let's have a look how to use that when we learn to code.
Speaker 1: Before you start, it's great to make an overview Speaker 1: And you can check the titles, the chapters. Speaker 1: You can check the pictures and graphs or code snippets which are in the book or in the article. Speaker 1: Afterwards, it's really great if you can write notes, even if you don't read them or don't use them anymore.
Speaker 1: Just a simple action of writing down and summarizing what you understand Speaker 1: and how you understand it or just writing down the questions which are relevant to you Speaker 1: helps you to retain the information. Speaker 1: As we already mentioned, not multitasking helps a lot. So even if you can put in your calendar Speaker 1: slot of 20 minutes, it's better to learn for 20 minutes and then take a real break and do something else.
Speaker 1: Remember switching from the focus to the diffuse mode. Speaker 1: Then try to juggle many things like emails and calls and learning to code and doing some other tasks. Speaker 1: Take your time to understand the concept. Speaker 1: So you don't have to understand everything from the beginning. Speaker 1: Just have a look at the chapter, at the material you're learning.
Speaker 1: And then deep diver, make some exercises, use it and then go back. Because the second or third time when you're reviewing the material, you will understand it better and more. Speaker 1: Also, work on the similar tasks before you move to a new concept or to a new chapter, to a new part and go back to it regularly.
Speaker 1: It shouldn't be always the same tasks because then you don't really learn. Speaker 1: But they should be similar enough. Speaker 1: When you move on, it's good to always come back to recall the new and also old concepts. Speaker 1: And you can use the flashcards. There are many apps which are also for free, which you can use for this purpose.
Speaker 1: Another great strategy, how to really learn and understand something is to teach it or explain it to someone else. Speaker 1: You can make a course, but you can also just explain it to your friends, to your parents or kids or to your dog. And you can write a blog. So find a way how you try to explain to someone what you just learned about.
Speaker 1: And lastly, you can make use of the time before going to bed. Speaker 1: You can review what you learned and also make plan for what you want to learn the next day. Speaker 1: Because our brain works also in the night. Speaker 1: It consolidates memories, processes the information. Speaker 1: And that's how you can make use of this time.
Speaker 1: When we talked about the diffused and focused mode, the importance of the diffused mode is that sometimes when you are stuck on a hard problem, it can happen that you just need a break. And during that break, when you go to sleep, when you run, when you're doing something else, your brain still works on this unfinished task.
Speaker 1: And this is where the aha moments come from. Speaker 1: And now, how can we get a feedback when we code? Speaker 1: There are four main sources of feedback. Speaker 1: The first is text editor, right? Speaker 1: Nowadays, with the syntax highlighting, you can see right away that something is off. Speaker 1: The second part is, of course, the test width.
Speaker 1: When you're running your pipeline or real test, then you see, okay, did you break something? Speaker 1: And then you can back to it. Speaker 1: Another great source of feedback are code reviews from someone else, from your team colleagues, because they bring different points of view and then can pinpoint questions or problems which you didn't see.
Speaker 1: And code review is also a conversation. Speaker 1: What I like to do is before I put the PR to review to my colleagues, I went through the PR by myself. And sometimes I comment on specific pieces of code and explain to the people why I did this choice, Speaker 1: or if there are any information which I want them to have when they will review my PR.
Speaker 1: And last great resource is pair programming. So if you can have a regular Speaker 1: sessions where you write programs with someone else, when you pair program, you learn a lot from them and they often learn a lot from you. Speaker 1: Now, no one really likes to make boring things, right? So if you manage to make your learning motivating and relevant to you, the chances that you will succeed and that you will spend enough time on it are higher.
One way to do this is to find various tasks and problem, which you care about. Speaker 1: Are you building a website for yourself or for your friend? Speaker 1: Do you have a problem you really want to solve? Will the app you're building make your life easier or will it make lives of other people easier? Then get a learning buddy.
With the other person, you can discuss your questions. You can just tell them what you're doing. It always feels better when there's more of you. Speaker 1: And lastly, be accountable. Tell the world what you're going to do. Tell your friends or your family or just on Twitter and find a person who will check on you regularly.
Just knowing this motivates you a lot. So takeaways about learning. Speaker 1: First thing is the retrieval. It's the best method to learn fast and you can do it anytime when you're riding in a tram or driving a car, when you're waiting in a shopping line, when you just walk around. You can remember the most important concepts you learned and you can just try to recall everything.
Speaker 1: Especially you should check if you were right. Speaker 1: So that's the immediate feedback, you know? So if you do the flashcards, you can write your own questions and then you see, oh, do I remember that correctly or not? Speaker 1: Also switch often between focused learning and relaxing. So focused and diffuse mode. Speaker 1: And lastly, recap often and use spaced repetition.
Speaker 1: So the longer, the more time passes from the time you learned something. At the beginning, you repeat it more often. And as the time passes, it's enough to repeat it less often. And now, how can you teach the code? First things first, know your audience and know the goals. Speaker 1: What are your goals and how people will demonstrate their new skills or knowledge?
What should they know after your training? Explain them how this is relevant to their goals, what they're wanting to achieve. Try to make it engaging and fun with the questions and exercises. And always prefer workshop to just presentation if it's possible. Speaker 1: So try to make it clear how that helps them to achieve their goal. And give your audience an overview, a blank map which they can fill as they proceed through your lesson or course.
Try to use interesting examples, stories, surprise, and visual hints. Speaker 1: Make summaries at the end of the parts of your teachings and ask questions often. And it's great if you can give them the possibility to get the feedback on their knowledge so that they can test what they really know and what gaps they need to fill.
Speaker 1: And that's all for me today. I also want to give a big shout out to Elena, which is my colleague, and she prepared the drawings for this presentation. And I would love to connect with you so you can find me on the LinkedIn or Twitter. And I would also want to ask you one question. It would be great if you can answer in the chat.
Speaker 1: And that would be what would be the one thing you would try today from what you learned just now. Speaker 1: And with that, the Q&A is open. Speaker 1: You can type your questions in the chat. Speaker 1: And I'm happy to answer them. Speaker 1: Or if you can unmute yourself, Speaker 1: You can also tell them in person.
Okay, so someone writes relax more. That's a really good strategy. Okay, if I have tips for any people with ADHD that have a hard time concentrating. As I mentioned, the focus time is really important and it doesn't matter. Speaker 1: So I think if you have troubles to concentrate, you can opt to use shorter times when you focus and then having more breaks, right?
So when you feel like you do have troubles concentrating, you can just take a break, leave it and come back to it later. Speaker 1: Okay, do you have any more things which you can try or any more questions? Speaker 1: So there's another question. What do you think about the Pomodoro Technique? Concentrating for 30 minutes, then break for 15 minutes.
Is it good to switch between the modes? Yeah, so Pomodoro Technique. It's one famous technique, how to space your learnings. I think it's good if it works for you. So they're different. You can opt in for different timeframes. You can decide if you want 20 minutes, 25, 30 minutes. So it's good to experiment a bit at the beginning, what works for you. So how long the concentrating time should be, and then the break should be. But yes, the Pomodoro Technique also helps you to overcome the initial reluctance.
You know, if you find yourself procrastinating doing this and that, but not starting with the learning, having this dedicated 20 or 30 minutes can help with that, as well as putting it in your calendar, you know, like deciding, okay, I want to have these slots when I learn a specific thing. And that removes this decision, like when you need to decide, okay, now I should learn, or should I just watch some Netflix or should I do a laundry or should I go shopping?
Yeah. So planning ahead helps a lot with that. So we have one more minute. So yeah, thank you very much for all your talks and inputs and also your activity in the chat. And was lovely to talking with you. And even later, if you would have questions, don't hesitate to message me or just to connect. And I wish you a lot of fun with the other talks. And I hope you can profit from this whole conference. Thank you.
Thank you.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Why retrieval beats rereading when you learn to code
Hana Harencarova uses her psychology training to show which study, feedback and teaching habits help developers keep up.
In short
Learning to code fast is less about hours spent and more about how the brain stores information. Hana Harencarova, a software engineer at GitHub with a PhD in judgement and decision-making psychology, shows that recalling, testing yourself, spacing reviews and alternating focus with breaks beat rereading and multitasking. She then applies the same principles to teaching code, arguing that explaining what you learn is one of the strongest ways to master it.
Key takeaways
Understand how your brain works best.
Use tricks from social psychology that keep you accountable and motivated.
Boost your career growth through teaching.
Two modes and four memory slots
Harencarova starts with how the brain operates. In the focused mode, people concentrate, study and work hard. In the diffuse mode, they look at the big picture, do creative activities, exercise, read or walk. Her advice is not to choose one, but to move between them: work with focus, then stretch, take a short walk or step away.
"The best thing is to switch between them." (1:49)
This matters because of memory. She notes that researchers once believed short-term memory held seven items, but are now inclined towards four. "So we can operate with four slots." (2:52) The way to get more out of those slots is chunking: as understanding deepens, each slot can hold a bigger, more complex concept, and those chunks can be connected. Creating a chunk starts with focused attention, an overview and a mental map of what is being learned, followed by repetition and practice on varied problems.
Which study strategies really work
In a short guessing game, Harencarova asks the audience to rate six common strategies. Rereading books and notes is a strategy, she says, but not the most efficient one, because it creates a false sense of mastery.
"Because you have the impression that you understand everything. But in the practice, when you close the book, then you can see how much information did you retain." (5:25)
Recalling from memory, by closing the notes and trying to remember as much as possible, helps move knowledge into long-term memory. Mini tests work for a similar reason: "Then mini testing is also very good strategy because it gives you a direct feedback about what you really know and what you still need to learn and fill which holes you need to fill." (5:57) Underlining helps visual orientation but, as the speaker cited, has not been proven the most effective strategy, and multitasking does not help learning. Solving different problems remains central to understanding a concept fully.
Habits for learning to code
Translated to coding, the approach begins with an overview of titles, chapters, graphs and code snippets before diving in. Writing notes helps even if they are never reread, because summarising in your own words, or writing down your own questions, aids retention. Harencarova recommends blocking time, for example 20 minutes, then taking a real break rather than juggling emails, calls and learning. Material does not need to be understood on the first pass: skim it, do exercises, then return, because the second or third review brings deeper understanding. Similar, but not identical, tasks should come before moving on, and older concepts should be recalled regularly, for instance with free flashcard apps.
Teaching sits at the heart of her method. "Another great strategy, how to really learn and understand something is to teach it or explain it to someone else." (9:12) A course, a blog, or an explanation to friends, parents, kids or even a dog all count. She also suggests reviewing before bed and planning the next day's learning, since the brain consolidates memories at night, and taking breaks when stuck, because the brain keeps working on unfinished problems. "And this is where the aha moments come from." (10:27)
Feedback loops and accountability
Harencarova names four sources of feedback when coding: the text editor with syntax highlighting, tests and pipelines, code reviews from colleagues, and pair programming. She treats review as a two-way exchange: "And code review is also a conversation." (11:18) Before requesting a review, she walks through her own pull request and adds comments explaining her choices and any context reviewers need.
Motivation, she argues, comes from relevance and company. Work on a website for yourself or a friend, or an app that makes life easier. Get a learning buddy to discuss questions with. And make your plans public: "And lastly, be accountable. Tell the world what you're going to do." (12:54) Her summary is simple: retrieval is the best way to learn fast and can be done anywhere, check your answers for immediate feedback, switch often between focused learning and relaxing, and use spaced repetition, reviewing more often at first and less often over time.
Teaching code that sticks
For teachers, the starting point is knowing the audience and the goals, including how learners will demonstrate their new skills. Explain how the material serves their goals, keep it engaging with questions and exercises, and give learners a blank map to fill in as they go. "And always prefer workshop to just presentation if it's possible." (14:46) Interesting examples, stories, surprise and visual hints help, as do summaries at the end of each part and chances for learners to test what they know.
In the Q&A, she suggests that people with ADHD who struggle to concentrate try shorter focus periods with more breaks. On the Pomodoro Technique, she is pragmatic: "I think it's good if it works for you." (17:50) Experimenting with timings and putting learning slots in the calendar also removes the daily decision of whether to study or do something else.
Watch the talk
How to learn fast and teach effectively - where coding and psychology meet, by Hana Harencarova (20 minutes): https://www.womentech.net/video/how-learn-fast-and-teach-effectively-where-coding-and-psychology-meet
About the speaker
Hana Harencarova is a Software Engineer at GitHub and a Rubyist by heart, who moved from R and data analysis into web development after finishing her PhD in judgement and decision-making psychology. She shares her passion for Ruby by teaching at Ruby Monstas Zürich and Rails Girls.
Questions this talk answers
Which study strategies work best for retaining information?
How should I structure my study time when learning to code?
Where can I get feedback while learning to code?
How do I stay motivated and accountable when learning?
What tips help people with ADHD or procrastination?
Drafted with AI from the talk transcript. Editor review pending.
Frameworks and ideas mentioned
Focused and diffuse modes
Chunking
Retrieval practice
Spaced repetition
Pomodoro Technique
Pair programming
Resources mentioned
Free flashcard apps
Cite this talk
Hana Harencarova. "How to learn fast and teach effectively - where coding and psychology meet." WomenTech Network, 2023. https://www.womentech.net/video/how-learn-fast-and-teach-effectively-where-coding-and-psychology-meet