• argv_minus_one@beehaw.org
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    11 months ago

    It also forces you to not have giant functions.

    No, being unable to read giant functions is what forces me not to have giant functions.

    • Hexorg@beehaw.org
      link
      fedilink
      arrow-up
      4
      ·
      11 months ago

      My friend, let me tell you a story during my studies when I had to help someone find a bug in their 1383-line long main() in C… on the other hand I think Ill spare you from the gruesome details, but it took me 30 hours.

      • argv_minus_one@beehaw.org
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        Case in point, actually. Whenever I’m forced to write a giant function, I always get nervous because it could be crawling with bugs that I have little hope of spotting.