• 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 days ago

    tl;dr

    If you ever need to start a line with parens or brackets, consider using a ; right before it, as so many have adopted. Although, there is rarely a case where this would become a necessity.

    • Azzu@leminal.space
      link
      fedilink
      English
      arrow-up
      23
      ·
      6 days ago

      Tl;dr: just put a semicolon at the end, and you never need to think, this is just not really worth it

      • Deestan@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 days ago

        Shitting on people “thinking too much” is the most destructive attitude you can have in software development. That is how we build real skills. It doesn’t matter if your opinion is that the thing being used to exercise on is weird or useless.

        • Azzu@leminal.space
          link
          fedilink
          English
          arrow-up
          10
          ·
          6 days ago

          If you desire to interpret my comment as “shitting on people”, that is your prerogative. However, that is not how I meant it.

          Thinking about things is great, and that opinion is actually contained in my comment, if you look closely: I want people to think, just not about things that aren’t really worth it.

          The article is great, thinking about this in general is great, you just don’t want your future to be spent making decisions about where to place semicolons, that is not a beneficial use of one’s time. Without that thinking about where to place semicolons, you’re free to think about more useful topics.

  • darklamer@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 days ago

    This is wonderfully bizarre, but informative, I had actually wondered what exactly the rules were.