r/javahelp • • Jul 17 '20

Codeless Nearing the end of my Java course, feeling lost

It’s taken me a couple years to figure out what I wanted to do after high-school, along the way I’ve dabbled with some light front end languages like HTML & CSS. Just recently I decided to major in computer science and my first programming course revolved around Java.

Now that I’m approaching the end, I feel unaccomplished, I have written notes and completed assignments but I feel as if I haven’t truly understood most of it. When given a problem to solve, my mind goes blank and I am never sure of a route to take to solve it with Java.

Sorry for the rant, but this was the only place I feel could possibly relate to me to some degree. I ask if you guys can possibly share any courses, videos or any kind of material that helped you understand the language the most from a different perspective.

Thank you in advance for the help!

TL;DR - Anyone have some kind of video/course they’d like to share to help someone struggling to grasp the language?

32 Upvotes

24 comments sorted by

6

u/Poddster Jul 17 '20

When given a problem to solve, my mind goes blank and I am never sure of a route to take to solve it with Java.

It's very difficult for a course to teach you this, as this is fundamentally an aspect of your problem solving skills.

When given a problem you need to:

  1. Identify the sub-problems that make up a current problem

  2. See if any of your current knowledge or skills can solve that sub-problem.

  3. Once all sub-problems are solved, the current, larger problem should now be solved.

If you fail at step 2 then, then for each sub-problem do the same process again. Keep doing that until you have many, tiny, simple problems that you can solve. Also deal with one problem at a time, don't get lost in the weeds.

If you want help on how to solve a specific problem, post here or in the various related subreddits (/r/learnjava, /r/AskProgramming , /r/learnprogramming etc). Note that "asking a question" and "getting an answer to my question" are also problems that you need to solve. So here's a hint: Make sure you're specific about what the problem is, what you want help on, and what you've tried so far. Also point out if you just want a solution, if you want a walkthrough of how that solution was obtained, etc. In general: If the more effort put into a question, the more effort you'll get in the answers.

TL;DR - Anyone have some kind of video/course they’d like to share to help someone struggling to grasp the language?

No video will impart this information on you. You can watch as many videos on carpentry/wrestling/cooking/drawing as you like, but at some point you're going to have to actually do something yourself.

2

u/[deleted] Jul 17 '20

Thank you for your advice, I think it’ll help if I try to write things down on regular paper and jot things down to help me break problems down

11

u/BBB_D Jul 17 '20

I’m in my senior year, studying computer science and I still feel lost. School is mostly to introduce you to the languages and basics. You won’t have a full grasp until you get real-life experience. What you can do is look at the java certifications online and see what the recommend you to study (I think the study material is free) and get your certification. I hope it helps!

2

u/[deleted] Jul 17 '20

Wow thanks a lot for this! I’ll definitely give that a look.

3

u/maikuxblade Jul 17 '20

Seconding this, the closer I get to graduation the further astray I feel. It always feels like there's more to learn (there is, work-life balance is important) but if I take a step back or really even just browse this sub a bit I can see people asking questions of the type that I used to have when I was a beginner and they are now questions I can answer like describing the back of my hand. Learning is hard and within CS it feels infinite and even within a single tech stack it feels infinite. Just keep learning.

5

u/back-in-black Jul 17 '20

For me, this would be the wrong approach. Different people learn different ways, but one constant for the majority is to learn by doing.

Start by solving simple problems on something like CodeWars. Read the discussions. Save your work in a Github repository. Slowly move on to harder problems. That alone may be enough.

From there, solve real problems that real programmers have seen at work. Create the solutions as fully fledged projects rather than a collection of snippets. Add Readme docs, unit tests, automated builds, use common libraries to address common problems.

The project based approach may be more difficult for someone with no experience. Ask for some examples if you’re interested.

1

u/[deleted] Jul 17 '20

Thank you! I will give that platform a shot, I heard of it once but I never used it. I’ll try this!

3

u/[deleted] Jul 17 '20

There are tons of videos and courses out there. I'm still learning myself but feel like I have a good grasp on it with only taking a single community college course. It was an intro to programming that taught how a program works and we used/learned java (mostly basics) to put it into practice.

So what parts (if any) of java/programming do you understand?

What are parts are you having a hard time grasping?

Might be able to recommend something if I get some insight about what you're struggling with.

3

u/[deleted] Jul 17 '20

I understand most of the basics, my problem is when I follow along someone else’s solution to a problem I understand how everything works together, but when I’m in charge of coming up with or solving the problem myself I fail to do so, I typically have trouble with homework problems revolving the use of loops and arrays , and calling methods

3

u/[deleted] Jul 17 '20

Loops and arrays can be a bit tricky. I remember having a hard time with them when I was first learning. Do you understand how they work? or is it more that you don't understand how to use them to solve a problem?

2

u/[deleted] Jul 17 '20

The latter, I get how to construct them and how they work but when it comes time to implement them I seem to never know where one should go, how many I need, etc.

5

u/[deleted] Jul 17 '20

Here's a video from Alex Lee explaining For Loops https://youtu.be/3jMaKlNBjug

He does a lot of Java tutorials and explains it pretty simply. I recommend checking him out and hopefully this will help!

3

u/Modullah Jul 17 '20 edited Jul 17 '20

Watch the servlet videos by telusko on YouTube. I like his channel and this one other kid, gaurav or something like that.

Edit: gaurav sen is the YouTube channel. also I took a math class recently, discrete math. It’s been 7 years since I took a math class so the logic and problem solving from this class REALLY helped me with my coding.

2

u/[deleted] Jul 17 '20

Thank you, I’ll check it out! Also, I just registered for discrete structures, should I switch to discrete math?

2

u/Modullah Jul 17 '20

I think they're the same class, some schools just name them differently.

The course content for the one I took was: "Course Content:

  1. Elementary set theory and functions

  2. Basic logic, including quantifiers and DeMorgans Laws for negations.

  3. Direct proof techniques

  4. Indirect proof techniques of contradiction and contraposition

  5. Mathematical induction and recursion

  6. Elementary combinatorics, including Sum and Product Rules, permutations, combinations, counting with repetition

  7. Basic graph theory, including connectedness and Euler paths

  8. Algorithms for obtaining spanning trees, including a proof of the correctness." - Oregon State University MTH 231

3

u/brett3663 Jul 17 '20

I actually am the same exact way. I am still working on my degree for computer science and I still feel like I dont know anything at all. I can read code fine and understand most things going on when I see it but when asked to solve or create something my mind instantly goes blank and I can’t for the life of me figure out a solution. It weighs on you a lot and makes you feel like you’ve made the wrong degree choice but at the same time you don’t want to give up because you know it’s going to take work. Just doesn’t feel that way a bit. You just have to push through and keep reminding yourself that you are able to do it. The day will come when all of a sudden all you’ve learned clicks together and makes sense.

1

u/[deleted] Jul 17 '20

Yeah that’s exactly how I feel, I constantly think about whether I made the correct choice or not or if this is even something I am capable of. But like you said, no one starts out knowing all of this. With time and persistence I hope to improve and be able to rid myself of these problems

2

u/ExeTcutHiveE Jul 17 '20

I too struggled with this and I can tell you that one course will not suffice. It takes multiple projects. PluralSight has 100's of hours of videos but it does cost money. Some schools have free learning accounts to top online learning so check it out.

1

u/[deleted] Jul 17 '20

Will do. Thank you for the information, I’ll check PluralSight out!

2

u/__helix__ Jul 17 '20

Most kids graduating from university only have a semester or two of Java. They really don't know it beyond the basics. Any deep diving will pay off in spades when you go out there and start interviewing. You can tell.

My advice? Create a blog, in Java. Create the web application. Create the forms to create content, the views to render the content, the database (SQL, NoSQL, whatever) to search and persist the files. You've seen wordpress sites and other such thing. Make one using any one of the Java MVC frameworks out there. One of the more educational things you can do is create that 'mission driven' CRUD app, with you as a consumer. You may or may not get to the point where you move from your laptop/desktop to a hosted server - but the journey is really worth it.

The other is get involved with an actual open source project. Even if you get to the point where you get it running and do nothing more than add documentation, that helps. You will get a chance to see how a pull request actually works in the real world. A nice Spring Boot app for a video game:

https://github.com/FAForever/downlords-faf-client

Look at the issues list and contribute! You will be a stronger developer for going through that process.

1

u/[deleted] Jul 17 '20

Thanks so much for this! I really will benefit from not being too afraid to get started on something on my own, or making an attempts to work on small or big projects.

3

u/PrinceValkyr Jul 17 '20

sounds like you need to practice some java coding interview problems. Start easy, and work your way up from there

2

u/morhp Professional Developer Jul 17 '20

I feel like you're watching/reading too much stuff and just lacking on-hand experience.

Just start to write small programs. And with small I mean tiny. Start with a program that calculates PI (without using math.PI) or write a program that counts words in a text file or whatever. If it's too hard, do something easier, if it's to easy do something harder.

You'll learn over time. And if you have questions or problems, look them up, but be sure to not only copy the solution, but write them yourself into your program.