Code-review 🔬

All code needs to be reviewed by a second engineer before being merged into master. 

We don’t have hard and fast rules on how we do code reviews. For more complex tickets it might make sense to do a walk-through, where the author explains his solution to the reviewer. For less complex tickets it might be easier for the reviewer to do the review by himself. It’s up to you to decide what feels appropriate for the given PR.

Some points to make Code Reviews run smooth:

Rubber Ducking 🦆

The concept behind rubber ducking or rubber duck debugging is simple yet effective: by explaining your code or a problem you’re trying to solve to someone else or even an inanimate object (like a rubber duck), you gain a deeper understanding of the problem and might even hit upon the solution in the process of explaining.

While this is mostly used for debugging, we encourage you to also use this technique before starting to implement a complex task or when you are stuck in between.

Please try solving the issue on your own first (we are happy to provide you with a rubber duck), before consulting someone else but don’t be afraid to interrupt another engineer if you need help. Find someone and explain what you’re trying to solve and how you think you want to approach it and you might even get a second opinion or a pair programming session out of it.

Pair-programming (blue star)

Writing Code in pairs or even doing the occasional mob programming session is not a mandatory part of our workflow, but highly encouraged. Especially during your onboarding phase or when you take over a new project, your peers will be happy to pair with you. But also after the first few months, if you enjoy this style of working and all the advantages that come with it, from sharing knowledge to getting your code review “on the go“, check with your peers during planning and grooming sessions which stories you want to pair on.

Some Best Practices for your Pair Programming Sessions: