r/learnjava • • 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.

50 Upvotes

32 comments sorted by

View all comments

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.