ivanlp10n2 / bugszero-kata

https://kata-log.rocks/bugs-zero-kata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The BugsZero Kata

Bugs are optional, they sneak into our code much thanks the design choices we do, or fail to do. Let's try refactoring some existing code to make it more bug-repellent!

You'll practice reading code, looking for parts where it is likely that developers would create a bug if they extended the code. Whenever you've found such a weakness in the design your challenge is to strengthen the design in order to make that kind of bug very unlikely, or even impossible!

This repository comes packaged with code that is totally tested, using the Golden Master technique. Pick the language of your choice in this repository or contribute another one.

Procedure

  1. Identify a weakness in the design - now that's where we're helping you.
  2. State what the potential bug is before explaining your solution. This is important, simply saying another solution is better avoids thinking of why it is actually better.
  3. Explain or refactor the code to show the new design.

The purpose is to experiment with design alternatives, so it is not necessary to refactor to perfection, and it is optional to use tests. The purpose of first explaining the problem in the design is to make sure that the new design is not just different but also adresses one or more specific problems.


CREDITS: https://github.com/caradojo/trivia

About

https://kata-log.rocks/bugs-zero-kata


Languages

Language:Scala 100.0%