cursed programming for 36 minutes straight

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 7

  • @miroradics4565
    @miroradics4565 ปีที่แล้ว +19

    My final exam is next week, so thank you for this awesome tutorial!

  • @zaggazao
    @zaggazao ปีที่แล้ว +3

    someone explain why 13:15 is cursed?

    • @FurryDanOriginal
      @FurryDanOriginal 11 หลายเดือนก่อน +1

      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.

    • @zaggazao
      @zaggazao 11 หลายเดือนก่อน +4

      @@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.

    • @СтаніславСасин
      @СтаніславСасин 10 หลายเดือนก่อน +2

      ​@@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

    • @DoorSpire42
      @DoorSpire42 6 หลายเดือนก่อน +1

      its triple =:
      for (let i=0; i

  • @elektronishere
    @elektronishere ปีที่แล้ว

    69 views lol