• rockSlayer@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    I mean, that’s a reasonable rule of thumb, but there are definitely limits. It seems that they chose to follow the rule regardless of practicality. Helper functions are nice and good. Almost as good as recursion. Recursive helper functions are nicer and gooder

    • esa@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Yeah, there are some examples out of “clean code” that are absolutely ludicrous on the “tons of tiny functions” end.

      I’d also say letting map/filter and other common operations show is entirely fine.