Autor: Thomas Strothjohann

RSpec: How to stub a random variable (make the weather as you need it to be)

Schreibe einen Kommentar
Code

In our last challenge there was an airport that gave or declined landing permission for planes based on the weather. There was no real weather forecast, I just generated a random weather: def generate_weather [:sunny, :sunny, :sunny, :stormy].shuffle.first end The Ruby-method .shuffle randomly mixes the values within the array and .first than takes the first value out. RSpec test: force the function return a specific value I implemented an if-statement in my landing- and take-off-procedures. So […]

Syntactic sugar, cold rooms – I’m getting used to it (week 1/12)

Schreibe einen Kommentar
Allgemein

My first week at Makers is over. And if I keep learning new things at that pace I might actually be a Maker in the end. We have started with Test-driven development and the attempt to program a bike rental service. Yesterday I was sitting in a cafe in Kentish Town writing code for this weekend’s challenge. It’s similar to „Boris Bikes“ but now I have to manage airplane traffic around an airport. It’s so much fun […]

TDD – My first major obstacle

Schreibe einen Kommentar
Code

For someone like me, new to development, it sounds really strange to write a test before having a function or product ready. But anybody at Makers Academy is a 100% convinced that the so called technique of “Test Driven Development” (TDD) is absolutely essential for writing good, maintainable code. What it is and how it works (non-technically spoken) In TDD developers at first break their problem down into objects and actions. In our first week’s […]

Why we came…

Schreibe einen Kommentar
Allgemein

„You have paid a whole lot of money, firstly to learn how to learn, and secondly, to learn how to code“ – Ruben Kostucki (@rubenkostucki), placement officer at Makers Academy. After his and some other introducing talks, we started with what I came for: coding. I am sure that learning how to code will be hard. Hopefully the learning skills, Ruben was talking about, will make that doable.

Let’s go!

Schreibe einen Kommentar
Allgemein

It’s 8.15 am. Within 15 minutes I will start a 12-week-programming-bootcamp at Makers Academy in London. I’ve come quite a long way. I’ve resigned from my job as an editor for Oberhessische Presse. I’ve left my dear colleagues and my beloved flat in Marburg. But I’m sure it’s worth it. Within the upcoming eight month I want to explore new ways of making online journalism. And learning how to program is my first step. „Breakfast […]