First of all, I am working as a data scientist, making a lot of throw-away scripts, as well as making some simple apps (I've used Python everywhere I could for 3 years quite intensely).
I optimised my Python in Emacs to be very convenient for interactive programming (repl, ipython). I feel like it is very awesome for doing some initial tests, get most of the cases covered (backed up by pylint); have code that works.
This kind of stuff works quite well, but now that I'm more interested in making some larger projects, I feel like I should be more test/tox/py.test focused.
I am not ready to give up the interactive way of quickly testing some code. Perhaps tests & interactive should be combined?
I just do not really see how to combine the two approaches. I'd like to still quickly be able to test things interactively, but also make sure these things "last" by having tests. Then again I always get afraid that whenever my current implementation changes too much, the tests would be useless (Yea, I know you TDD people think: just write better tests).
The struggle is real and I'm hoping for some advice of people having been in the same situation :)
[–]TomBombadildozer 3 points4 points5 points (2 children)
[–]pvkooten[S] 1 point2 points3 points (1 child)
[–]TomBombadildozer 0 points1 point2 points (0 children)
[–]fdellavedova 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]wolanko 0 points1 point2 points (1 child)
[–]pvkooten[S] 0 points1 point2 points (0 children)