eatoncns / ttt_web

0 stars 0 forks source link

Reasoning for re-assigning constants #18

Open Maikon opened 7 years ago

Maikon commented 7 years ago

https://github.com/eatoncns/ttt_web/blob/4bf2021e42af77944b690043832e035a51cbb8ab/lib/game_mode.rb#L6-L7

Hey Phil 👋

How come you couldn't use the initial constants and had to reassign them here?

eatoncns commented 7 years ago

Initially it was just for readability but it also means tests are tied to concept rather than specific type if these the class used changed later.