Building a number guessing game — Girl Code at Codam

Image for post
Image for post
Michèle introducing the exercise. Photo by Marta Pozaroszczyk

On the 18th of September, some 30 girls met up for the quarterly Girl Code Meetup, this time hosted at Codam.

The first challenge of the evening being finding the front door. However, once the front door was located, a bowl of hot tomato soup with bread and good conversation awaited. As a meetup regular, I cannot say how nice it was to get something other than pizza for once. It was a really nice touch.

After eating one too many pieces of bread with hummus, we headed into the auditorium where Ineke introduced Girl Code.

Once Ineke had done the official word of welcome, Michèle of Codam took over. She explained how she had gone from a general social sciences graduate to completing a boot camp and now working as a developer at Codam. She also introduced Codam, which is the first full-on coding school in Amsterdam. The curriculum is 3.5 years with 2 internships, before the release you into the wild. However, it is about there the resemblance with normal schooling ends. At Codam there are no teachers, no lectures and no books, only peer learning.

So true to Codams teaching philosophy, we got a short introduction to the concepts before we were led into the “clusters”. In the clusters, rows of iMacs awaited us along with a bunch of girls from Codam ready to assist.

Image for post
Image for post
Codam’s iMac cluster. Photo by Marta Pozaroszczyk

The assignment was a small number guessing game, prompting the user to guess a randomly generated number. The exercise was a nice introduction to the basics of programming and for getting familiar with Ruby syntax. We got to try both control flow, reading input from the user and conditionals.

To make it even easier to get started, we used the website, where you can create and run Ruby scripts in the browser.

Since there were girls of all skill levels, some programmed for the first time whilst others finished in no time. Fortunately, there was room for both types of programmers, with super helpful tutors to guide the first-timers and extra challenges for the experienced programmers.

Image for post
Image for post
Photo by Marta Pozaroszczyk

One of the main takeaways for me was Michèle’s tip about writing out all the steps of the program before starting. It is a good reminder to take a step back and actually figure out what you are building before you dive in.

Image for post
Image for post

We got about an hour and a half to program, after which we rounded off the evening with a final word of thank you. Then for those who wanted to hang out and chat, there were drinks, stroopwafels and nuts. All in all, a really enjoyable evening in good company.

So thank you very much to Ineke for making this a nice evening happen and thank you to Michèle and the awesome team of helpers at Codam. Also, thank you to Tiffany for hosting and Marta for taking pictures 🤗

Image for post
Image for post
Entire support time of the evening. Photo by Marta Pozaroszczyk

Now we just have to wait for the next one, which will be on “Anything NPM” on November 27th at Adyen.

Thank you for reading and maybe I’ll see you at the next Girl Code meetup!

PS. My solution to the exercise can be found here, should you want to compare.

The feedback form and the official solution can be found through this link.

Written by

Software Developer, learning enthusiast (obsessor…) and lover of sleep. Basically, a recent CS grad trying to adult.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store