r/learnjava • • Aug 11 '21

Studying for Java

How do you guys study for Java ?

I am taking notes and coding at the same time with Codecademy. I keep finding my self not able to really put what I learn to use yet. I am having a hard time to learn Java because of not taking the info the right way.

Any tips for beginners and how to study ?

42 Upvotes

23 comments sorted by

25

u/desrtfx Aug 11 '21

Ditch CodeCademy. The course is way too shallow.

Do the MOOC Java Programming from the University of Helsinki. It is a full fledged, textual course with plenty graded practical exercises that will really teach you Java and programming. You will remember more through the plenty exercises.

1

u/GhostCode2 Aug 11 '21

Thank you I am going to try that.

2

u/idhanjal Aug 11 '21

I forgot to add this one. It's really good as I went through both parts.

1

u/KoutaviLIVE Aug 11 '21

Maybe not the best place to ask, but I'm not finding anything by googling it. Has anyone had issues installing and running TMCBeans as mentioned at the beginning of this course? It just mentions "Cannot find Java 1.8 or higher", despite following all instructions to a T.

1

u/idhanjal Aug 12 '21

Yes, I too had this problem. There could be multiple reasons for this :

  1. You don't have JDK installed on your machine. Please install it.

  2. If you have JDK on your machine then TMCBeans is not able to find it. To make that happen, you have to tell TMC where to look for it.

7

u/[deleted] Aug 11 '21

I have to disagree with people that say, "just do build stuff". That is not how everyone learns.

I do coding in intervals after doing some study sessions.

First concepts of programming and basic syntax. I find videos and books with different perspective until I go "aha! I get it!" I compile my own "wiki" from handwritten notes. I do not type notes on computer directly, because by hand I focus more and after that, I pass them to the computer the next day to see if I understood. And after that, I practice the code, copy code and play with it, break it, twitch it, etc. But first I need to know what I am doing and why.

You can "do stuff" and that is fine, but you should not only do that, since you won't really learn why things work the way they do or why they are used.

My current schedule is 3 - 4 hours Monday - Thursday for study (lectures, reading, organizing notes) and 1 hour every evening actually coding on my small practice projects, trying to implement what I learned.

1

u/GhostCode2 Aug 11 '21

Thank you so much ! How do you take notes ? I found my self having trouble taking notes. It is like they are just all over place and not able to go back and reread it because they are bad notes. Any tips ?

2

u/[deleted] Aug 11 '21

Bullet points, try to keep to bullet points and you won't have issues. Just paraphrasing what you study. As short as possible 😊 I also use a lot of diagrams, but that's only once I have notes to see if I understand.

2

u/[deleted] Aug 11 '21 edited Aug 11 '21

Maybe it's because I have ADHD, but I find the process you are describing to be incredibly boring.

I need to see things work, taking a bunch of notes without actually seeing it do something makes it completely irrelevant to me and hence boring, which prevents me from learning.

I usually do intervals, like I might read theory for an hour at which point I start losing interest, so I have to try it in a real project. I don't feel like I have to know everything to start doing something. Once I start doing something, I'll get a better feel for it. Then, when I feel like I am doing something I don't understand, once I get something working, I'll go back to reading theory (which is now more relevant to me), so I learn it "properly". Then I return to the code and update it with my better understanding (refactor it), or just rewrite it (treating the first one as a "spike" that I can throw away).

What I love about IT in general, is that code is essentially executable notes. Which is why IT works great for my ADHD brain. I studied medicine before I got into IT, and it was too much theory and not enough practical application for me.

2

u/[deleted] Aug 11 '21

Yes, that sounds indeed like the style I hear most people advising. Maybe like you say because of ADHD. Though I do not think of it as an impediment, but a different way the brain works, and as such this works perfect for you and many others.

But I am the contrary, I get lost if I don't understand why are we using a certain code. I can make it work, but I do not feel I am "learning" until I know why. Like... I can copy and paste and make it work, but it is not fulfilling. I feel like I can just do it, but not explain it. Or maybe it is just me expecting it to be harder than it is.

I do, however, dislike wasting my time learning old methods while I can spend time learning what is actually being used now. For this, I do try to find modern code to imitate and learn from, similar to how we learn to speak with modern slang.

What I love about IT in general, is that code is essentially executable notes. Which is why IT works great for my ADHD brain.

Hahaha funny, because indeed what I like about IT is understanding why and how things work, and I guess I apply the same to learning programming.

3

u/[deleted] Aug 11 '21

Though I do not think of it as an impediment, but a different way the brain works, and as such this works perfect for you and many others.

So is Schizophrenia or Bipolar. The reason why ADHD is an impediment is that, as a disorder of the executive function of the prefrontal cortex, there are significant negative side effects in other areas of life (anything requiring organization or goal orientation). ADHD brains do not produce enough dopamine in the prefrontal cortex, which is why stimulant medications really help (and also why tons of caffeine helps me focus and calms me down, while too much caffeine makes neurotypical people jittery and unable to function).

I can copy and paste and make it work, but it is not fulfilling.

Never copy and paste. The infamous Zed Shaw of "Learn C the Hard Way" promoted a method of teaching where he tells students to write the code he tells them to write, but tells his students never to copy and paste. When you type, there is a region of the brain that is activated that asks "why am I doing this?"

what I like about IT is understanding why and how things work

Same here, but I don't get that from reading books, but tearing things apart. Some people need to read documentation to understand how things work, before they will ever attempt something. I rarely read documentation, I prefer experimentation. Then, attaching the debugger, I can see things work step by step so I can understand why it works.

Which might also why I love working on mechanical things, like cars.

1

u/[deleted] Aug 11 '21

πŸ˜‚ That's probably why I don't like cars. But agree with you 100%. Didn't know that was the cause of ADHD. Thought it was about too much stimulus and how it cope with processing information. Always interesting to see how everyone works different!

2

u/[deleted] Aug 11 '21

Thought it was about too much stimulus and how it cope with processing information

That's autism. Autism and ADHD are often confused. This guy gave a good presentation on the subject.

2

u/idhanjal Aug 11 '21

I am a mature student but I suffered (and still do when it comes to learning new things :-)) from the same problem as you. Here's what I did -

  1. While many people are strong proponents of the idea of "learning by doing" (as it works for them) yet I found it very hard to subscribe to the notion of trying to 'build' something just to 'understand' it ?? Instead, I found it easier to work with limited understanding and moving on the next topic. And yes, taking notes does help as it helps you avoid the really cumbersome task of going back to 'revise' things , ugh...

  2. The reason I advised working with limited understanding is because of the way some of us acquire knowledge. Learning is never done all in one go - you usually make multiple passes through the subject matter once you are exposed to some application of the knowledge which forces you to examine your knowledge and leads you back to where you are supposed to be. Trust the process , it works :-) I sound a bit preachy here, I know !!

  3. Avoid the temptation to be a 'master' as it's a myth. Nobody ever masters programming, let alone any language worth programming in. It's a lifelong endeavor if you really apply yourself to it otherwise you can always strut around ignorant folks , basking in their adulation that you 'know' so much. Adopt the mindset of a problem solver and always congratulate yourself when you are able to solve problems, fix issues , no matter how long it takes.

  4. Believe, and I really mean it, that you will eventually get there. It will take time and effort but it's worth it ONLY if you believe in it. Nobody can emphasize the importance of persistence for or motivate you as it's always YOU who would see the light in the dark and surmount the obstacle. The obstacle is the way here ...

Okay, enough of the sermon ! What I am trying to tell you is that you have to keep at it. Try to study from various sources or discuss with more knowledgeable folks (the ones you trust , not those posers who take pleasure in deriding or breaking others down !!).

Keep studying and don't give up,

A fellow learner.

1

u/GhostCode2 Aug 11 '21

Thank you so much I needed to hear this !

23

u/Tylnesh Aug 11 '21

Sometimes you need to stop "studying" and just make something. Choose a project and start working on it. You can come back to the books at any time if you feel lost, but it's important to mix practice and theory.

6

u/ohlaph Aug 11 '21

Both. Do both. Now. Don't waiting.

2

u/[deleted] Aug 11 '21

I did the Stanford online CS106A. They've got some good projects. Unfortunately, the course uses its own library, but that'd be an issue if you were to self-study the course.

2

u/to_tgo Aug 11 '21

Build something but make it small. You have to put your knowledge to work.

You do something in a course, and you think 'I've got this'. Then you put it in the real world and absolutely nothing works. You gotta write code and work through the issues. This is where the real learning happens. Start on something manageable whatever that means to you. Then build up from there.

You want to crawl, then walk, then run.

0

u/[deleted] Aug 16 '21

Do you understand what you're transcribing or not? Computer science is not a history class where you repeat what you've been told and code magically appears. Maybe this might be the problem.

1

u/GhostCode2 Aug 16 '21

I do understand and that is definitely not the case. Thank you though I figured a way out to understand it ☺️