Facilitators: Katja & Rupert
hello@code-reading.org | https://code-reading.org
The goal of this exercise is to practice to get a first impression of code and act upon that. We all have different instincts and strategies for where to start when faced with a new piece of code. It doesn't matter how trivial you think the first and second things you noticed are.
It's important that what you use is your immediate reaction, don't overthink it!
Talk about why things might have jumped out for different people. It might be tempting for some people to start talking about the big picture; try to steer discussion back to individual details, rather than summaries.
Reflect also on what kind of knowledge you used in this exercise.
What's the most disorientating thing so far? This can be something about the Code Reading Club process or the code sample we are looking at.
Is something confusing or worrying you? Are you feeling excited or uneasy?
The goal of this exercise is to practice to make sure everyone in club is familiar with syntactic elements of the code.
Look at the code and examine syntactic elements. Do you know the meaning of all elements?
You can use these questions as a guide:
Talk about unfamiliar constructs.
Were there constructs that were unfamiliar?
Why are the syntactic constructs unfamiliar?
Are they ideosyncratic to this language or code base?
The goal of this exercise is to be a concrete thing to *do* when looking at new code for the first time. New code can be scary, doing something will help!
Highlight the places where they are defined a draw links to where they are used. Use 3 different colours.
Important can mean whatever you want it to. If it's helpful, try to think of it as a line that you might highlight when reading a text.
We'll dot vote our line numbers together and discuss choices in the next exercise
Discuss in the group:
Take turns in the group, and let every member talk about the code for 30 seconds (could also be one sentence each). Try to add new information and not repeat things that have been said, and repeat until people do not know new things anymore.
The goal of this exercise is to think about the core purpose or function of this code.