• ZOSTED@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Haha yeah I’ve seen the error of my ways.

    But seriously I think it varies by use case. “Tight” languages like golang, python, ruby, or most backends (other than Java)? Going over 80 is a bit of a smell. But if we’re talking about a React frontend? Then yeah, an 80 character limit is obnoxious.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Nah, Python is a little verbose at times, so 100 is a bit better, especially for longer comprehensions with an if clause. Our team uses keyword parameters pretty much everywhere, so a lot of regular function calls wrap even at our 120-line limit (I’m trying to push us toward positional-only args to keep it under control).