Test Driven Development FizzBuzz in Java with JUnit - Lets Code - Better Audio

preview_player
Показать описание
A short example Test Driven Development session where I code FizzBuzz.

This is an improved audio version of an earlier video

****

****

FizzBuzz is often used as a programming interview question and as a Kata for practicing your coding.

The GitHub code repository with the Java code for this exercise is available at:

Read the blog post for the video:

Рекомендации по теме
Комментарии
Автор

my introduction to TDD couldnt have been better than this! Thanks for you explaination!

handlenotavailable
Автор

Wonderful video ! Well pointed out that when validating if a number is divisible by different divisors, instead of checking each divisor independently, we can short cut by checking if the number is divisible by their multiplication.

leandroroberto
Автор

FizzBuzz is a valid way to interview a programmer, it shouldn't be the only task or metric though. It gives insight in to how they think, coding style, whether they create maintainable code.

drcl
Автор

Nice one !!! Appreciate your efforts !!! Thank you !!!

Pawanpatil
Автор

Thanks. It is indeed a great demonstration!
Just out of curiosity, would it be better to create object of FizzBuzzConverter class in our Test class at Global level, instead creating locally in every test method. However the way you demonstrated looks perfectly fine to me as every time you create object of FizzBuzzConverter class in test method, it is assigned to local variable which has scope only within test method execution, so object would anyways be dereferenced after test method execution gets over. But still can you please provide your opinion on this. From an interview standpoint, could this get attention of interviewer that why are we creating object in every test method, when we can do it globally at class level using @BeforeAll ?

AjaySingh-xdnz
Автор

Thanks for the short intro. Do you have more complex examples which would give a deeper overview of TDD ?

ragu
welcome to shbcf.ru