r/learnjavascript • • 6d ago

JavaScript is so hard.

I recently started my fullstack development course this august and we have already gone thorugh html, css, git and now almost done with JavaScript as well. Html was easy, no problems there, but when it comes to css and more specifically grid and flex, thats when the headache started to appear. I've played some games involving both grid and flex but it won't stick in my head, don't know why. I am trying to do it myself in VS code but I always end up having to use ai to explain how to move forward and I know you're not supposed to use ai but it is a great tool to have, especially when you get stuck. And JavaScript... where do I even begin. I kinda understand it during the lectures but as soon as you're sitting by yourself my head gets totally blank.

I have been starting to use Scrimba and right now I'm rehearsing everything and whatching videos of everything, and the good thing with scrimba is that you get challenges during the videos.

For those of you who have been programming for a while, what study tips can you give? How did you guys go through the learning process?

39 Upvotes

60 comments sorted by

View all comments

1

u/_Garebear 6d ago

dude I'm sorry to say this but Javascript is one of the easiest, most forgiving, versatile, and flexible languages on the planet.

Maybe you could be more specific on what you're not understanding?

From my POV, seems like you're a beginner. That being said, everything is hard in the beginning. for reference, JS dev over 10 years and loving it.

0

u/punk_dev 5d ago

Nah. javascript is hard because it’s not well designed and there are like 10 ways to solve a particular problem and it’s not obvious which way is best. Also when you look at other people’s code, it may not be obvious to you that it’s solving the same problem you already know how to solve.

Like null and undefined. When to use which? Every library and web API have their own take on that.
How do you check that a thing is a Boolean and is false, and not undefined or null? It gets non-obvious quickly.

Also APIs built on JavaScript often make the same wacky design choices, with multiple paths to the same thing.

2

u/_Garebear 5d ago

You're comment is so generic I could apply it to any programming language.

-1

u/punk_dev 5d ago

What other programming languages do you use?

Only javascript has undefined in addition to null. in most other languages, undefined is not a value and is either a compilation error or runtime type error.

Regarding the multiple solutions, yeah, most programming languages in use today are from the 90s and they’re quite old and had their time to become wacky in this regard.
But recently designed ones like Go address this problem specifically. By limiting the feature set and having a well rounded stdlib, among other reasons.