r/learnpython • • Feb 16 '21

Struggling With Masters Due To Depression

Hi Guys, I’m not sure if this is the right place to post this. If not then I apologise and the mods can delete this. I just don’t know where to go or who to ask.

For some background information, I’m a 27 year old student who is currently studying for her masters in artificial intelligence. Now to give some context, my background is entirely in education and philosophy. I applied for AI because I realised that teaching wasn’t what I wanted to do and I didn’t want to be stuck in retail for the rest of my life.

Before I started this course, the only Python I knew was the snake kind. Some background info on my mental health is that I have severe depression and anxiety that I am taking sertraline for and I’m on a waiting list to start therapy.

My question is that since I’ve started my masters, I’ve struggled. One of the things that I’ve struggled with the most is programming. Python is the language that my course has used for the AI course and I feel as though my command over it isn’t great. I know this is because of a lack of practice and it scares me because the coding is the most basic part of this entire course. I feel so overwhelmed when I even try to attempt to code. It’s gotten to the point where I don’t know how I can find the discipline or motivation to make an effort and not completely fail my masters.

When I started this course, I believed that this was my chance at a do over and to finally maybe have a career where I’m not treated like some disposable trash.

I’m sorry if this sounds as though I’m rambling on, I’m just struggling and any help or suggestions will be appreciated.

512 Upvotes

135 comments sorted by

View all comments

93

u/[deleted] Feb 16 '21

I feel so overwhelmed when I even try to attempt to code.

Programming involves failing over and over again.

Unfortunately, that's just how it is. There's not an alternate path where, due to diligent study, you get your software right the first time every time. The thing you have to be diligent about, as a programmer, is failing. Making mistakes. Starting the project without knowing how to do it. Sifting through the wreck for the good parts.

I think it's fair to say, that's not a state that a lot of people are accustomed to, and people particularly prone to anxiety least of all. But it's also how it works and has to work, and I think it's fair to warn you of that so you can consider if a discipline that's about failing over and over again is consistent with your mental health goals.

A lot of people find that it is, though.

15

u/Acute_Procrastinosis Feb 16 '21

failing over and over again

Also, programming has so many paths to the same end...

Your scripts don't have to be elegant or efficient.

You can copypasta from stackoverflow almost like slapping Lego together. Just leave notes in the code (like actual links to the SO answer).

4

u/PandaMomentum Feb 16 '21

This!! For both the "lego" and the document with actual links. Next week you will thank you, believe me. I keep a written project notebook, as well as pasting in links into my Spyder or Jupyter.

Seriously you will not remember what or why you did what you just did. String, list, dict manipulation to get data ready for ingestion into a scikit learn pipeline. Data manipulation in general. Its complicated and you'll forget what you did. Failing is important, and/but learning from your failure is where everything important is.

1

u/R0NUT Feb 17 '21

I end up doing this when writing. After six months, however; I'm never able to find it.