DEV Community

Discussion on: How do you code when you are depressed?

Collapse
 
webbureaucrat profile image
webbureaucrat

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.

Collapse
 
aneeqakhan profile image
Aneeqa Khan

Yeah, even a small commit is a commit
Thank you! 😊