4 ms·
IntelliJ IDEA has taken refactoring from being a chore to being trivial, consequently making me much more likely to clean up ugly code when I encounter it. Bla
by l0b0 6y ago
IntelliJ IDEA has taken refactoring from being a chore to being trivial, consequently making me much more likely to clean up ugly code when I encounter it.
Black, the Python code formatter, means I don't have to spend a single brain cycle on styling the code.
mypy (with a strict configuration) has forced me to think about types, making for code which is much easier to follow and integrate with. No more `if isinstance(list, param)` or similar faff.
Bash, even with all its footguns, is a great lowest common denominator for getting a vast array of stuff done.
- civilian 6y agoDo you have an example of the configuration you use with mypy? (If you could post it in a gist I should would appreciate it! I've done a couple mypy tutorials but I haven't pulled the trigger on adding it to my projects.)
- l0b0 6y agohttps://gist.github.com/l0b0/b655d155c5cfc509c339cd0b1cd494cf https://gist.github.com/l0b0/b655d155c5cfc509c339cd0b1cd494c... Beware that if you're not yet using mypy I would not recommend starting with this - it's a lot of work to get to the stage where this succeeds. I'd recommend starting with no configuration at all and adding one setting at a time so you give yourself time to learn what they all do and how they help.
- bootlooped 6y agoI have a coworker I pair program with a lot who is a member of the VIM religion. But when we need to refactor something it's "let's use you editor (GoLand) for this".