Hello all, I want to know how you get yourself to code when you are depressed and sad and you can't do much about it, But you have office work to do.
For further actions, you may consider blocking this person and/or reporting abuse
Hello all, I want to know how you get yourself to code when you are depressed and sad and you can't do much about it, But you have office work to do.
For further actions, you may consider blocking this person and/or reporting abuse
dev.to staff -
Dev on Remote -
Spandan Sehgal -
Alysa -
Latest comments (40)
order a coffe and you will get intrest on code
I just keep the faith that all things will work out for the good. Without fail, they do. It's just a matter of when and how it all works out.
Yup, After every sunset comes a new sunriseπ
I gamify the GitLab contribution graph--goal of one commit per day, pushing for two or three. Even when I'm very much not feeling it, it's not hard to make myself open my laptop for one commit, which can take just five or ten minutes.
You end up with lots of very small changes over a long time, which is great for productivity because it keeps the state of the project fresh in your mind. It's also great for depression because even in the slow times when you're slogging through a difficult problem, you still have something very visible--a wall of colored-in squares--to show for it.
Yeah, even a small commit is a commit
Thank you! π
Refreshing, outing or work from new place like co-working space
I try to be patient and remember that it will be easier to understand and make progress the next day. A lot of times I measure my success by how much I finish each day, but with depression, it's much easier if you measure how much I finish each week.
Also, I try to shift to things I find very interesting or that are easier. So, I might write some unit tests or improve something about my developer workflow. I find that it's harder to create or write large blocks of greenfield code when I am down. It's easier to read existing code or do smaller refactors.
Thats a good idea to refactor old code and still get productive today.
Thank you! π
nice
Thank you everyone for your time and solutions!
It really makes me feel I am not alone in this. However reason of my depressed mood was something personal but still you guys sent me all those advises which really helped me.
I want to share what I have done to cheer me up yesterday.
I cannot get enough of the 11 month old snowboarding baby in China.
you don't, take a break ask for a 1-2week leave or atleast tell the hr to give you sometime off. Meet friend's, share what's bothering you with someone you trust and comeback to coding when calm.
It's so hard. I know I just try not to be hard on myself and give myself breaks because honestly, there is a lot going on in the world that can flip us into that depressive mode really quick.
I just had a bad two day downer and I felt like I wasted a bunch of time. But once I finally was able to get myself back up and going, I made sure not to beat myself up about it. I felt like I got myself way behind in trying to find work/and or freelance projects, but taking care of mental health is always job numero uno for me.
Yup, I did same. I took a break when I was not feeling to do work and today I'm feeling much better and productive. Thank you! π
Wouldn't consider myself to be "depressed", but i can be sad from time to time, so i'll throw my 5 cents in. I do like 15 pushups, rest for 10 minutes, do another 15 pushups and after that i feel really energetic, don't know why, i just do. (If no one's looking) you can punch the air for a couple of minutes, it's strange, but for some reason it gives you a substantial energy and mood boost based on my experience. Listening to folk songs with jolly melodies can help too, my personal favourite in that regard is: "Wenn die Landsknecht trinken"
I can relate to you with music, I prefer to listen "feel-good" or "country" songs during a depression. It helps π
Thank you!
Amphetamine
I take my MacBook and drive somewhere like an empty park or back road, park, and work. Driving helps clear my head.
You can only push yourself too hard though. Reaching out like you're doing is helpful. I wrote a post about how lonely coding can be and the replies really helped me.
Thank you James! π
You're not alone in this lonely world.
dev.to/james_palermo_bc208e463e4/t...
The best for me is to sit and do something. I set the timer to 20-25 minutes and trying to concentrate on the task. And i often go to the gym. The main thing is not give up
Try going for a walk.
Coding is problem solving.
I often get epiphanies or breakthroughs while doing other things.
You could look at the work ahead of you and tell yourself you'll focus on this problem on my next walk.
Then while you're enjoying the outdoors, focus on solving the problem.
Or just focus on the outdoors. The solution will either come on its own, or it won't.
Great point @darkwiiplayer !
I think it starts with positive self-talk. Guilt can be a vicious cycle, don't treat yourself worse just because you are struggling.
My positive self-talk takes a turn and convert into regret talks π
But yeah once should try that.
Thank you! π