That solution is not scalable. When you'd like to add more possible values than just "Fizz" and "Buzz" you'd have to adjust the code despite only the values changing, which is generally a good indicator of bad code. And the amount of code you'd have to add increases exponentially.
@@FurryDanOriginal but realistically, the entire point of that code was to just say fizz or buzz or fizzbuzz, and theres no point to scale it. This comment was from 9 months ago, when I didn't know how to make the code better, but now that I know, I still don't understand why someone would.
@@zaggazaobecause you never know. The entire point of programming techniques and patterns is to easily change your code in case your client is a dumbass that doesn't know what he wants and makes changes to the original plan 5 times a week. Also for debug purposes - if you have an error returned by a function rather than hardcoded shit you just fix the function and not rewrite half the code
My final exam is next week, so thank you for this awesome tutorial!
someone explain why 13:15 is cursed?
That solution is not scalable. When you'd like to add more possible values than just "Fizz" and "Buzz" you'd have to adjust the code despite only the values changing, which is generally a good indicator of bad code. And the amount of code you'd have to add increases exponentially.
@@FurryDanOriginal but realistically, the entire point of that code was to just say fizz or buzz or fizzbuzz, and theres no point to scale it. This comment was from 9 months ago, when I didn't know how to make the code better, but now that I know, I still don't understand why someone would.
@@zaggazaobecause you never know. The entire point of programming techniques and patterns is to easily change your code in case your client is a dumbass that doesn't know what he wants and makes changes to the original plan 5 times a week. Also for debug purposes - if you have an error returned by a function rather than hardcoded shit you just fix the function and not rewrite half the code
its triple =:
for (let i=0; i
69 views lol