Tips and Tricks for Coders
Tips and Tricks for Coders
Section titled “Tips and Tricks for Coders”This is a grab bag of advice on productivity tooling and set-up. Loosely structured, but please sign your contributions so that folks know whom to seek advice from.
Generic Coding Tips
Section titled “Generic Coding Tips”-
Give Co-pilot a shot if you haven’t already. It tends to get better with time, and has saved me a ton of keystrokes so far, in particular for repetitive stuff. [François]
-
If you have environment variables you want to set per directory, you
direnvis a useful tool. It can be used for activating your python virtual env when you cd into themomentum-calcsdirectory. More info here.
Python back-end
Section titled “Python back-end”- Pylance extension for VSCode is a bit buggy, but it is helpful in uncovering types issues before the pre-commit hook does. [François]
