r/learnjava • u/SirLucifcuker • Dec 12 '19
Learning programming while depressed?
Tl;Dr - I work and study full time, leaving me exhausted and drained. Unable to focus and form a schedule. Need guidance.
I'll try to keep it short. I work over 40+ hours a week and also studying for my software engineering degree. This leaves me highly under pressure as we have assignments with deadlines and since I'm away 40+ hours a week, my time, as a beginner to actually learn Java and work on the assignments is very limited.
I mentioned being depressed but it's more like a mental state than physical. I do go about my normal work and chores but just... lifelessly. Things do get done anyway but I'm not mentally present. This also contributes towards the problem of me not being able to learn when I do have time to sit down. The job doesn't really compliment the learning so I have to learn different things for work constantly and also learn programming on my own. I don't really have any friends who are programmers so I'm really lost as to how to approach learning in current situation with current mental state. Please don't suggest getting help, it is already at the back of my mind and it's not that bad yet. I'm still functional, although not exactly happy. I do love the idea of creating something out of nothing so I'm also not giving up programming even if I'm the worst possible Dev out there.
Even with 40 hour work week and the usual recommended 8 hours sleep, I should have time where I can squeeze in learning. I want to turn it into a habit. I want to think in code and not just write it. But it seems that I struggle coming up with an effective schedule that I can stick to.
How did you start learning and what was your approach? I find that having specific topics to learn within specific time period would work as I can measure progress and it's something I could use help with. I do have access to udemy so any recommended java course are welcomed. I'll also be looking at various other languages as I progress but I want the learning schedule to remain the same and adapt. E.g. day 1 - 2hours - Learn Data Structures
I am not a complete beginner and have basic understanding regarding programming and programming terms. However, I am tired of being at a beginner level and want to get really serious about it.
Please let me know if you have any questions. Any helpful answers would be highly appreciated.
Edit 1: Thank you to everyone that took the time to respond. I'm glad you're also on the same journey and are making progress. I've tried most of the suggestions but my work schedule changes one in a while which messes up everything again and I'm starting from the start. My workplace also has an odd arrangement with university. So I don't have as much time at university and am mostly at work.
I also have a few projects from university and a few projects I want to start on my own. I've actually intact started one, mapped the screens, database structure, etc. It's the actual programming where I get stuck because of lack of knowledge and experience. I just have to keep trying, I suppose.
Also, when I think back, I'm much more responsive in classes where you can bounce off questions and ideas off others. So if anyone is on the same path and finds interaction helpful, feel free to message me.
12
u/Raskarr Dec 12 '19 edited Dec 12 '19
I am a psychologist and since October I am studying Business Informatics in addition to my full time job. And I have had depressions and burn-out in the past.
I can't really give you advice on how to improve your learning. I don't know enough about programming myself and most, if not all, persons have different preferences regarding learning techniques. I also won't comment on whether you really do have a depression with clinical symptoms or not. I do not know you and it would be unethical to give a diagnosis based of a short post.
What I can tell you is that there a different forms of depression regarding both the symptoms and the intensity. You don't always have to get professional help. No one wakes up and has a severe depression all of a sudden. Especially for the milder forms you can do several things to help yourself. For example: what does your nutrition look like? What do you eat? Do you have regular times for eating or do you eat whenever you find time for it? What does your sleep look like? It is not only important to get enough sleep, you also need a certain quality of sleep. Do you give yourself time for other things apart from work and study and other responsibilities? It is very important to have time for yourself when you don't have to be a husband/significant other, employee, student or anything like that. It doesn't have to be much time! Even 10-15 minutes where you just do whatever you like for fun or relaxation can make a big difference. Studies also show that when you take a break for about ten minutes after learning you'll have much better results than by continuing on and on.
The last advice I want to give you is that this state of mental exhaustion is not to be underestimated. If you do carry on like you are doing now, it CAN lead to a burn-out. It doesn't have to. But if it does, it will be so much more difficult to get out of it. Better take small steps now to avoid this risk.
Best of luck and take care
(Sorry for any strange punctuation or vocabulary. English is not my first language.)
3
u/SirLucifcuker Dec 12 '19
Thank you for the response. Initially, I wasn't sure where to post it as it includes two different topics. But since it was mainly about programming, I decided to post here.
Your comment is making me stop and ask myself the questions listed. Perhaps I'm being too hard on myself. It's only because I know I can do it. In no way I intend to or encourage people neglecting their health. It's just that I don't feel like I need that sort of attention at the moment. But perhaps I'm wrong and convincing myself of things just so I can keep going.
Would you mind if I request to pick your brains? I'm not asking for a diagnosis but to see it from an outsider's perspective and understand it so I can do what's needed. Feel free to say no, either is fine.
Thank you once again for the response. Good luck for your studying. Business informatics sounds like an interesting subject.
0
u/Raskarr Dec 12 '19
Hi. Sure, you can ask me questions. But unfortunately not today. I'm writing a test tomorrow at university and want to prepare. But I am happy to answer your questions tomorrow evening. I'm in Germany, so that means in about 22 hours from now.
1
u/SirLucifcuker Dec 20 '19
Sure thing. Whenever you're up for it, let me know.
1
u/Raskarr Dec 20 '19
I usually have time in the evenings between 7 and 9 pm CET and I visit reddit daily. Just fire away and I'll answer as good as I can.
4
u/AlSweigart Dec 12 '19
Pomodoro technique helps me: https://en.wikipedia.org/wiki/Pomodoro_Technique
On a timer, you focus for 25 minutes, then have guilt-free off time for 5 minutes. Repeat.
There are apps to help you reinforce this. I like "Forest" for Android (and I think iphone too): it doesn't have creepy ads or spyware. I just leave it running on my phone next to my keyboard so I can remind myself that I should be working. Each 25 minute period you complete, you add another tree to your "forest". It gives me a sense of accomplishment.
Okay, back to work.
1
u/SirLucifcuker Dec 12 '19
I actually have tried multiple apps with different techniques for time tracking. I will definitely keep trying, though. Thank you for the suggestion. How many trees did you manage to plant?
3
u/anthony_illest Dec 12 '19
So I'm kinda in similar boat, in that I work but not as much and also taking java. I transferred schools and that credit didnt transfer so I had to retake it even though I already knew it. I had to rekindle my love for programming to get really good, and I have a process now to help with programming that has helped me a ton. So step one, be able to write simple code without having alot of compiler errors, programming is alot more interesting when you dont have to spend an hour cleaning up all the little things you wrote. For me this was alot easier once I decided how I liked my code to look and made kind of my style. Step 2 was to build some gui application, guis by them selves require alot of knowledge about java libraries and object oriented, and you get comfortable with the java api docs and reading them alot. Step 3, build a game like checkers, drag and drop checkers included, because that will force you to get a really good understanding of abstraction and interfaces and try to adhere to the rules of abstraction and interfaces to make the most efficient checkers you can and continually work on trying to design it better.
1
u/SirLucifcuker Dec 12 '19
Glad that you don't work as much. Sorry about the credit transfer mess. On the bright side, you get to dive into programming again. You're right about the steps. I think I'm still at the early stages of trying to figure out how to make things work before i decide how I want code to look. Nail the logic side of things. For the second step, I do have an assignment where building a GUI is a requirement so I surely would be working on that.
What gui did you start with? What are your thoughts on javafx?
I'm not sure about making a game. Although they are useful for learning, they are pretty pointless otherwise. Which is why I try to build my own concepts. Obviously a very steep learning curve since I have to do digging myself. Thank you for all the steps, though. I'm sure you'll be able to catch up with programming.
1
u/anthony_illest Dec 13 '19
The first time I took it, the class project was to make an mp3 player program that would create and build a music library and show album pictures and combo boxes of the all the artist and their songs. It was cool but I challenged my self to also make a current queue JList that you could drag and drop songs out of different cds into the que to show what would play next, implementing drag and drop is more difficult that most other simple gui stuff and requires you to conform to a standard interface a bit and that really forces you to learn. I have tried javafx, however javafx to me is more confusing sometimes due to the fact that the library does so much for you and it can be a bit difficult to determine exactly whats going on in the java docs, I prefer swing when dealing with school stuff since it is what they teach and the documentation was easier for me. Also i only say a game like checkers because it has alot of unique ways to go about things but the whole building it thing is fun in the way that you can choose how you feel is easiest for you to understand and build stuff and it also can easily be made to require multiple inputs and listeners and abstraction and cohesion. finally a game like checkers while being a pretty simple idea can be made into such a useful tool and be made better in so many ways, you could make it work with a data base to store saved games or work towards make it a cross network game so you can play against other, it has alot of stuff. i built it for one of my projects in my class this time around and it was so hard, but now over break i intend to try to implement alot of cool features and maybe build an AI.
1
Dec 12 '19
Use a calendar religiously.
1
u/SirLucifcuker Dec 12 '19
I'm trying to form alot of healthy habits and track my time but it's hard to remember doing any of that when I'd rather just sleep or sit in a corner mindlessly. Thank you, though.
3
u/mw52588 Dec 12 '19
One thing that might help is finding a project idea that you might want to do. I think freecodecamp has some good projects you can use.
But with that being said split out your work. In Github you can create tasks that you need to work on. That way you are achieving things and not setting up one massive goal. This will make coding less daunting and in fact it's best practice in agile development to split up your work in stories.
Like for instance you're creating a weather app. One goal would be to just get a basic html page up. The next goal is to create some CSS to go with it. Basically what I'm saying is take some time and plan it and put small achievable goals for the work that you do. This will motivate you to keep going.
One unrelated note is it's a good idea to get this project working in one language and adapt it to a different one.
1
Dec 12 '19
OP, I'm basically in the same situation. Less work hours per week, with depression as a disorder, so it kind of levels out. Calendar doesn't help me all that much besides of a basic overview what's next. What does work, though - if you know how long it takes you to focus (in a non-ideal situation), take any free time frames that still allow you to focus and do stuff and use them to the max. Mine is about 15-20 minutes of staring at the screen, then I'm good for up to 45 minutes until I have to take a break. So every free place in university schedule gets used either for lunch or for coding. I packed my courses as tight as possible and built my work schedule around them. My only regret is, after such a week, considering depression usually means ho energy, I don't get enough rest, so I'm slowly burning out. I actually dream about the finals (for me, most of them are in January), because after they're over, I'll finally have time to just relax.
1
u/SirLucifcuker Dec 12 '19
Good to hear that it's working for you. I've tried that too, sometimes it works, sometimes, i get tired of forcing myself and just stare at the screen. I feel like I am burned out as there are other things and personal stuff that require my attention every now and then where I don't have any other option but than to face it.
What are you learning and where from?
Also, good luck for the exams.
1
Dec 12 '19
Thank you so much! I'm studying Software Development at university in Czech Republic, in person, meant to be a full time difficulty course, plus part time Associate Dev
2
u/Ruttelisious Dec 12 '19
Java Programming Masterclass on udemy helped me learn fast. Managed to learn while working 100%. Theres a lot of good content on udemy and im not sure if i could have learned what i have by reading books etc.
2
2
u/CB_stuff Dec 13 '19 edited Dec 13 '19
It sounds like your job and degree leave you pretty drained, it's no wonder you struggle with squizzing Java learning there as well. I can only suggest trying to make your study sessions a first thing in the morning thing, before you are completely exhausted after a full day of work.
Maybe having company in your Java learning would be beneficial. I'd recommend these two discords: Together Java and Java Study Buddies. Also there's a Gottastudy discord, where they share a screen in https://jumpin.chat/gottastudy (password: getstudying) to keep eachother accountable. They also use this Pomodoro timer for sessions together: https://cuckoo.team/gottastudy.
3
u/mrphotochalupas Dec 12 '19
I had a similar situation and what did it for me was taking some of my problems and writing code to fix them. For instance, I have a cat that would scratch the door, walls, pretty much anything when he got hungry. He would wake me up in the middle of the night or when I’m just trying to relax which when you have depression just sucks even more life out of you. Also being woken up when sleeping was horrible and I became more agitated and grumpy. Anyways, I decided to use a raspberry pi to make an automatic food feeder that I could program to set at certain times. Now he doesn’t meow or scratch during the night or when I’m playing video games. I’ve done this for a couple other things too. This has kept my interest in coding since I know I’m getting immediate value from it. I’m not sure if you have time to get any side projects going but if you do have any sort of free time I would think about making some stuff like that. It helps with your learning and can make you feel satisfied. Hope this helps! And I also recommend going to someone to talk about your depression. If you’re in school see if you’re school has any options. Good luck!
1
u/indivisible Dec 12 '19
Its a bit of an overused suggestion but perhaps try to find a project/task/idea that actually inspires and interests you. Tackle a problem you have in your own life or make something you'd actually use yourself.
If you have some interest or drive beyond just the goal of "learning" it could be the difference between wanting to work on something and putting it off or listlessly just going through the motions.
1
u/untitledtotitled Dec 12 '19
I would just you to take one day at a time. Has helped me a lot while I was going through my worst times. As soon as you wake up, make a list of all the things which requires your attention and approximate time for each task. That way you'll know how much each task requires and you'll be prepared well in advance for your day to day tasks. Make some time to meet friends once a while, helps with your depression. Hope it helps.
1
u/chris1666 Dec 12 '19
This might be too beginner level for you, but I like this instructor ..
https://www.udemy.com/course/complete-java-tutorial-step-by-step/
1
u/NickAKATheManHimSelf Dec 13 '19
Work on a project you really enjoy, of you don’t stop and pick another.
1
u/jevans_ Dec 12 '19
Do you use public transport? I've recently found the time spent on the bus/train in the morning is a good time to read/watch training stuff on the phone. I know it takes all of the interactive elements out of it but it's given me way more time to actually dive into topics I'd normally be way too busy to look at when at work.
I'm a stranger on the internet so I can't completely understand your situation but if you're finding things that normally would bring you enjoyment don't (looking at the reward comment above) then it could mean a couple of things.
The rewards are legitimately not satisfying anymore, in which case it could be some personal searching to find new things or activities to replace them is required.
The depression could be impacting more aspects of your life than previously thought, it can sneak up on you.
I can't possibly stress enough that I'm not a doctor or qualified by any means, but my own experiences which were similar to the above led me to talk to one about it and it was the best thing I've ever done for myself.
Good luck either way though, reaching out is always a good idea. I'm sure there are others reading your post looking for help too and finding new things to try so thanks for sharing your experiences and thoughts.
1
u/set22 Dec 12 '19
It’s not going to help with your schedule directly. I fact it will just take more time. But after 15 years of depression I learned that exercise is the best anti depressant. I never had a grip on my schedule. Once I started disciplining myself to go to the gym x days at x times. (For me 3 days - 5 am before work). It significantly helped me schedule my whole life. It’s really about learning discipline. The sense of accomplishment and hormonal activity that comes with exercise helps too.
Beyond that. Look up time blocking. It basically involves a calendar and a daily to do list. At the end of the day, every task on ur todo list gets scheduled. So that your entire day is scheduled minute by minute. It helps me
1
Dec 12 '19
please go to a mental health professional. I'm sure your school will have counselors for free. best to do it now rather than later when its very expensive. good luck. 😥
17
u/hugthemachines Dec 12 '19
It is tricky to keep learning even for people without depression. So it is a bit tricky. How do you feel about deciding on tasks and then rewarding yourself for the work you did?