Code_Padawans go Camp Compressor – Podcast Time

We spend the last weekend in Potsdam, at the most awesome conference ever: eurucamp.

This year Lucas (Nerdkunde), Dirk (Geekstammtisch) and Bodo (bitsofberlin) created a podcast especially for the conference, to collect impressions and speak with people there.

We were guests on the first day and we are allowed to upload our part of the interview here, on our blog. Thank you, Camp Compressor team!

We encourage you to listen to all three episodes of the Camp Compressor podcast. They’re really cool. http://2014.eurucamp.org/podcast/#TCC003

Week 4 Day 4 – Improve everything

Our stand-up meeting today featuring sitting

Our stand-up meeting today featuring sitting

Afer 3 and a half week of walking on the path of enlightment, Magda and I did a sort of retrospective and discussed what we could do better the next weeks.

  • We found out that it would be very helpful for us to have a visual overview of our project like a class diagramm or something like that.
  • We also realised that is very important to document our code with comments and a Read Me. this is important because it halps to understande code you have written weeks or months ago.
  • We also came to the conclusion that it is important for us to work out more structure of our project. For this we decided to have a 2 hour meeting every monday where we can discuss the features we want and how to implement them.
  • The last point is to spend some time of the day focus on programming basics like doing a ruby tutorial or reading a book.

At the end of the day we learned a new term: Going down the Rabbit Hole:

To go down a never ending tunnel with many twists and turns on the internet, never truly arriving at a final destination, yet just finding more tunnels. Clicking one link, then finding another on that page, then clicking another link on that page, which gives you the idea to search for something, and the process repeats.

urbandictionary.com

Ruby is weird, feat. Starring into the void and few practices of the dark side of the Force

„It takes strength to resist the dark side. Only the weak embrace it!
It is more powerful than you know…“
―Obi-Wan Kenobi and Darth Maul [read more]

Void value expression – have you ever get this error? We had, and that’s how we discovered the void in Ruby. It happened yesterday, while we were working on the class creating test methods in our Ataru tool. The existence of void in Ruby surprised few of our coaches & friends.

Dirk and Lucas was very suprised about the dark side of the force

Dirk and Lucas was very suprised about the dark side of the force

We stayed cool this time, not knowing that it was a kind of discovery…

In the first attempt to write the above mentioned class, we used the define_method in the body of another method, which made us to use send method as well, as define_method is private. Send and define_method are useful, but they can also cause problems, if you don’t use them carefully.
Besides of the define_method, we are also using eval in our class. That is also potentially dangerous. Therefore it felt a bit like touching the dark side of the Force.

What is more, it caused our test methods to pass or to fail, depending on which test method was run as the first one. Today we worked hard to fix those issues. Supported by Jedi master coach Kacper we wrote a new method that is even more amazing than the old one. It solves the problem by creating a new class every time the method is called. It also wraps our code samples into a MiniTest test method.

You can check out our repo for the code:

https://github.com/CodePadawans/ataru/blob/code_ex/lib/ataru/code_samples.rb

you can see the results of running tests here:

Testing Ataru with Minitest

Testing Ataru with Minitest

And here’s how it made us feel like:

Even Star Trek guys are getting excited about this.

 

Lucas and Dirk (really awesome guys) are from Cologne and came to Berlin for eurucamp. They both were also guests in the new Asquera office. And yes, we assimilated them into our coaches cloud. :)

We learned a lot of important things from them:
using gifs for pull requests, getting a pink color scheme for the editor and cats instead those arrows for warnings in vim.
Amazing, isn’t it? They have to leave tomorrow, but we’ll see them soon again, at RedFrogConf, where we are giving our first talk!

Week 3 – How to get to the state of serenity

As you might have seen, there are some entries missing in our padawans‘ diary.
It took us quite some time to exercise the secret Jedi super power of the week:

Jedi Super Power of the Week

Jedi Super Power of the Week

During that week we had to manage a lot of tasks. Luckily, exactly that formed the right environment to train ourselves in finding serenity.

To start with, we worked on the first prototype of Ataru. The tool should be able to extract code snippets out of a markdown file and wrap them in test methods.
To implement these features, we had to understand the API of the gem we are using for this: Kramdown.

Soon it became clear, that the next big topic wants to be learned: the recursion.
We need a recursive method to iterate over the document tree.
Kacper gave us a lecture about recursion. We have to admit, that we really need some more time and exercise to understand it fully.

The other session we had with Kacper was about closures.

The weekend from Friday on we travelled to Potsdam for eurucamp – the most awesome Ruby conference ever!
On Friday we had our Rails Girls Berlin Beginners Workshop (as you know, we are both in the Rails Girls Belrin organizers team), on Saturday and Sunday we helped out the eurucamp orga team, supporting them with their tasks.

Eurucamp 2014 – simply a great time; tons of impressions, ideas, thoughts and amazing people. It might take a while till we arrive back to the reality and sort out, how all these experiences have influenced us.

As you can see, we had a lot to, with our Summer of Code project and beside of that with things we had to do for the conference and the workshop.
Having hands full of work with our Summer of Code project and preparations for RailsGirls workshop, attending eurucamp and doing our best to help out during the conference, we could learn how important is to keep calm and be patient with ourselves.
We don’t say it is easy to stay in that serene mood. What’s important is to try, again and again. That’s how you train it.

With this insight, we start the week 4 of our journey.
Wish us luck and a lot of…serenity :)