This week the cultural week was celebrated in the high school where I work teaching students of Web application development.
A co-worker who teaches programming for pre-grade students (a brief introduction to computer science) let me know that there was a group of 13 students who wanted to study the Computer Science Degree the following year, so I came up with the idea to teach with them a programming workshop with my students.
The first thing I requested is that the workshop only be attended by students who wished to learn programming. In addition, I had a first contact with them before the workshop, during which we talked about their previous knowledge and their personal interest in the workshop. The students knew the following concepts in C:
They had no knowledge in the use of data structures such as arrays.
Furthermore, I spoke with my students to prepare a workshop that would be somewhat different from the traditional ones, where there is a single speaker and several assistants. Therefore, our methodology would be the following:
The next thing we did was to plan the challenges, bearing in mind that the high school had a space of 2 hours to solve them. For this, each one of the vocational training students prepared a small challenge, together with the solution.
When all the students had prepared their challenges we had to decide which ones were going to be used. To make this decision, we spent 1 hour looking at the possible challenges and categorizing them by difficulty. We removed several parts of the code, which the high school students would complete the day of the workshop.
Once this part was completed, we prepared a Git repository so that all the vocational training students would have the same information (challenges and solutions).
The day of the workshop there were 26 young people with ages ranging between 17 and 23 divided in two groups. Therefore, what we had to do was divide them in pairs and break the ice between them.
So, although it is not normal at these ages in a Spanish high school, we played a small game:
In this way in a few minutes, everyone had introduced themselves. In addition, they had all their attention focused on learning the name, age and hobby of the the person they had in front.
At the end of the exercise, I placed the rows as before the game and asked them one by one if they were capable of remembering the name of the person on the left of the one standing in front of them (not the one in front of them, that would have been too easy). Very few of them were able to remember the name.
What did we learn from this exercise?
Now we are going to describe the challenges that we proposed for the workshop.
This challenge consisted of a form with two input values (number 1 and number 2) and a button that, when pressed, showed the results of all the following operations: addition, subtraction, multiplication, division, rest, the double value of the first number and, finally, double the second number.
The HTML document in this problem is the one shown below:
The second problem is slightly more complex. The goal is to create an algorithm in which a number between 1 and 7 is randomly generated. The player can then enter numbers to try and guess it. There are 3 attempts to guess the number, if not, the game is lost. In either case a message must be shown to the player.
The HTML document in this problem is the one shown below:
The third problem incorporates visual elements to attract the attention of the high school students. In this case we will implement the logic to play Rope-Game. This game will consist of two keystrokes that will move the rope in one direction or another. The player who moves the rope past a limit will win the game.
In this problem the high school students must implement the logic of the conditions of the movement of the rope, as well as the logic to determine when a player has won the game.
In addition, the code is written in such a way that they can perfectly understand how to take control of a key pressed in the web browser.
The last problem is much more complex and fun than the previous ones. In this case, we will have a soccer field and a ball which we can move using any of the 4 cursor keys.
The high school students must implement the shooting function (the movement is already programmed since it is very similar to the code created in the previous challenge). In addition, they must determine the field boundaries to restore the ball to the center of the field.
At the end of the workshop, we took a small sample of the students’ experiences about the workshop and this is the summary:
El taller me ha parecido una gran idea para poder meternos en el mundo de la informática y conocer a gente del campo. ¡Las personas que lo han preparado son geniales y las actividades muy divertidas! Espero más talleres así de interactivos. ( The workshop seemed like a great idea to be able to get into the world of computing and meet people from the field. The people who have prepared it are great and the activities very fun! I look forward to more interactive workshops.)> Este taller ha estado muy interesante. Además es útil para ver otros lenguajes de programación y conocer gente y sus distintos puntos de vista y forma de solucionar problemas. ( This workshop has been very interesting. It is also useful to see other programming languages and meet people and their different points of view and ways to solve problems.)> *Me ha parecido un taller muy interesante. Nos han enseñado cosas que no habíamos visto antes y han tenido mucha paciencia para guiarnos en nuestras dudas. En resumen, genial. ( *I found the workshop to be very interesting. They have taught us things we had not seen before and have had a lot of patience to guide us in our doubts. In short, great.)> *El taller ha sido genial, he aprendido bastante y Juan me ha caído súper bien. ( *The workshop has been great, I’ve learned a lot and I really liked Juan.) My personal experience as Vocational Training and University teacher has been very pleasant. Students are usually motivated with what they study and have a passion for Computer Science (CS). In fact, these students demonstrated during the 2 hours of the workshop that they were largely motivated to solve the problems.
Therefore, peer learning is more positive than the classic method of having a main speaker and several assistants.
The problems have been solved by vocational training students and can be found in the public repository.