211 karma · joined September 5, 2021
Socials: - github.com/olzhasar
---
It was all really sad for the last several years, but I started to make a huge progress recently. Here's what helped me a lot:
- Cure my depression (as others already suggested). It's extremely hard to do when you have every moment of your life filled with physical pain, but you should concentrate and separate your mental state from your body. One thing that helped me tremendously were psychedelic mushrooms. Under skilled supervision, this thing do wonders.
- Realize that there is a thing called fascia in our bodies alongside muscles and bones. That is often the primary physical reason for chronic pain. Here is a good video with explanations: https://www.youtube.com/watch?v=v54l3wDTJHg&t=638s. There are lots of strategies to treat your fascial syndrome, simplest and cheapest of which is foam rolling (helped me a lot). Acupuncture and massages are also great. Consistency is a key.
- Write everything down. This was the most important thing for me to solve the puzzle. You think you know your pain and your symptoms, but in reality they constantly change. And you perform different activities, feel different emotions. You need a place where you log all your pain symptoms, record any activities and track your progress towards healing. I use Obsidian for this. We software engineers tend to be too good at organizing software and too bad at organizing our own health records.
Hope any of it helps
I don’t know the actual science behind this, there are controversial opinions on this topic, but I definitely sensed that dark color scheme was making my astigmatism much worse. It’s almost completely gone after I switched (and that’s the only thing I did) and I can work for much longer periods than before. I eventually switched to light mode on my IPhone as well.
I suggest you to give it a try. Btw, I use papercolor scheme, which is great
ptw .
is a lot simpler than typing: watchmedo shell-command --patterns="\*.py" --ignore-directories --recursive . -c "pytest"
Second, I personally faced problems with suggested approach. I use neovim with ale plugin that automatically formats my code with black every time I save python file. That's two saves instead of one. In that case watchmedo will trigger pytest to run twice, which is usually not the desired behavior. Sometimes you also just save your file multiple times quickly and you want pytest to run only once with latest changes in mind.In my tool, there is a 0.5 seconds delay (configurable --delay). pytest-watcher will wait this time for other changes before starting pytest.
Regarding running tests for changed code only, there is a pytest-testmon plugin which does exactly that. It can be used together with pytest-watcher. Here is the link: