58 подписчиков
12 видео
Getting started with Sourcery in VS Code
Getting started with Sourcery in PyCharm
An easy way to clean up if statements
Early returns and exceptions are good chances to simplify your code.
Using the Sourcery CLI
You don't need to worry about manually creating loop counters with enumerate.
Why is it so much faster to declare lists and dictionaries with literals?
Start using 'in' not 'any()'
Get() makes it easier to check through dictionaries.
Use `min()` and `max()` to compare values more easily.
Sometimes adding in a line opens up completely new refactorings.
6 easy refactorings for your code.