• by afarrell on 5/22/2021, 2:42:15 PM

    Automated tests.

    The books by Harry Percival on this are good.

    https://www.obeythetestinggoat.com/

  • by rajacombinator on 5/22/2021, 5:53:33 PM

    Big fan of the two you mentioned. A couple more to add would be:

    - Use black to format your code. No exceptions.

    - Very modular code.

    - Tests, although this costs time of course. Focus on meaningful rather than trivial ones if needed.

    - Write comments explaining reasoning for particularly dense pieces of logic.

    If you practice most of the above, hard to see where you can go wrong.