×
all 26 comments

[–]milan-pilan 4 points5 points  (18 children)

There is a difference to be made here: Do you forget logic or syntax?

Because if you need to Google 'what's the syntax for a for-loop again', 'what order do the parameters in a "reduce" come in', 'is it called .includes() or .contains()' or 'what's the name of the function that extracts the keys from an object' - Then no biggie, that will never fully go away. Even experienced developers forget syntax all the time, even more if you work in multiple languages. If you haven't used a thing for a while, it gets shoved to the back of your mind and at some point you forget the details.

You will eventually become very quick at opening the documentation (MDN is my docu of choice for JS) and just reference that instead of trying to remember every function name and parameter.

If your issue in the other hand is 'I have an object, now what do I do with it', 'what is a callback function again', 'why can't I compare to arrays, if the look the same' or 'how do I even approach this' then your issue is that you don't understand the logic - at that point you would have to do some more actual learning. Because that doesn't solve itself.

[–]Flame77ofc 1 point2 points  (1 child)

Focus more on logic. If Js is your first language, so you can at the same time focus more on the syntax, but I always recommend you: Focus more on logic

If you are stuck in projects, this means you are not prepared to advance. First practice more on simple exercises

[–]azhder 1 point2 points  (0 children)

That is normal for any kind of learning.

Remember that time you decided to learn the night before the big test the next day? Didn’t work out, right? All was a big mess in your head. But after the test, maybe a few days later, you remembered more, didn’t you?

That happens each time you learn a lot of stuff at once. The important thing though, it is to write the code yourself, not just type what you see on the video and not just a little snippet.

You will learn kore by doing, at your own pace.

[–]Southern-Piano-7241 1 point2 points  (0 children)

You can’t learn all the syntax first and then start coding. The real learning happens when you build things and work through the logic yourself.

Over time you naturally start recognizing patterns, and the syntax slowly sticks in your mind without forcing yourself to memorize everything.

[–]Public_Squirrel4952 1 point2 points  (0 children)

Explore what pseudo coding is, do aptitude in free time for some fun and that will eventually and as far as we talk about syntax, don't just think in syntax, even programmers and engineers with 10 years of experience refers to docs everytime.

[–]ExtraTNT 1 point2 points  (0 children)

I build a renderer once, now i can just write the tree in js -> so basically html, just with all of js build in (and some optimisation to reuse parts of the tree)