• RagingNerdoholic@lemmy.ca
    ·
    edit-2
    11 months ago

    https://en.m.wikipedia.org/wiki/Rule_of_three_(computer_programming)

    Copy for twice, abstract for thrice. I've followed this since I learned it and it's served me well.

    Edit: Wikipedia links are fucky