šš»āāļøHello! This is Julyās installment of UX research updates for Meta! You can check out past installments here, or last monthās data science update here.
Today, Iāll be talking about findings from user research we conducted about how people are learning to code and teaching others how to code.
Research background
This research was motivated by questions of how Stack Overflow may better serve people new to programming. More specifically:
What motivates new developers to learn to code, and how are they learning? What tools or communities are they using, and what do their workflows look like?
How are code teachers teaching people to code? Any best practices, what resources do they share with their students, and what do their workflows look like?
We conducted interviews with people sourced from our social networks and the community. Participants included people with less than 3 years of programming experience, a college Python instructor, Stack Overflow moderators and answerers, and leaders of various technology communities. Out of respect for peopleās privacy, any quotes Iāve included here have been combined or paraphrased.
What motivates new developers to learn to code, and how are they learning?
The new coders I spoke to were driven to learn code so they could make career changes. They are self-taught and used a wide range of resources to learn, including online courses, YouTube videos, blogs, demos, and Twitter. They initiated their learning process via online courses (discovered via Google), and organically amassed resources over time.
āI found resources by googling ālearning to code python.ā One of the resources I found showed me an online course. Then I found out about Code Academy. Iāve progressed from online courses to books to YouTube channels. The more confident I become, I [learned] that following tech people on Twitter is a great way to figure out how to get new resources.ā - New coder, 3 years experience
āIām learning because I want to leave clinical medicine and go into research/policy analysis. I started using Datacamp last spring to learn R.ā - New coder, 1 year experience
New coders describe being overwhelmed at the beginning of their learning process ā everything from vocabulary to the research process was new. This insight was strongly reflected in the experiences of those teaching code, who described the need to scaffold information for their students and to teach them how to gather information properly.
āI take 5 min to find something, evaluate 30 pages, looked at 5, spend 1-2 min on each, and navigated to one. Whatever time it takes me to deal with it, itāll take a novice 10x. If I have to go through 30 pages of search results then what do you expect of a novice? It takes learning to put natural language vocab to a coding question; those are you words you donāt have yet.ā - College instructor
āSometimes you donāt even know what to search for. Sometimes copy and pasting an error helps, other times you come up with your own keyword search. When youāre learning itās hard to know what to doā¦ What people consider normal tech language can be super overwhelming. [On SO sometimes people say] ādonāt ask questions you havenāt tried to find an answer forā. It would be nice if they could elaborate on ways to search the site.ā - New coder, 1 year experience
What motivates people to teach and lead code communities, and how do they teach?
Those teaching others to code are cautious about referring students to Stack Overflow. They described good teachers as being skilled in deconstructing student questions and scaffolding information.
āCan you scaffold them to get there when teaching -- you canāt just throw them the whole thing. Iām thinking about the problem differently than how a learner is learning about the problem. Can I try to understand the learners POV and how to break it down? What scaffolding will they need?ā - Leader in technology community
āStudents need a safe space to ask questions. A question from a novice is not just about technical clarification. A noviceās mental model is what has to be correctedā¦ I usually caution against them using SO because the discussions there are working at a higher level than they need to be worrying about.ā - College instructor
People are incentivized to donate their time to Stack Overflow, open source communities, and teaching for philanthropic and practical reasons: to develop their careers, receive professional recognition, and to give back to communities that benefited them.
ā[I got involved in open source] because I wanted to engage in activities that signaled my professional credibility.ā - Leader in technology community
āSome people have the time capacity and [like the] philanthropic aspects. Others will require more incentive. I usually [answer questions] to help out and as a resume builder.ā - Stack Overflow answerer
Next steps
This research is being used to help us to continue improving the guidance we provide to question askers. Itās also informing initiatives outside of the Community product team. If youād like to participate in future user research sessions, you can join the research email list via your email settings.
š¤Thanks for reading! Whatās been your experience learning to code or teaching others to code? What do you wish you knew when you started to program or learn a new technology?