CRITIQUE FIZZBUZZ TEST VIDEO : Bad Coders vs Good Coders vs Great Coders : A For-Loop Can Tell

Опубликовано: 23 Октябрь 2024
на канале: Refactored Codes
78
2

This is a critique of a video, where the presenter uses a fizzbuzz test to show, how he can identify a bad coder from a good coder from a great coder.
I disagree with everything said in that video. And, I am putting my own point to prove why the presenter is wrong.
And, why that video teaches wrong coding practices.

The code written to replace modulo operation is 140 times slower than the code using modulo operation.

Timeline
02:00 : Bad Coder as per the presenter of the video
05:04 I expalin why (anyNumber % 15 == 0) is not equal to (anyNumber % 3 == 0 && anyNumber % 5 == 0) in terms of number of instructions.
12:45 : Good Coder AS Per the presenter of the video
20:19 : Improvement over Good Code using boolean variable
24:34 : Improvement Over Good Code using String Variable
27:33 : I am writing code to print the benchmark of code with modulo operation against the code which was written to replace modulo operation
38:34 : Run the benchmark and compare the time taken in two different code
41:41 : My way of writing code for a fizzbuzz problem
54:44 : Comparison of code readability between code written by me, and code written by a great coder.
56:20 : Demonstrating effect of branch prediction.

My Website : refactoredcodes.com

#java #fizzbuzz #coding