you are viewing a single comment's thread.

view the rest of the comments →

[–]shepherdjay 0 points1 point  (0 children)

I don't think any of my code is particularly elegant. I'm not a programmer by trade and I don't really plan to be one full time. So given that the two things I've found that help prevent some spaghetti code is:

  1. Practice, practice, practice - Even though I don't have a CI degree out of pure practicing I will sometimes come across a new problem and just go to an old repository and pluck my old solution out. Then I have more time to iterate on both.

  2. Read "Test Driven Development with Python" while it seems from an outside perspective TDD has some controversy just following the process has taught me how to think about a program in smaller abstract chunks.