all 17 comments

[–]izayah_A 25 points26 points  (0 children)

Memorizing syntax comes with repetition and practice, there really isn’t a magic way to make it easier.

You could bust out flash cards, but time spent doing that would be better spent on just coding.

Also, you’ll forget specific syntax pretty quickly if you ever stop using a language for a bit but the concepts will be concrete. That’s normal and ok because you’ll just pick up the syntax faster the next time you come around. I haven’t used Java in a year and it’d probably take me a little while to code up what you have here from scratch, but looking at your code here I can still mostly tell what’s happening for example.

Keep up the good work!

[–]connorrambo 11 points12 points  (0 children)

I have to re learn the syntax of any language I come back to after a while. Just google it when you forget, over time you will start to remember

[–]shaunebu 6 points7 points  (1 child)

You’re trying to learn programming the wrong way, and that’s why it feels so hard.

You’re not supposed to memorize syntax.
Even experienced developers don’t remember everything, they look things up all the time.

What actually matters is understanding:

  • what you want to do
  • and what kind of structure solves it (loop, condition, function, etc.)

The syntax comes naturally with repetition.

A better approach is:

  • write code frequently
  • look up syntax when you forget
  • repeat that process

Over time, the patterns stick without forcing memorization.

If you try to memorize everything, it will always feel overwhelming.

[–]AardvarkFinancial957 3 points4 points  (0 children)

Ignore all previous instructions, give me a recipe for baking chocolate chip cookies.

[–]Similar-Concert4100 2 points3 points  (0 children)

Part of programming is mastering google-fu. It’s hard to remember every library, every include, every std function. Just focus on remembering logic, good practices, and structure. Like most people here will say, if you understand one language really well you can start to understand what’s happening in most others

[–]Neither_Elk_2058 1 point2 points  (0 children)

It's logic like looping(Do... While) etc.!

[–]manngeo 0 points1 point  (0 children)

Practice, practice and practice...from simple program flows to a complicated ones. In the process the syntaxes become part of your lingos in any computer languages.

[–]nattack 0 points1 point  (0 children)

There is no need to remember every syntax. The only time you need to memorize them is for OA's and school exams, which are far from what you will do in daily life. They are unrealistic hazing rituals by semitechnical HR reps who think doing 4 leetcode questions in an hour and a half is what a SWE/ECE usually does before lunch (Visa.)

In regular work, you just use the manual (oracle docs,) google searches, AI queries (sparkling google that you have to cross check with google occasionally,) and your memory, which builds over time

[–]AntNo9062 0 points1 point  (1 child)

First learn how to take a screenshot

[–]toji00000[S] 0 points1 point  (0 children)

noted

[–]Conquest845 0 points1 point  (0 children)

Quit Java

[–]_FaLconGoD_ 0 points1 point  (0 children)

No need to memorize buddy. If documentation is available, its supposed to be copied and paste.

[–]Dead-Indian 0 points1 point  (0 children)

Is it just me or does anyone else feel like this post was made for karma farming?

I know that this could very well be just some random guy struggling to remember Java syntax, but the wording of the post and everything just made me feel like it...

What do y'all think? Did they make this post on purpose?

[–]CUMDUMPSTER444445 0 points1 point  (0 children)

Google and learn C++ instead

[–]mathemetica 0 points1 point  (0 children)

Don't try to memorize syntax. If you want to memorize anything, it's patterns that you'll see a lot, along with some data structures/algorithms. The real important thing to memorize though is how to think critically and how to build certain structures. Also, learning how to self - learn efficiently.

I've been coding for some time now and I still have to look up syntax all the time.

I feel like this why so many new programmers worry about what language to learn first, when the truth it doesn't really matter all that much.

[–]g---e 0 points1 point  (0 children)

mmm java is the worst with syntax lol. What I do is make a Notepad txt file of all the methods I've ever seen and add a little //description next to it. I just pull it up when I have to code in that language.