3 ms·
Some off-the-cuff tips, at least -- TDD is very easy with Python because the unit testing framework is built in -- I'd suggest writing tests for just about eve
by mydriasis 3y ago
Some off-the-cuff tips, at least --
TDD is very easy with Python because the unit testing framework is built in -- I'd suggest writing tests for just about everything you do.
Additionally, the typing system is expanding all the time. Make sure you're adding type annotations where / when you can; even lightweight ones like TypedDict help.
- ducharmdev 3y agoWhen I used Python for Advent of Code a few years ago, I found that Python makes unit testing fun. Coming from .NET 6 development, I'll do what I need to do when it comes to fleshing out unit tests, but the brevity of Python unit tests was real pleasant to work with.