2 ms·
Shouldn't you be writing tests anyway? NB I'm not being flippant - I've been using Python for a couple of years and appreciate the lack of boilerplate compared
by arethuza 12y ago
Shouldn't you be writing tests anyway?
NB I'm not being flippant - I've been using Python for a couple of years and appreciate the lack of boilerplate compared to many other languages and if there are "type" problems my unit tests, which I will be writing anyway, find them. Using an IDE like PyCharm does a good job of warning you about type problems at development time so I don't have a lot of run time type problems.
- Retra 12y agoYeah, you should, but you don't have to check trivial things like "is this a list?"
- arethuza 12y agoWell, I wouldn't write a unit test for that - I would write a unit test for the high level observable behavior and if I get it wrong that something is a list then it'll break and my unit test will fail.
- viraptor 12y agoI think that's closer to functional testing than unit testing though...