wakingrufus
10/09/2017, 8:14 PMMarkus Bergkvist
10/11/2017, 6:06 AMfun fizzBuzz
does two things; generating a list of fizzbuzz-numbers and present the list (print). I would separate the two (single responsibility principle) and either have fun fizzBuzz
return the list of fizzbuzz-numbers or perhaps even better, yield the values, and the do presentation somewhere else. Thus making DI superfluous in this case.wakingrufus
10/11/2017, 12:08 PM