r/learnprogramming • • Nov 07 '21

Topic How do you learn Programming when you're depressed?

Is there anyone who is Clinically depressed and yet has successfully completed programming courses or is a programmer? If so, how did you cope?

1.7k Upvotes

323 comments sorted by

1.4k

u/accountant119 Nov 07 '21

Programming is actually my escape from reality!

Between highschool and college years, we had wars and armed conflicts where I live. At that time, I was religiously interested in computer Programming

I had nothing to look forward to, and didn't have anything to do, except reading my Programming book and coding on my old computer. Seeing my code getting compiled and showing results, was the highlight of my day

It made me feel strong and smart; it was literally what kept be going through dark times

74

u/timtheawse Nov 07 '21

What a story ❤❤❤👏

→ More replies (1)

46

u/[deleted] Nov 07 '21

yup same...headphones in and just forget about humanity for a few hours is litteraly the best feeling. sadly u have to quit a few times a day in-between sessions lmao

17

u/CatsEatHamburgers Nov 08 '21

Nothing quite beats coding with noise cancelling head phones and completely zoning out from reality and in the blink of An eye realizing its evening already

→ More replies (2)

113

u/[deleted] Nov 07 '21

Yeah, the same, it helped me though a kind of breakup. Thinking about solving problems and making code work occupied my head, and kept hurtful thoughts away

22

u/[deleted] Nov 08 '21

Same here. Wife walked out on me. Instead of driving me to drink, it drove me to code. Never looked back since.

→ More replies (2)

37

u/Absozero0 Nov 08 '21

andProgramming is my way to cope and to feel good and to feel better, but my parents disapprove and only want me to work on studies and code very minamally. It came to the point where all of my code was permanently deleted from my hard drive.

Lets just say that it was good luck that I had git and a private GitHub repo with my data

28

u/CogentNabob Nov 08 '21

Do your parents live in the 1800's, that's insane. Glad you had a back-up.

79

u/[deleted] Nov 07 '21

For me too! I am transgender and my parents aren't exactly approving. Programming is a great way to escape.

8

u/Maros_99 Nov 07 '21

That's literally what keeps me going most of the time. I am not at the darkest place, but not also at the brightest. And coding is my coping mechanism.

18

u/NocturnalEngineer Nov 08 '21

I'm like you. Its my coping mechanism.

I struggle controlling aspects of my life, especially my own thoughts. But programming is all logic. It's problems awaiting instruction, problems I can (eventually) understand and solve.

The only time I'm feeling good about myself is when I'm being useful.

Building stuff, even if it's just a simple script, is me solving a problem. I like to think I'm contributing to my customers and colleagues in a positive way.

Life sucks, but when I put on Spotify and get stuff done, I can forget about it for that moment.

→ More replies (3)

3

u/aboutlan Nov 08 '21

studying to you. working harder together!

→ More replies (1)

3

u/sailesh083 Nov 08 '21

That's how. Programming puts me into my comfort zone. Programming has pulled me out from the darkest and deepest of pits. Programming is my reality and I'm grateful to it.

→ More replies (1)

4

u/[deleted] Nov 07 '21

glad you pulled through all that. you ARE strong and smart. keep up that positive mentality. you're an inspiration.

→ More replies (1)
→ More replies (16)

310

u/ThaNotoriousBLT Nov 07 '21

The antidote to judgement is curiosity. I find that this mantra helps me when I start to feel dumb or stress out to the point that it isn't helpful. Some level of striving is good so that you have some goal to focus on. Some level of stress is good in order to get moving towards those goals. But if I find myself feeling depressed (typically due to imposter syndrome) or paralyzed by fear (usually due to overestimating the risks associated with not accomplishing my goals) I find it's better for me to just dial back judgement and explore a topic like I'm a 5 year old.

It's a tough balancing act that I think I got better at over time.

27

u/[deleted] Nov 07 '21

'The antidote to judgement is curiosity.' I love that.

16

u/Xanbatou Nov 07 '21

Also, explicitly document your triumphs as you achieve them. When you are feeling down, you can revisit them to remember things you achieved for the first time in the past when you weren't sure if you could do it. As a bonus, you'll often see things you could do even better now with the benefit of hindsight, which will also help lift you up during those times.

3

u/CartographerNo1759 Nov 08 '21

Yes! I’ve started a document called “Successes.” It’s easy to forget the bugs you’ve fixed sometimes.

10

u/SKEEPOLA_2015 Nov 07 '21

Great comment

12

u/Ikem32 Nov 07 '21

That was very helpful. Thank you.

2

u/[deleted] Nov 07 '21

Reminds me a little of a line in Brideshead Revisited which I think was something like 'To understand all is to forgive all.' This is like your idea of the antithesis between judgement and curiosity... Once you see through someone else's eyes, it'll all make more sense...

Great comment.

2

u/[deleted] Nov 07 '21

Thank you. Screenshooting your comment

→ More replies (4)

251

u/xMontyxyx Nov 07 '21 edited Nov 07 '21

I know Chris Sean on youtube went from zero to hero through programming. Was horribly depressed ect check his youtube channel out.

But shits tough, because who doesn’t get caught up in their own mental health from time to time, you need to figure out what works for you

64

u/Mall_Emotional Nov 07 '21

I learned arrays in c++. There was a point in time when I had no idea what an array was. Keeping track of your progress, big or small is helpful.

18

u/[deleted] Nov 08 '21

[hip][hip]!

5

u/[deleted] Nov 08 '21

Ha! I C what you did there, pretty sharp lololol

→ More replies (1)

5

u/turboJ_134 Nov 07 '21

I am!!! I have to do programming because it's my job.

3

u/Strawberry_Is_Tasty Nov 07 '21

How do you do it?

14

u/turboJ_134 Nov 07 '21

Whenever I start programming ( especially) during my work day! I listen to music( my playlist) then start coding- everything on my mind vanishes . I only think about coding. I dunno why it happens but it happens. I am glad it does. But the only problem is I have to start doing it otherwise it's not possible

→ More replies (5)

5

u/[deleted] Nov 07 '21

Turn on some animal crossing rainy music and just work through things the best I can

4

u/turboJ_134 Nov 07 '21

Also try to build something that you really want! That helps

65

u/Bivolion13 Nov 07 '21

Honestly other than you "just power through it" this question is basically "how do you do x when you are depressed". There's fun gimmicks and tricks that might be helpful, but the best answer is always fixing it at the source by doing things to mitigate your symptoms, getting help, getting medicated, etc.

5

u/[deleted] Nov 08 '21

Yep ^ I’m “powering through it” this year as I’m in my last semester of grad school and I can’t even tell you how many times I have to make up some excuse to my profs why shit is turned in late (bc I was too depressed to take the time out and learn whatever the task is). Should’ve gotten help sooner and enjoyed this time in school, but alas.

56

u/IWantToDoEmbedded Nov 07 '21

take care of your mental health first. You cannot expect your mind to have the energy and clarity it needs to learn new skills when it’s constantly being drained and fogged by something else.

→ More replies (1)

16

u/personman74 Nov 07 '21

Maybe this will help, making small goals in learning programming and seeing yourself make progress towards those goals can give lot's of positive emotion.
Also making it so that you have a simple easy to implement Graphical User Interface. Like a simple website, or windows forms will help give a motivational boost since you can look at what you've made. At least it did for me.

Good luck, hopefully you'll find something that helps you feel better as you learn programming!

16

u/Lagg00n Nov 07 '21

Learning python and the web development trio languages has brought me out of my depression because I realized I had no goals prior to this. I had a career that paid well but was destroying my body and I also felt like I wasn't utilizing my brain.

Now my current employment is no longer detrimental to my state of mind because I recognize it as a means to an end. I fully intend on becoming a full stack web developing hero of the world! And everything in between there isn't the end but only the beginning.

If you care to talk about anything shoot me a message and I will reply as promptly as I am able. Feel better mate!

14

u/skinsthelargestorgan Nov 07 '21

I feel ya. I've been learning programming for 2 years, but actually know basically nothing. For the most part of that time I've been in bed wanting to learn more, but I didn't have the energy to even boot my pc. I feel ashamed of my progress, I barely know Python or any programming concept for that matter. I'm afraid to show my code, I'll be laughed at if I say that this is where I'm at after almost 2 years. I want to reach to others for help, but I'll end up disappointing them, so I stay in discord servers understanding nothing they say and saying nothing myself, once again to avoid being ridiculed. I feel like quitting, but I love programming so fucking much, way more that I would ever expect. I seriously don't know what to do at this point. Thank you for coming to my TedTalk

7

u/zenoskip Nov 08 '21

Get a mini project/do a udemy course that will walk you through it. After chugging away at random stuff for so long I finally can make stuff happen. without something to guide you you’ll feel stuck. And how can you start a cool idea/project if you don’t know where to begin? Udemy is awesome no lie. Jonas schmedtmann is the man.

→ More replies (7)

2

u/another-art-student Nov 14 '21

You could try making something small for yourself just for fun! You don't need to show people your code, and you don't have to say how long you've been learning when asking for help. Progress is so personal, if you feel like a beginner, just preface it with that so people would be more understanding.

Also, there are learning apps for phone! I didn't find any great one yet, but even a half-decent app is so helpful when you can't get to PC but want to practice instead of just watching videos or reading articles.

→ More replies (2)

3

u/ThisIsReLLiK Nov 08 '21

You have absolutely learned. I've found that when it comes to coding, you make progress and never actually notice it. Things just start to get easier and you're problems get more complex. Maybe it's just me, I'm not sure.

→ More replies (1)

24

u/[deleted] Nov 07 '21

Background: I've been a web/mobile developer for about 10 years, 3 freelance, 7 working for companies. Was diagnosed with depression around 12 years ago.

Here are a few things that worked for me.

  1. Don't force it. I know it can be frustrating when you want to put in the effort to learn something new, or do anything for that matter, but feel completely drained of energy, but pushing yourself too hard may make you resent programming or burn out, which is really hard to come back from, even for none depressed folk.

  2. Ride the motivation wave when you have them. There are times when I'll go months not writing or learning anything new outside of my day job, but every so often I'll get this wave of motivation, or simply just have a "good" day, and I try to use that to my advantage. I find it works well to keep a list of things I was to do/learn and pick something from the list when I find the energy to do so.

  3. Break everything down. It's much easier to do small tasks, and can help reduce stress by simply breaking things down in to smaller chunks. I do this both in my personal and professional life, whether it be a ticket I have to complete or simply a chore that seems like a mountain.

Not so much tips, but a few things to keep in mind. Depression is hard, and some days it can feel impossible. Don't be too hard on yourself if you can't find the energy to do the things you want to do, programming or otherwise. Your mental health comes first, be kind to yourself, and reach out to someone if you need help. It goes without saying, but mental health is just as important as physical health and should you become a professional developer, you have to remember this when you're having particularly bad days. There's no shame in taking a sick day to focus on yourself.

3

u/vr19_dudu Nov 08 '21

one of best answers I had read

→ More replies (1)

32

u/Hlidskialf Nov 07 '21

First go to a doctor and explain him/her everything.

Mental Health is no joke.

Then focus, i hate routines but you gonna need one. Always do things in the same time. I hate this but i deal with it and helps.

11

u/v0gue_ Nov 08 '21

I agree with this. You can't efficiently learn any skill while depressed, and that shit is no joke. Your mental needs to get fixed before you can effectively learn something, programming or otherwise

→ More replies (1)

4

u/LaterBrain Nov 07 '21

And if the doctor is expensive, there are always hotlines you can call.

20

u/AlgoH-Rhythm Nov 07 '21

Exercise, if you don't get any then you're literally at 1/4 capacity of your concentration and creative / problem solving ability. And I don't mean a light jog. I mean anaerobic, huffing and puffing 80% at least of maximum heart rate

4

u/hellmanZ6 Nov 07 '21

lifting a ton and feeling your brain explode is so pleasant... like meditation

25

u/maryP0ppins Nov 07 '21

Im literally at WAR in my mind every single day that I program. You just have to go through it homie. it does get easier though. I use pure anger, but i also doubt many would thrive like that.

→ More replies (2)

14

u/Redditardist Nov 07 '21

Frankly, depression is a state where your brain biologically has no fuel for motivation, powering through it can eventually burn you out, rebalancing yourself even with meds should be the first step. One thing I'll do say, working in a high tech environment with the right company, doing what I love and working remotely has helped me tremendously with my mental health, there were times I couldn't hold a shitty job for Moore than a month

5

u/83Thomas Nov 07 '21

What kind of remote job do you have? I'm using the odin project to teach myself web development and hope to land a remote front end web dev job eventually.

3

u/Redditardist Nov 07 '21

I'm a self taught full stack but currently working as a front end react dev

5

u/83Thomas Nov 07 '21

Nice. What resources did you use to learn? I've looked at the Head First HTML & CSS, JavaScript and Python books, The Odin Project, freeCodeCamp and App Academy Open. How many applications and interviews did you have and how long was your job search? Sorry for all the questions, but self-taught success stories motivate me. 🤣

→ More replies (3)

14

u/siphillis Nov 07 '21

Discipline. The difference between professionals and amateurs is how capable they are of doing the job when they aren’t feeling motivated. Relying on passion and motivation is an amateur mistake, since motivation can be elusive or even illusive. Discipline, by contrast, is reliable by nature.

That all being said, it’s important to keep stock of how you feel about programming and if it’s something you even want to do. If months go by and you haven’t derived any joy from it, even in success, it might be time to move on and find something you are truly passionate about.

4

u/[deleted] Nov 08 '21

Cant agree more - gotta push through even when motivation isn’t there. Cant wait for motivation cuz it may never come. And that goes for anything not just programming

2

u/Low-C0ntext Nov 08 '21

This was perfectly said. I too suffer from depression and lack motivation more than the next person but this made a lot of sense to me. Discipline is what I lack the most.

2

u/another-art-student Nov 14 '21

This is highly individual, but having months of no interest in hobbies is pretty normal with depression, not a sign to give it up.

→ More replies (3)

7

u/lko2181 Nov 08 '21

Programming lets you live in the mind (not in this often-disappointing world) and in a 'world' where logic and solving problems defines your success. YES, you're likely going to deal with "real people" who need their problems solved, "real deadlines" by which a problem needs to be solved. But your abilities to solve the problems, create solutions which are needed in a way that pleases your sensibilites (and those of your "customers") is more satisfying than you can imagine. And if you're so inclined, it's a way of HELPING peoples' lives to improve by you creation of solutions. This type of accomplishment bring a sense of self-worth that might help your tendency toward depression. You can use your creativity to be appreciated by others and to help improve their lives, validating you personally (and making a decent living in the process). Pardon the rambling, but I tend toward depression, worked in development for 46 years, and had my best sense of personal worth coincide with my best achievements professionally. Only better thing for me was applause from an audience after performing in an orchestra concert (as a young person) and that appreciation was VERY fleeting compared to satisfaction from a months long project succeeding... Good luck....

10

u/straightup920 Nov 07 '21 edited Nov 07 '21

You need to find a way to make your depression more manageable. I wasn’t a huge fan on how anti-depressants made me feel but taking Zoloft gave me the ability to actually get up in the morning with energy. Then I was able to hit the treadmill for a little every day and it helped my depression and gave me the energy necessary to work on myself, feel better about myself and do things like practicing my programming skills and such.

The biggest problem for me when I was depressed was having 0 energy and having 0 motivation whatsoever. Doing those things gave me both energy and motivation that I needed

5

u/PentatonicScaIe Nov 07 '21

I find it hard to do anything productive (or even semi-productive) when depressed. I dont know how to switch my mindset. Been dealing with this for months.

4

u/ProgrammerInProgress Nov 07 '21

I've been depressed for most of my life. I've been a professional programmer for seven years.

There are some down times. I've been honest with my bosses about those and they've been understanding for the most part, which I've been incredibly fortunate with. I am extremely easy to work with and competent at my job though, so that does help with getting some leeway.

If you're in school, nothing helped me more than just graduating. That suffocated me most - once I found myself in a workplace environment, I thrived. I just did not do well with academic deadlines in a way that didn't affect me with work deadlines.

4

u/lucioviz Nov 07 '21

I got medicated and it changed my life. I am almost done completing my portfolio while working on a freelance project.

→ More replies (3)

4

u/oefd Nov 07 '21

Same way I did/do basically everything: I do my best. Sometimes I'm basically debilitated, sometimes I'm not. I did my best to manage symptoms and take mental health seriously and all that and over time I've gotten better at coping and spend less time being debilitated.

I still deliberately seek out jobs where timelines are measured more on the order of weeks and months rather than days so if I need to take a few mental health days it doesn't really matter because I can catch up when I'm in a better mood next week.

4

u/emefluence Nov 07 '21

Something that I've found has kept me moving forward when it all seems a bit too much is project organization. Have at least one pet project on the go and use github's issue tracker and project boards (or Jira or whatever) to organize it. Having your projects organised feel great.

Even if you're having a bad week or two you'll probably still have ideas for features, bugs, questions to resolve, decisions to make, admin to do etc. If you can't be arsed implementing them on a given day you might at least find a second to log them, and maybe estimate the effort required for them.

That, in itself, keeps your project moving forward but even better, once you have logged a bunch of stuff, you can easily find the kind of issue that you can face on a given day e.g. small issues / easy wins, research issues and reading, documentation etc.

Even doing one small issue or project planning task in a day can give you a good lift, and these small organizational tasks are often quick, easy and become more valuable as time goes on.

If you're doing a course you can use the same project planning tools to organize your learning and coursework too. It's good to have all your ducks in a row so when you have a good day you can hit it hard. As for courses, I reckon the ones you take with other people offer loads more motivation than pure self study, esp if there's an emphasis on team projects / pairing.

Best of luck with it! There's a lot of meaning and satisfaction to be had if you let yourself fall in love with programming, and it sounds like you're used to dealing with rough patches which are a periodic feature of everyone's coding journey!

4

u/ziza148 Nov 07 '21

You learn programming because you're depressed. Then you're depressed because you learned programming. /s

3

u/IncognitoErgoCvm Nov 08 '21

"/s" for "serious."

→ More replies (1)

4

u/[deleted] Nov 07 '21

Damn, this sub has turned into trying to lift people up from clinical depression. To be honest, you first have to get cured if you want to do anything, that includes writing a simple program. Seek out medical attention and after you get treated, then you can come back to coding. It's not going anywhere and you need to take care of yourself first. People here need to relax a little bit I think.

4

u/[deleted] Nov 07 '21

Coding a damn hard skill to learn. It requires putting 2 hours a day in for a prolonged period time like 9 months. Then you start seeing results and you start to see you can build stuff.

And about depression, depression is your body telling you it’s hungry for something, but it’s not getting it. Go find what you need and fill in that need. Once the depression lifts you get room to learn new things.

6

u/BlackCat550 Nov 07 '21

Progress and Achievements probably.

Set small goals. Each time you complete a goal, you'll feel better cause you're making progress.

3

u/thebutchcaucus Nov 07 '21

scrimba bro....they don't jerk you around with the figure it out stuff...they just keep going...and as long as you follow along you'll get it too.

There's a lot of hazing that goes on in some programming circles which isn't good if you already are feeling sensitive...this nips that in the bud.

3

u/daburgerman2002 Nov 08 '21

Dude,

I can't even enjoy playing video games when depressed..

30

u/BertRenolds Nov 07 '21

I just sat and did it.

It's just another thing to learn and complete. Like laundry

45

u/[deleted] Nov 07 '21

I hate comments like this

10

u/KwyjiboTheGringo Nov 07 '21

Then you must really hate the top comment, where they say their love for programming made it fun

→ More replies (1)

9

u/_rob_saunders Nov 07 '21

Damn, I hope programming isn't as mundane as doing laundry.

34

u/[deleted] Nov 07 '21

On some levels it absolutely is. Even super creative jobs like artist leave you spending a lot of time cleaning brushes and sorting paints. You can't escape hum drum, just enjoy the good parts while they last and anticipate them when the boring comes back.

8

u/LoveASAurusRexGamer Nov 07 '21

It sure can be. Just all depends what you are doing and what state you are at in the project.

8

u/starraven Nov 07 '21 edited Nov 07 '21

Learning it from scratch is absolutely infuriating. Wait till you get to a spelling error that takes you an hour to find hahahahhahahahahaha :(

You learn to account for these little mistakes though. It gets easier the more you do it.

→ More replies (1)

13

u/[deleted] Nov 07 '21

I just sat and did it.

If we're talking clinical depression there are days when you can't even "just get out of bed". It's 2021, we should've gotten over this "muh will power can surpass health issues".

→ More replies (10)
→ More replies (3)

4

u/nierama2019810938135 Nov 07 '21

Let yourself be obsessed and focused. Tune out. Dig in. Programming is hard if you aren't at least borderline obsessed.

Just my humble opinion. Different people, different walks.

8

u/_rob_saunders Nov 07 '21

Start working out.

2

u/hoodratnecromancer Nov 07 '21

Hang in there and work with it. What I mean by that is, don't set a strict schedule -- be loose by allowing yourself light work on the harder days. Take those days to simply read programming related things of interest to keep that flame and inspiration alive. When you're depressed it's important to remember that there was something about programming that grabbed your attention and became a source of meaning.

2

u/ImWolftom Nov 07 '21

Im going through the same dude, before I learned so quickly and had always motivation, now I can't even read 5 minutes without losing focus or feeling so bored, but well this happens with almost everything for me

2

u/KrevinCupine Nov 07 '21

I feel this so deeply. I’m balancing a career, being a single income household, and depression (much like others here. I’m not a special case) I’m attempting to branch out of my usual IT security gig. I’ve always been interested in programming ever since I was young. But now I’m finally pushing through the haze.

2

u/CartographerNo1759 Nov 08 '21

Same. Everyday is a struggle. I hope you have a village you can help you, Krevin. DM me if you need to talk.

2

u/another-art-student Nov 14 '21

Good luck! It sounds like a lot to deal with, the fact that you are trying is impressive. You'll get there.

2

u/hunnyflash Nov 07 '21

I did a boot camp which held me accountable. I HAD to get up every day and sit and learn. Sounds shitty, but it's way easier than making myself get up and do it.

Now I'm trying to do school on my own, and even though it's not self-paced, I'm a month behind. So, as much as it might not seem helpful to anyone, I will just have to get up and do it...or lose the $2000 I paid in tuition.

So, sometimes high stakes will force you to learn? lol

2

u/Brandycane1983 Nov 07 '21

I've found that learning is a great distraction to get me out of that part of my mind. Granted I'm a total noob, and I'm a 38yo female and only 2 weeks into codecademy, but I find myself totally absorbed in the lessons. I also just purchased Angela Yu's 100 days of code course from Udemy based on recommendations from this sub and I'm so excited to start it tomorrow. I haven't felt a spark like this in years. You can do it, at minimum do 1 lesson and see how you feel.

2

u/hellmanZ6 Nov 07 '21

I am clinically depressed and that made me waste 10 years of my life doing nothing. I did first year of a 2 year programming degree (in my country is a whole differente story) and now I'm failling to get a company to do my internship in my second year. I simply reject them because of anxiety and suicidal ideation.

The problem was I stopped low carb diet in summer and started heavy caffeine use. Low carb and no caffeine allowed me to complete my first year with excellent grades but somehow, when you feel better you forget the cure.

I'm doing again low carb and eliminating my caffeine addiction, hopefully everything will be ok. Otherwise I will lose a ton of money and my only hope to move out of my parent's house (im 29 lol). Also using Wim Hof's breathing technique, it's like taking xanax if you do enough rounds. Destroys insomnia too, really magical those yoga traditions...

Depression sucks really hard. This sensation of pure despair should not exist in this fucking universe.

2

u/Historical_Love7860 Nov 07 '21

If you are a beginner, don’t try leet code problems or try to be a competitive programmer. Just start learning the basics Please try to treat learning programming or programming as a hobby or a distraction. Don’t compare your progress with others. Go at your own pace. If you are not a book person like I am, try to watch YouTube tutorials. If you think that learning programming on your own will not make you progress fast, try joining a online training courses which will have schedules and stuff according to your level. If things are going out of hand while learning programming, I suggest you to stop doing this and work on something else. I hope this works! All the best!

2

u/Kash5551 Nov 07 '21

You don't. Work on your depression first then get to the programming.

2

u/ThatWait0 Nov 07 '21

Depression sucks but no one will solve it for you. You have to drag yourself from the abyss, programming can help you stabilize your financial situation or your uncertainty about the future. Good luck, its hard

2

u/HighwayMcGee Nov 07 '21

So like, normally?

2

u/[deleted] Nov 07 '21 edited Nov 16 '21

Ben Simmons is a coward

2

u/xdchan Nov 07 '21

Take escitalopram, get manic(if lucky) and study for ten hours straight to make some million dollar project.

On a serious note, get your meds, test different ones to get optimal results, fix up your lifestyle to function normally and define a personal goal.

It has to be interesting, you can aim for a browser game or some criminal shit or whatever is interesting for you.

2

u/bigg_mike_ Nov 07 '21

A lot of keys get depressed when I program.

2

u/Rebatu Nov 08 '21

Simple. You get your psychiatrist to give you good meds and therapy. After that you go learn programming.

2

u/glassjar123 Nov 08 '21

I am not clinically depressed but I seriously have trouble concentrating. If I went to a doctor when I was a kid I would have been diagnosed with ADHD for sure. I feel I struggle with adult ADHD: what I liked about coding is that it is perfect for me who can get very obsessive about solving a problem for hours, I like puzzles, I won’t give up. If I choose a project to focus on I can really get it done. So that part of learning is great. Also new languages and frameworks come out all the time, I have to move on to new distractions, making me un afraid to learn new things. Yay win. When things get really hard, when I want to talk to people about new project but I am too sad to talk, I could join online communities and meet people at Hackathons who are way more excited about what I do than my family and friends who just see imperfections. Those three things helped me learn to code

2

u/Low-C0ntext Nov 08 '21

I don’t know if this will help anyone but I too suffer from depression, lack discipline and in turn have very little motivation to do anything. So with that pops procrastination and loss of focus. I have been trying meditation for the last couple of weeks, just the simple act of focusing on your breathing or heartbeat, just anything that can bring you to your present moment is what has been helping me.

I’m still at the beginning stages but it will gradually make a difference in how your brain operates. Some days I fall back but just try again and soon enough you’ll see some difference.

I wish you all the luck and strength, you will get through it.

2

u/Signature-Worth Nov 13 '21

Me! Programming 1 came at a time when I was very depressed and anxious. I had been diagnosed as such probably 8 years prior. Without any prior attempts at familiarizing myself with computer science, programming or anything of the sort, I began learning C# via a textbook and filmed lectures. Oof!

As far as the clinical depression goes, I started taking medication a year after the class. In my case, it allowed me to actually have enjoyable days and a very manageable stress level. If you are clinically depressed, please consider the advice of the psychiatrist that diagnosed you. The benefits of addressing it (not explicitly just taking medication) extends beyond programming.

As far as the effects it had on my introductory CS experience, my confidence was absolutely nuked. I remember always being dissatisfied with the pace in which I was learning, despite performing very well. A large part of that dissatisfaction was the hands-off approach to learning. If you are considering trying it out, here is what I would recommend:

Take up a free online course at Codecademy or freecodecamp. Codecademy has a pretty decent variety of languages disciplines, a vast majority of which are pretty entry level or borderline moderate difficulty. FCC is much more limited in their offerings, but is much more detailed and intense (IMO) than Codecademy. If you plan on gunning for a CS major, focus on Java. You will most likely be doing coursework in Java (then again consult the school/research).

I guess the point of mentioning this stuff is that the method of learning was causing me a lot of stress, anxiety, and ultimately depression. When I started diving into the material outside of class, I was able to find a spark. Before long, I branched out into front end stuff, learning basic database principles, and actually started chipping away at personal projects (which was a dreadful prospect for me at the beginning). The side hustle paid off in my coursework, big time.

Speaking for myself, clinical depression's biggest hindrance on programming was geared towards self-belief and self-assurance. Even after putting in insane hours and acing a lot of coursework, the pressure I felt and the attitude I had towards myself forbid me from feeling positive. I started taking a low dose SNRI, and that issue was resolved very quickly. However you choose to combat these feelings, it'll have to be multi-pronged. Stick with it, acknowledge your best methods of learning and accommodate yourself, and as my Grandpa used to say, ignore the committee in your brain. Surround yourself with programming related material and programmers as best as possible. Seeking out programming classes or tutorials or any type of learning experience is a terrific use of time and energy, but this needs to be the same priority as your mental wellbeing. Otherwise you won't be able to appreciate it for what it is.

Best of luck. Never stop challenging yourself!

3

u/Macaframa Nov 07 '21

Ok guys for this recipe you’re only going to need two ingredients: caffeine and masochism. In order to learn programming one must be sufficiently-artificially-animated by caffeine(optional you can add a frozen spoon to the bags under your eyes to cover up your sleep disorder from your colleagues) and believe you’re a piece of shit enough that you deserve more pain than you do. Let’s get started!

4

u/ExtraSpontaneousG Nov 07 '21

I've never taken medication for depression or been diagnosed with depression by a doctor, but there was a period of time in my life where I was definitely severely depressed. It was really bad. I look at that time as if I were almost possessed by it.

Overcoming challenges has went hand in hand with overcoming depression for me. Not faltering on my responsibilities has given me a sense of worth.

When my dad passed away I coped by learning to program. It was something I always enjoyed and wanted to do professionally. It was time to stop procrastinating.

IDK if you would find any success with it, but my advice would be that if it's something you really want to do then use the act of learning as a means to also tackle depressive tendencies. Depression tells you to stay in bed. Tackling depression would be to get up, shower, eat breakfast, and study - and then take pride that you're a little bit more knowledgeable and/or practiced than you were the day before.

2

u/Middle_Avocado Nov 07 '21

U forgot everything when u are 200% concentration on your bug

2

u/GrandBadass Nov 07 '21

I usually tell myself I love it. I love the language. I love the tech. I love programming. I stay stuck in my head most everyday. It's really hard to sit and program when I feel alone or wish I had someone close to me that felt like a great friend. I plunge so hard into the documentation to avoid remembering what I really feel like. Some days are harder than other but man is it still so cool even for just a little while when I get something to work that took me a few days to get to work.

Wish you all the best. GL.

2

u/[deleted] Nov 07 '21 edited Nov 07 '21

There are a few things you just can't learn from a textbook. That you have to live through to see to be fully entrenched in because here is a simple truth this world is a tough place. Getting what you want and making the most of the time you have requires that you put yourself in a position to succeed.

It means you see a finish line before one exists.

You need only patience.

I use music. I also read every couple of hours. Spending the right amount of time with productivity and leisure is a skill. And one thats not learned typically immediately.

2

u/RockNRecon Nov 07 '21

How do you do anything when you’re depressed?

You remind yourself of why you’re doing something. Because you want it.

Keep focus on what’s important and you’ll breakthrough.

Depression is a habit built over time. It’s a belief that you can’t get what you want.

Remind yourself that you’re only alive in order to get what you want and that every negative feeling is just a test of your resolve. It is a question asking whether you will truly fight for the life you desire.

If you can breakthrough, you will be able to A) focus on the fact that you’re fighting for yourself which is a worthy goal B) let go of feelings that only hinder your service to yourself and C) become persistent enough to finally see your goals met

→ More replies (2)

1

u/martrinex Nov 07 '21

Achieving goals and challenges helps my depression, not all goals can be easily achieved so its important to always set, break-up and adjust the right goals. If I feel I achieved nothing I get worse. Mix things up though it doesn't have to be in front of a pc, some weeks I work on coding my game, other weeks building my new kitchen, I trained and did the themes marathon once to keep depression at bay.

1

u/[deleted] Nov 07 '21

You need to forget about programming just for a little bit and take care of the depression issue, it could be because of your diet or maybe something else, but you need to figure that out first in my opinion.

1

u/deathsowhat Nov 07 '21

Yes programming is my anti depression

1

u/bardown_gongshow Nov 07 '21

A little at a time; literally with a timer

1

u/edototo Nov 07 '21

Do you find it hard to get yourself to do it? Maybe set a timetable or routine - and keep it open on your computer so you can always switch to it?

I find programming to be a great distraction from depressive thoughts- as it totally absorbs my brain and stops me thinking of other things. Hours go by and all I've thought about is coding. It's even helpful at night because I'll be still thinking about code I'm writing rather than horrible, fearful, self-deflating thoughts.

But the on the other hand- failing at a coding problem can really make me spiral into worthlessness– but when this happens I make sure to notice it quickly- and stop coding, take a break, go outside, get some natural endorphins going round my head and then come back to it with a fresh mind a new perspective and hopefully solve it. This does wonders as it gives me a real mental boost.

1

u/alexey_st0 Nov 07 '21

To be honest, programming makes me feel great. Even when it's difficult and confusing, I take it as an interesting challenge that I can resolve and feel very happy

1

u/[deleted] Nov 07 '21

I feel people have such a hard time learning programming because their view of how programming is learned is very skewed. For example, the first thing they do is fire up a project tutorial about how to write a specific application, finish it (If they are one of the few that manage to finish) and then attempt their own project, only to find out they can't write stuff on their own.

It's like following a bunch of specific instructions that you don't know the purpose of. You think that's the only way to do something but in reality, there are many ways to do the same thing in programming. Another problem with this approach, is that you only know how to write that specific application and nothing else. Your just aren't thinking about problems like "real programmers" do and that's not always your fault when you have no help. It was a massive struggle for me until I stopped watching project tutorials and actually thought about problems on my own. Doing that, I learned the fundamentals and then most things just clicked. It was like a switch flicked on. Granted, certain things in programming will always be hard but most things will start to make more sense to you when you're past the beginner hump.

Being a programmer is all about having a specific problem solving mindset. They can break problems all the way down until they aren't that difficult to solve. They only have this ability because they know the fundamental ideas behind how programming languages work and they have a solid foundation, which most beginners miss out on because it's "boring." Learning this stuff will just make things easier and will make programming less depressing for you overall.

1

u/FlareGER Nov 07 '21

What do you mean 'how', being depressed is a requirement lol

1

u/[deleted] Nov 07 '21

Right now I'm torn against C# and Python- I've not had motivation to do both because of the fear of not doing the other.

The way I looked at it- I like to write with python, I want to write programs and be confident in them and even if that means that I cannot make games like I dreamed of its okay: Python still allows games in a way.

It's tough but mental health can be repaired- Music helps a lot.

1

u/LoreBadTime Nov 07 '21 edited 1d ago

[This text has been randomized: space]

water nearby square wood color summer particle read mountain complex swim winter railway table bicycle beautiful table

1

u/esamcoding Nov 07 '21

i think that you need to see a doctor.

1

u/cincuentaanos Nov 07 '21

It's all right to take it slowly. Just an hour of work per day, even less if needed.

Don't expect too much of yourself. If you feel you should be able to master all of, say, Python, and complete a fairly large project in it in just a few months then you are setting yourself up for failure. And then you'll feel shit because you failed.

So, it's better to have limited goals/milestones that you can actually achieve in a reasonable time. Small successes will help motivate you. And it can in fact be a way out of depression. Having something to do and acquiring a new skill can be really helpful. Also don't forget to eat well, sleep well, exercise, eliminate stress factors from your life, etc.

And do limit your screen time. Which is perhaps a paradox if you want to learn how to write software.

1

u/[deleted] Nov 07 '21

Break the current task down into small steps, and celebrate the completion of those.

1

u/[deleted] Nov 07 '21

Usually if you go to university they have leeway for people who have depression. I currently have sleep apnea and I’m going through the process of showing my diagnosis. They offer attendance forgiveness, special testing spots, and extended deadlines for some assignments

1

u/Jerome_Eugene_Morrow Nov 07 '21

My whole second half of grad school I was right there. Managed to get out by my mental and physical health paid a permanent price.

If you can I would recommend seeking treatment. Therapy and medication can help a great deal. It’s very difficult to learn anything while wrestling with depression. According to my therapist there are a number of studies showing long term mental decline from untreated depression. It’s in your long term benefit to try to find a way to address that underlying issue if it’s possible.

1

u/Prudent-Employee-334 Nov 07 '21

If you are already receiving mental health assistance, you should give any course that is interesting to you a go. And also if you need help discussing teamwork related stuff and cooperation when programming I'd bet my right butt cheek that there are people here willing to offer their assitance. But mental stuff comes first, I've been in therapy for some time now and at least for me it helps a ton.

1

u/GodlessPsycho Nov 07 '21

I just hardly, intensively blaming everything at loud. Works: hell yeah u piece of shit, I'm better than you! Doesn't work: obviously every mean and bad words that comes to ur head. Seems that it's working. Expressing urself clearing mind

1

u/foxer_arnt_trees Nov 07 '21

That's just depression my dude, you still got to be living. Whether you are depressed while studying or depressed while working or depressed while unemployed. Just make sure you eat healthy and get enough exercise to keep your cells going at a reasonable state, don't fall too far so you will be able to later stand up. There is a light at the other side of the tunnel, stay healthy, keep moving and you will get there.

Good luck!

1

u/[deleted] Nov 07 '21

Find a purpose for yourself. Something you need. No mather if it is Python, R, VBA, html, PHP, Taskers, of any other programming language.

Learning in 10% leaning syntax and 90% about getting your hands dirty.

I learned VBA when making investing simulations. I took my Excel and VBA skills to some extreme math levels.

1

u/[deleted] Nov 07 '21

No no no you're getting it all backwards,

You lean programning to get depressed, not because you are depressed.

1

u/[deleted] Nov 07 '21

Little steps make miles too. Guitar and Programming were my outlets, the thing I would do to get better at. The one place were I could do anything and become anything.

1

u/AbrohamDrincoln Nov 07 '21

I'm clinically depressed and have been taking meds and therapy for over a decade now after a couple suicide attempts in my early 20's.

You shouldn't be asking how to program when you're depressed. Ask how you do anything depressed. And you're not gonna find an answer in the learn to program subreddit. Everyone will have their own personal and unique answer to that question.

I highly recommend long term therapy to stay on top of it.

And feel free to DM me literally any time if you ever need to talk.

1

u/jjgraph1x Nov 07 '21 edited Nov 07 '21

Mix it with something that truly interests you. For example getting deep into 3D printing and various related projects provided goals I wanted to accomplish and needed to learn Python, Jinja, etc. to do so. Depending on the course this may not help much but try to find something to motivate your efforts.

For me, even if I stay focused it's very hard to retain what I learn just for the sake of learning it. Actively applying it towards something realistic to my skillset makes it much more interesting. When searching for more info because I'm exciting about the end goal I'm much more likely finish what I set out to do and retain the knowledge.

Basically, the less it feels like work the less your state of mind will get in the way of doing it.

1

u/329Joh Nov 07 '21

Been learning for about one and a halv year now, and been along with a longer period of depression.

Really enjoyd learning something and it's been giving a sense of accomplishment.

The hard part is dealing with setbacks and getting stuck at certain problems, but if you give it time it's mangable I'd say

My advice would be to go for it but with really low expectations, especially in the beginning, it's gonna be worth it

1

u/ChemicalBeings Nov 07 '21

Stay strong friend.

1

u/mrkeuz Nov 07 '21 edited Nov 07 '21

As recommended in comment consult with doctor, and not scare. Listen recommendations carefully (advices and aid therapy if needed). You need stabilization of you health state. It is really not joke. You should not sink deeper.

Have same problem after burn on work (i’m developer). Even sick at the thought of going to the computer. I take long vacation. And entire year does not programming at all. Then slowly the taste for programming returned. Medicines and rethinking of values helped.

Personally also for me really help art-therapy. I love photography and have dslr. Every mirror click was gave little power. I take my 5D and shutting. And slowly taste to life started return.

Think you should also figure out you favorite activities. Maybe traveling, or extreme sports music. Whatever you really like. Just try it. Work won't run away. Maybe your activities give you some power. I really hope.

Try to pause or at reduce you workload. Take long vacation for rest and power up. Not you first not you last. And also main thing it just state and you can always find a positive solution, just it need little change point of view.

1

u/cocobaby33 Nov 07 '21

This is not something anyone else can answer, everyone’s depression looks different. That being said I’ll try to add on my two cents. If you get massive brain fog you can not work through during your depressive spells, it will be rough.

If your depression is because of life circumstances that learning to code can change than maybe you can use that as fuel to work through it , in conjunction with professional help. If you have no driving reason to learn programming, it will be extremely challenging to learn, even without adding depression.

I am in bootcamp which is good because I need the structure to push pass my lack of motivation and focus , the challenge is I’ve been in a bad place for a few weeks and the bootcamp is not waiting for me, so I’m having mounting anxiety and depression.

1

u/Lordhyperyos Nov 07 '21

I just commit and do what I can. Always make a schedule and stick to it. It's sheer willpower and discipline for me. No motivation, just drive and commitment.

1

u/[deleted] Nov 07 '21

I went to university and my extreme anxiety about failure over-rode my depression. No it wasn't healthy.

1

u/Ko0jo Nov 07 '21

It's just structure and maintenance of a healthy and consistent lifestyle, it's not a binge with an all night activity. Going out of an almost 3 year relationship after very recently being broken up with... I can say most days it's tiring and tedious but rewarding enough to stick through. I'm currently working as a web dev and in an Adobe ColdFusion Specialist course to get certified. Especially when you also have diagnosed ADHD like myself and all the anxiety that comes with it, I get that most days its hard to be present enough to think about code given your life circumstances. For me, exercise was the first step. Every morning I wake up and force myself up and out the door to workout. Otherwise sitting in a chair for extended periods would by physically impossible from the restlessness. Having that balance of your health and prioritizing you goes a long way. It's just part of the sacrifice to grow is taking the accountability of your issues and actively making changes even when you're fucking exhausted. And you have to stick to that schedule and expect that it'll take a longer than anticipated for you to begin to feel better but just stick to it regardless even if it feels useless. Unless you're in a university, this career has the gift at least of letting you grow off your own merit and drive. Get yourself together, put what you need first and your health and the career will follow.

1

u/jluizsouzadev Nov 07 '21

For many people programming can be an interesting and pleasure hobby that goes far behind than just a job.

1

u/[deleted] Nov 07 '21

For me... I had problems spending my time. I was kind of parked... and had no obligations or something to give me structure through the day. But when I sat down for a second, my mind went to my laptop on my desk... basically thinking "you must be able to do something cool with this". This thing. Called a PC; maybe the most important invention in centuries!

I had already completed a course in programming which should've basically taught me the basics.

It was just a belief. And actually... having loads of time... because I believed in something, became an opportunity!

It is useful, just keep that in your mind. You could actually accomplish something with this. To me, it solved some other things too. It is actually very time consuming, which was my main problem. I had difficulty with how much I had of it. Then, it's free. It basically all is, except maybe for the internet connection which you probably have already anyway. And... lastly... you'll never run out of "material". You won't ever complete it and end with emptyness ever! Which was the best thing for me. You'll never run out of things to learn.

So. It hasn't been enough for me to power through... to something positive though. But I at least discovered something to keep my mind occupied with. And yeah. But if you really want to accomplish something with it you need some more "positive" motivation as well, instead of just/only dealing with bad boredom.

I preferred something useful over for example games.

1

u/AgitatedWash538 Nov 07 '21

So as a clinically depressed person (and other diagnosis) I see it kinda as living the life in hard mode. Everything can get really hard, like even waking up(but you know all that already) but for me it's completely unrelated to programming.

I believe you do have to love it to some point (I am not one of people who are like super focused and will program all day every day I have other interests and believe that 30h work a week is a hard max that would be fine with me), but it can be very rewarding (if not stuck in bad company/project) and personally has helped me deal with depression because there is a lot of sense of accomplishment when you make something.

But your question actually is about learning not working, so first to mention the learning never stops unless you're fine with just like being a code monkey, which is fine for some people but me personally depresses even more.

After I decided to learn to program is actually the part when I finally got my depression under control. So I definitely recommend it. Your life might be harder then some but a lot of us are struggling with it, so don't ever thing you can't make it. (Like seriously I I made it anyone can)

I don't have universal advice as everyone is different, you have to get to know your self and how to motivate your self. My everday Moto was 'I can always kill my self tomorrow, let's try and learn something today' and then I would get sucked into learning. And as time went by I got better and better.

Also I think it's important to learn how to learn. Not as a chore but as an interest and fun activity.

But yeah I think it's time to stop writing this answer, I have a soft spot for fellow depressed people so I could go on and on.

I wish you all the best :)

→ More replies (1)

1

u/LordTwinkie Nov 07 '21

I make sure I keep my depression in check with medication. Work on your depression first. Medication, therapy, or whatever works for you.

1

u/Pisano87 Nov 07 '21

Try smiling while coding

1

u/Binary-Trees Nov 07 '21

I think programming is a good thing for depression.

Easy goals and achievable rewards.

Make it fun. Don't let it be work. Make it worth it to you. Edit game files or program in minecraft conputercraft.

1

u/[deleted] Nov 07 '21

Depressed, anxious, bipolar, ADHD dude here.

Programming in my freetime actually helped me feel better. Honeing a skill in general makes me feel productive.

1

u/AlSweigart Author: ATBS Nov 07 '21

Other people have good advice, but I liked making little games rather than working on serious apps. Even text-based games like Hangman, Guess the Number, or Tic Tac Toe are good. It's frustrating to start a major, months-long project and not finish it, as compared to creating a bunch of little projects.

1

u/fanz0 Nov 07 '21

Programming is actually something easy to hyperfocus with. When you begin to create a project, it's kind of hard to begin but once you get the hang of it(searching and beginning to tie things together) it's so enjoyable.

But in short words, I find myself often in a flow state during programming. Check out The Odin Project. In the beginning, it's a lot of reading, but over time you get into a lot of fun and easy projects that incentivize you to look up on your own how to build small pieces altogether into a big piece

1

u/Ok-Seaworthiness2487 Nov 08 '21

When I was depressed in high school, playing guitar made me forget about everything. If programming can become a hobby, it will really help. Give yourself a goal like getting a job, building a software, starting a business, etc. And programming will feel a lot more meaningful

1

u/ramontgomery Nov 08 '21

This sounds like a dad joke

1

u/[deleted] Nov 08 '21

If exercise makes you feel good, try to get some, even if it's just jumping rope in your room (or your floor isn't very quiet, the laundry room or basement of your apartment building).

1

u/[deleted] Nov 08 '21

Do something small and with quick results. Thats how to cure depression mostly

1

u/Brilliant_Muscle Nov 08 '21

Read book spark

1

u/Responsible_Ad2463 Nov 08 '21

Yeah I've been feeling bad this week-end (anxiety and panic yesterday, depressed today.)Last week I started learning python at school.

1

u/[deleted] Nov 08 '21

By pushing through. Balance fun recreation (e.g. videogames and going outside)with feeling accomplished with your programming, plus a little exercise and mindful diet. And work on it every day. Work on projects and complete certifications side by side. Feel like you are learning and growing.

1

u/cheats_py Nov 08 '21

I hate to say it but it’s backwards for me. I get all closed off, can’t think about anything else. I dream about being stuck in loops. It’s fucked. But that might just be because I suck at it and it takes me a awhile to figure something out that should have been simple AF. LOL.

1

u/CartographerNo1759 Nov 08 '21

Same. I am finding it really hard to learn, which just compounds my depression and lowers my self-esteem. It’s a daily battle to keep the negative thoughts away. I’m starting to think if I weren’t depressed, leaning something new wouldn’t be so difficult.

1

u/[deleted] Nov 08 '21

Smoke weed! I've all the servers I've done, languages I've learned, troubleshooting I've been through, I was high!. How else am I supposed to keep my dark traumatic thoughts out of my head 😂 just get highhhhh😳🥴

1

u/RenewAi Nov 08 '21

You're supposed to wait until after you learned programming to become depressed

1

u/rozenbro Nov 08 '21

Take joy from programming. Do you get a feeling of satisfaction after solving a problem and seeing your code finally work? Lean into that.

1

u/GingerHottie666 Nov 08 '21

Eyes on the Prize

1

u/archangelzer0 Nov 08 '21

Hey, I have clinical depression + anxiety and I’ve been a software engineer for about 2 years now and before that came out of a boot camp which can be pretty brutal. I have to admit that it took a massive toll on my mental health and sometimes still does being that I work at a really early startup in the logistics industry.

However, if you just push yourself even when you’re really down it WILL start to turn into something that you look forward to or at the very least it’ll become a habit vs. being something that you have to figure out how to deal with on a daily basis.

1

u/lordbusiness92 Nov 08 '21

For me I make small goals and reward myself with some video games. After enough snap games have been completed you can look back at what you’ve accomplished and it gives you motivation to do more. :)

1

u/[deleted] Nov 08 '21

In highschool my teacher denied me taking Java saying, “try IT software isn’t for everyone”. I went home and cried all night. Now usually top of my class and been teaching myself Java for years. Even got a 4.0 gpa.

1

u/[deleted] Nov 08 '21

Best time to learn. I’m speaking from experience. It’s like losing yourself in world of Warcraft, but better. Plus you may improve your marketability at the same time. Win, win.

1

u/InternetMedium4325 Nov 08 '21 edited Nov 08 '21

Currently in a bootcamp and having a really difficult time keeping my mental health in check. Happen to be in a group with some really smart people who seem to be thriving through the program and I am one of the weakest. Some of these people have lots of prior experience also and I feel like everything goes over my head and i cant grasp things fast enough to keep up.

Also my anxiety and general feelings of self doubt make it even harder to stay focused and learn. Bootcamps by design are meant to be tough but this feels like true hell. I feel like absolute shit right now as I am supposed to be absorbing a lot of information and learning. Am usually very resilient when it comes to facing hard times but this has been truly challenging.

Weirdly enough programming still seems enjoyable and somewhat therapeutic. I used to love coming home from me previous job where I talked to people all day and sitting down and coding. I hope I can learn enough to find this enjoyment in a real job environment. Right now it’s all stress but I am sure this will change in time.

1

u/blue195 Nov 08 '21

Depressed or not depressed: you are always worthy IMHO.

1

u/[deleted] Nov 08 '21

Welcome to the world of programming! We’re all lonely and depressed; we’re programmers for crying out out! Bet you don’t have any friends either! Woo! :D

1

u/FoxyRayne Nov 08 '21

Put on the go beyond plus ultra scene from my hero academia. Any time I feel shitty, I watch that scene. Listen to Bad Apple from RichardEB on amazon. Dunno why but it works for me.

1

u/Nabesh1111 Nov 08 '21

Not sure if anyone else has suggested this but taking baby-steps are better than none at all. I started to learn how to code when I was at my rock bottom mentally. To be honest with you, I am STILL pretty unstable. However, learning to programme even just for 20 minutes on some days helped me remain consistent for over 6 months. Before I knew it, not only did I learn the basics of Python but could produce basic programs such as a YouTube converter.

With that being said however, I have recently come out of a major depression episode and stopped coding consistently for 2 months. However, during that time period, I actually applied to a free coding bootcamp that specialises in JavaScript and I managed to get in. While I am nervous about starting given my mental health, I am also seeing a therapist regularly which will hopefully offset the impacts of the bootcamp.

Anyway, moral here is be kind of yourself! Focus on getting better but also don’t be afraid of just taking tiny steps for now because they do compound over time.

1

u/Mandywizard Nov 08 '21

I just stare at the software to see if have to ability to start typing if not I try again another day

1

u/tazzzuu Nov 08 '21

Anyone have adhd too and program? What helps you? Thinking about getting on meds I’m 22 and haven’t really tried prescription before mainly because my parent were against it during my younger years.

1

u/baxtersmalls Nov 08 '21

Yeah, I’ve had depression literally as far back as I remember. Creative projects have always been a coping mechanism for me so I just approached it as an escape. When I’m really in a flow state with it, all I’m thinking about is what I’m working on and the depression fades out. That being said, I often struggle with motivation to get work done as a side effect of the depression, so it can be difficult to get started many days.

1

u/Own-Cellist6804 Nov 08 '21

the thing that helped me out of depression (FYI. Not clinically depressed, unoffically depressed, so take my word with a grain of salt ) was 1. exercise 2. sleeping normally 3. less cofeee ( no zero cofee, craivings will make it worse ) 4. putting daily goals ( e.g. run 30 mins, program for 2 hours, finishing em gives you that nice hit of dopamine ) 5. putting aside one day of the week for disconnecting and reading books ( dont do this snymore but its reaaaallllly helpful, i stopped doing it after i discovered berserk manga. Also if you gonna do this i would highly recommend a kindle )

1

u/vajdev Nov 08 '21

Yes and I lost my passion for it for years due to traumatic job experiences. I just got back into it and I just try to get started on something whether that's a quick 5 minute project or reading and taking notes on a new concept or one I'm just reviewing.

Currently I'm revisiting Java and having fun with it using IntelliJ which is a new IDE for me.

Im not always excited about it and I get frustrated a lot. I keep my thoughts/emotions and notes in a blog as I go.

1

u/Inevitable_Mess3399 Nov 08 '21

Get up , Deal with it

1

u/TechnoPagan87109 Nov 08 '21

Also clinically depresses. I'm learning Python, but haven't finished. It's slow going. One of the things I've found helpful is lots of repetition, probably 3x what you might have to do if you weren't depressed.

1

u/WhatDoIFillInHere Nov 08 '21

I started learning programming around 15, and now that I'm 20 and looking back, I was horribly depressed and programming is what kept me sane. Just do what you like, don't push yourself when you don't feel like it, and make it your escape from this horrible life.

1

u/chance125 Nov 08 '21

My only antidote to coding “writers block” is to think of projects that excite me and learn by doing.

Don’t get bogged down in best practices and doing things the best possible way. You can learn a lot by flying blind and having some fun.

I recently had a lot of fun making a text-based adventure game in Python. I got a bit of experience with some new interesting libraries and learned more Python by experimenting.

There’s a huge difference between learning for some future job and learning for something you find fun and exciting.

1

u/[deleted] Nov 08 '21

I Learnt to program properly as an escape from my cancer treatment

1

u/x8eroff Nov 08 '21

Hi. I advise you better not to try to study anything if you are feeling unwell or not in the mood. You can waste your time in vain and, besides, new knowledge can be associated with unpleasant. If programming distracts you from all the troubles, then you would not ask this)

1

u/enterthroughthefront Nov 08 '21

Recently was in a funk and didn't want to exercise, study, or do anything productive. Got into a smaller routine and am starting to build it back up.

Currently do cardio only, will re-introduct weights when I have more time.

And I'm currently limiting myself to 3 problems to focus on per day from leetcode, no more than that.

I got into a bad habit of bad time management and got frustrated when I couldn't do my hobbies, chores, studying, work, and personal relaxing time all in one day. So now I'm trying to segment it more and avoid burn out.

1

u/itsacoy Nov 08 '21

Late to the answer, but sometimes when Im in a poor mental state, I play a game with my self where I tell myself - do 30 seconds of this activity, then I positively reward myself by saying, hey I just did 30 seconds. After I move to 2 minutes, another positive mental reward, I find myself lost in 10 minutes of code. If that's all I can do, then I go back to doing nothing or wasting time on Reddit.

But the next time, I know, that I did 30seconds yesterday, and if that's all I can do today, it's better than 0 second.

Try to keep going and when you need some support, look at what you've done and all the progress you've made (even if they were a few months a month) learning takes time and it might not be an overnight success.

Keep going internet friend!

1

u/[deleted] Nov 08 '21

You don't. You first get better. Nothing is more important than health. Get help and get better. Best of luck.

1

u/Sure_Fisherman2641 Nov 08 '21

That is me. It was actually unbelievable at first, I had a panic attack and stay in depression for long time and thought it will effect my learning path but it was a good escape sometimes so it didn’t really effected my job and learning journey. The key is trying because it may not work too.

1

u/joyfulcyx Nov 08 '21

I enjoy myself when i code, i like the feeling when i spend days on a project and it just works. When i am stressed over school, i just code.

1

u/[deleted] Nov 08 '21

I've been learning Python for around 3-4 months. I allowed myself to stop and take a break from learning whenever I felt overwhelmed. I trusted myself enough to know that I'll pick it up again when I feel better. And yeah I'd probably have to go a step or two back again but that's OK.

1

u/[deleted] Nov 08 '21

Had been diagnosed with anxiety and depression when I started my course, on top of that I had ADHD. Like a few users have said in this thread it's a good escape and distraction. Got very lucky and was able to hyper fixate on projects and studies because I was enjoying it so much

1

u/Autarch_Kade Nov 08 '21

Follow online tutorials to create a reminder app so you can keep your therapy appointments

1

u/[deleted] Nov 08 '21

Depends if you get any joy from programming. Personally I've been depressed since before I started programming, and it felt hopeless for a time, but I'm getting there after a few years (I'm also in uni now, that made it way easier for me to learn). When I wasn't in uni, I loved programming because when it worked, it made me feel joy. If it doesn't make you feel anything, then I don't know mate 🤗

1

u/akza07 Nov 08 '21

Just pick a puzzle or project to solve and keep grinding your time to solving it like you've no life. Once you're done and take a warm bath you will feel amazing. Although it only last for a few hours but you feel really good.

1

u/Grouchy-Bowl-5223 Nov 08 '21

The question is - How do you learn programming and not get depressed

1

u/ha1zum Nov 08 '21

If a lot of these answers don’t click with you, don’t beat yourself up. It really can be hard to do programming or any other kind of work that requires a considerable amount of brain power while being clinically depressed. It’s like asking “how do I safely jog everyday with a fucked up ankle?” There are probably ways to do it, but it is also normal if you don’t manage to.

I quitted my job as a software engineer once because of a depression before finally get another programming job 6 months later when the condition became much less intense.

What helped me was establishing a more healthy everyday routine (be a morning person, eat less, hang out with friends) and focus on my more meaningful life goals. When the work is bringing me closer to my goals, I can be productive and kinda forget about the depression most of the times.

1

u/orelki Nov 08 '21

Well, I don't consider myself a programmer but I did learn Python & PowerShell online. I currently teach Microsoft Azure courses at a regional tech college and am about to become a DevOps engineer in January. Dealing with depression and working in tech sucked. Sometimes it's hard to be curious about programming or even think clearly when trying to tackle a problem. I won't say knowing how to program saved me but it did open some doors for me in life to battle my depression. Financially, working in IT proved to be beneficial and so I'm, from example, less depressed about my financial situation. I do find it harder to learn when I'm on medication but generally I'd say depression sabotages all kinds of learning, not specifically programming. Good luck!

1

u/[deleted] Nov 08 '21

Lot's of people have interesting stories. I feel good when i build something.

1

u/robml Nov 08 '21

What helps keep motivated is finding a learning track, and breaking it down into milestones so you actively know your progress. The key is also not to rush but be self paced, and most importantly: consistent. You can achieve consistency by setting a streak of how far in progress (whether in lessons or pages) you want to get done per week, and then just do as much as you can do per day (it's foolish to break it down into daily chunks because some concepts are harder and take longer to learn, so weekly seems more appropriate for progress checks). Then the next task is either curating your own curriculum or finding a good resource. If you don't have a tech background I can recommend 4 starter resources that are really good:

  • Google's Coursera Certification for Technical Support

  • Google's Coursera Certification for Automation with Python

  • the book Python Crash Course

  • the book Automate the Boring Stuff

These resources are a great because they are project based and actively have milestones built in so the curriculum is well written and taken care for you. If you need help acquiring the resources let me know.

In the meantime working on your depression is also important if you want an easier time later. You can do this by a combination of setting up a Habit-Reward feedback Loop environment (there are a couple YouTube videos on this I can send you a simple one, to then adjust for a consistent sleep schedule and healthy diet (this means reducing processed foods and sugar usually, increasing protein intake also helps, especially in daytime, and carbs are useful at night if not too sugary to fall asleep), and regular exercise (basic but it works). It's not like you might fully enjoy doing this stuff but getting into the flow helped me in hard times to then get out of my rut.

To solve deeper underlying issues once you have the above down you can start seeing a clinical psychologist and working through. Usually people struggle with finding what they want to work with and not all psychologists are great at pointing out where to go and some are too assertive, I found it helps when the patient has an idea of what THEY want to do. For this I refer you my favorite book: Reinventing Your Life, cheesy title but well written on Cognitive Behavioral Therapy. It's quite interactive with quizzes and whatnot to help you diagnose and gain deeper insight of yourself. Working through key issues is largely personal but having a therapist or trusted person with such knowledge greatly helps.

These are a few points I can make for learning Python, or anything really, whilst depressed. I know it's helped me and others I know who were down either emotionally or clinically. Feel free to reach out on chat.

1

u/psioniclizard Nov 08 '21

Programming helped me beat the depression, before I learnt to problem I felt incapable of anything useful and like I would just waste away as a college drop out in a deadend job.

Programming was one of the first times that I realised I could actually learn something myself (and do well at it, not to be cocky) and I hadn't ruined my life by dropping out of college. It was one of the first things I found my learning difficulties etc where not a massive burden but in same cases where actually a bonus.

My best advice is use it as a way to escape the world and the shit feelings. You feel like you are worthless? Well you can't be if you just built something or learnt something new. See it as something you can control (the thing I found with depression is you feel out of control a lot).

Also remember, our brain can only be in one area at once. Writing code and learning new stuff can force it to be in the logically part not the part where depression comes from (gross over simplification there!!)

One more thing, away from Programming: learn to ask for help and to talk about your feelings (if you are not good at it, I wasn't and it took me my 20s to learn it). As someone who would naturally shut down I found that to be one of the most useful ways to help myself.

1

u/Devon__Eleven Nov 08 '21

Ignore all these fake philosophers. Truth really is lots of drugs.

1

u/DuckHeadNL Nov 08 '21

Short and simple, but exciting projects. Think small arduino things, or desktop apps with actual use.

For example, I'm making a wearable vibrating metronome, which is pretty simple in theory, but advanced enough to keep me interested

1

u/AdditionalAd8716 Nov 08 '21

I know that state of mind, at times when blury and cant make working code on the go, just scribble something like writing on a piece of paper, put the codes in the blender and drink it little by little if having hard time grasping the code. With music, that sky game zoundtrack.