#RemotePairProgramming Ep 010: Adi & Amitai – Legacy Code

The book Facilitating Technical Events is for technical trainers, coaches, events organizers who want to have a good event flow and happy attendees.
Support independent publishing: Buy this e-book on Lulu.

About

This is a remote pair programming codecast with Amitai Schleier on Legacy Code, the Trivia kata.

Premise

We are refactoring some legacy code in Perl and VI. Adi doesn’t know almost anything about Perl, but he knows the problem and the approach. Amitai knows Perl so he is primarily driving, while Adi is navigating.

We are using the Trivia Kata that JB Rainsberger started using with Legacy Coderetreat. We start with having a safety net, some tests in a format called Golden Master.

This session is a Genuine Codecast, in opposition to a rehearsed codecast where everything looks perfect. In a Genuine Codecast we do mistakes, we work as any normal two programmers would and we are not perfect. You can follow our, correct or wrong, train of thought, and how we try to pair for the first time ever.

After around one hour or working together we end up at a stable spot with the code, a moment where we can continue. We have some tests. Yaaaay!

We tried also the Modulino Technique in Perl, which was very interesting for Adi.

Video

Check the video and please come with your ideas and comments

Debriefing

Adi

  • After the session we are both a bit tired, and we discuss what happened.
  • We had some technical issues with video and audio, and also with vi
  • It’s not that easy to work with vi when showing the screen
  • Perl was interesting to learn for Adi, it’s fun to know how it works
  • Interesting to see how Golden Master can work in Perl

    Amitai

  • Having technical difficulties is realistic when doing remote pairing
  • Under the right conditions it can be very smooth. You almost never have the good conditions from the first try for remote pairing
  • Perl was relatively comfortable, but I had to search some basics
  • TDD helps discovery your mistakes faster
  • I knew Golden Master technique, but I would have done the Modulino Technique first because it might have saved us some time.
  • If we get back to it, I would get more complete coverage with Golden Master so we can refactor the code because it is so messy.
  • I have ported the Perl version of Trivia, and reflecting on it, it was one of the most difficult things I have ever coded: do the stupid thing in Perl and allow myself to not fix it! It was emotionally and intellectually toxic to me.

Acknowledgements

Many thanks to Amitai for taking the time to record this codecast with me.

What’s Next?

Check the previous episodes of #RemotePairProgramming:

Subscribe

If you want to receive an email when I write a new article, subscribe here:

Subscribe for new articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe for new articles