How a Hackathon appreciates quality code
Tags: blockchain, hackathons, codequality
Published: 2017-03-08 11:27:30

---
title: How a Hackathon appreciates quality code
published: true
description: Some lessons from the world's largest Blockchain hackathon
cover_image: https://cdn-images-1.medium.com/max/1000/1*CvgLulWi-9u1DKmQZ4pWzA.jpeg
canonical_url: https://medium.com/softwareimprovementgroup/how-a-hackathon-appreciates-quality-code-bd1bdb8b3479
tags: Blockchain, Hackathons, Code Quality
---
## Some lessons from the world's largest Blockchain hackathon

*Image: Robin Knaapen of team DC Cicero shows off their 10 out of 10 score on code quality at the worlds largest Blockchain hackathon. Image courtesy of [Drenthe College](https://twitter.com/DrentheCollege).*

Last weekend, [the world's largest Blockchain hackathon](https://blockchainhackathon.eu/p/hackathon) took place in The Netherlands. During **54** hours, **350** participants, organised into **55** teams, competed in **five** tracks, on **one** grid, and with **zero** time to lose.

Also, these teams took responsibility for the quality of the code they were hacking together by executing **2000** code quality checks.

Here is how we made those 2000 checks possible, and how we made sure they helped to accelerate the teams.

## An appreciative approach to judging

The hackathon organisers decided to take what they call an “appreciative” approach to the judging process. In their words:

> we will NOT have a beauty contest and judge you afterwards based on smooth sales pitches or your shiny smile

Rather, they facilitated a holistic approach, throughout the event and beyond, in four stages: (1) support, (2) reward, (3) award, and (4) accelerate. A key instrument in this setup is the “Impact Canvas” on which the teams share the wealth of their projects on multiple dimensions.

![The Impact Canvas template](https://cdn-images-1.medium.com/max/800/1*WmMUHuDffYSy0NN9Fva8Qw.png)
*The Impact Canvas template. Space for sharing all dimensions of a great hackathon project. Kudos to [Ritzo ten Cate](https://twitter.com/ritzotencate) for driving this approach.*

Using the canvas, the teams share and discuss with supporters, Jedi, accelerators, and reporters, taking them along on their journey, engaging them, co-creating with them.

## How about code quality?

One of the dimensions of a great hackathon contribution is the quality of the solution, including the code. But how can teams collaborate on code quality and share their code quality achievements with others?

For this, we gave them the [Better Code Hub](https://bettercodehub.com/):

- We gave the team **10 guidelines for building maintainable software**. The guidelines were presented to them in a pre-hackathon meet-up and they received copies of our O'Reilly book [*Building Maintainable Software*](http://shop.oreilly.com/product/0636920049159.do) that describes the guidelines. Together, the 10 guidelines provide a Definition of Done for code quality that is challenging, yet achievable and fun.
- We gave the teams **free access to the Pro version of Better Code Hub**, allowing them to check their code against the 10 guidelines and giving them actionable feedback on what changes to make in the code for meeting the guidelines. Teams can head over to [www.bettercodehub.com](http://www.bettercodehub.com/) to get feedback within minutes, and they can turn on Push&Pull support to get feedback on every commit.
- A team of software quality Jedi were available during the event to help teams use the Better Code Hub and for **counseling** them on anything related to code quality. Which refactoring should I apply? How can I deal with dependencies on third party code? How can I make my code more testable? The code quality Jedi's have answers.
- Before code-freeze on the last day of the Hackathon, all teams were given the opportunity to have their code quality results **validated** by the Jedi, who provided them with swag and badges and encouraged them to share their code quality score on their Impact Canvas.
- After the event, the teams retain access to the Pro version of Better Code Hub **for another 12 months**, as well as continued support from the Jedi on anything related to code quality. The hackathon is a great learning experience for putting together a complete application, including third-party components and build pipeline, but it's only the first step towards a shippable product.

This is what code quality looks like on some of the Impact Canvases:

![Canvas1](https://cdn-images-1.medium.com/max/400/1*eSQPCdQAeYgVsDiLuZI7qA.jpeg)
![Canvas1](https://cdn-images-1.medium.com/max/400/1*sIbpcQuDz5djd-WLNL-jeA.jpeg)
![Canvas2](https://cdn-images-1.medium.com/max/400/1*PdEKPcjENFkdx1_rm-XZ9g.png)
![Canvas3](https://cdn-images-1.medium.com/max/600/1*5RlsEts33RS-sFZboft1iQ.png)
![Canvas4](https://cdn-images-1.medium.com/max/600/1*dkG4N7wFKyENDhJs95Bxfw.png)
*Code quality achievements on the Impact Canvas of sevderal teams at the Dutch Blockchain Hackathon.*

Digitally, teams showed off their code quality prowess with GitHub badges that were collected on a scoreboard:

![Scoreboard](https://cdn-images-1.medium.com/max/800/1*PIYubrouiQLw9bIQ2-AUog.png)
*The Better Code Hub badges were collected on a central [scoreboard](https://dutchblockchainhackathon.github.io/).*

## So what is the impact of code quality during a hackathon?

We chose not to just measure code quality and feed measurement results to the jury. That would run counter to the “appreciative approach” and have the wrong effect. Instead, we empowered the participants to get code quality right, in a uniform manner, enabling them to show off their code quality achievements as one of the many dimension of their achievement. The effects are as follows:

- **Uniting teams:** with a clear definition of done for code quality, teams don't need to waste time quibbling about coding style. Also, they get to celebrate together, each time a code check shows improvement.
- **Faster coding:** teams that build high-quality code from the start can keep up their coding speed throughout the hackathon. Also they can more easily handover code within the team. No spaghetti to get entangled in.
- **Appreciation for code:** Hackathons should be about code, as much as they are about learning, team work, and brilliant ideas. Making code quality easy to measure, easy to share, and easy to reward contributes to give code the visibility it deserves.

So, if you are organising a Hackathon, we can recommend an appreciative approach, including an empowering approach to code quality. If you want to learn from our experiences at the Dutch Blockchain Hackathon, we are happy to help.

*[Joost Visser](https://www.linkedin.com/in/jstvssr) is CTO at the [Software Improvement Group](https://www.sig.eu/), Professor of Large-scale Software Systems at Radboud University, and author of O'Reilly books [“Building Maintainable Software”](http://shop.oreilly.com/product/0636920049159.do) and [“Building Software Teams”](http://shop.oreilly.com/product/0636920048565.do).*