Skip to content

eugene-coding-dojo/elections

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elections kata

Goal

You inherit this code base that is used to compute elections results in different ways.

You goal will be to avoid any potential fraud, and add the following features:

  • Count as null a vote of an elector in another district
  • Make sure nobody can vote twice.

How you can use this kata

We have found this kata useful to:

  • train on refactoring
  • play with TCR (we recommand using this awesome plugin for IntelliJ
  • discuss on tests
  • expriment on several designs

Направления рефакторинга и ветки кода

  • logging-my-refactoring - делал по одному рефакторингу на коммит, брал первый попавшийся "запах" и рефакторил его.
  • extracting-voting-strategy - подготовительный рефакторинг для добавления нового способа голосования. Превращение класса Election в шаблонный класс, а реализация добавления кандидата, учета голоса, расчета результата перенесена в классы конкретных стратегий.

About

An election system that needs some refactoring ;)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 36.0%
  • TypeScript 32.4%
  • Kotlin 31.6%