Hacker News new | ask | show | jobs
by mydriasis 1070 days 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.

1 comments

When 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.