DEV Community

Discussion on: JAVASCRIPT, why do they say “it’s easy to learn”

Collapse
 
miguelbogota profile image
Miguel Bogota

I know that feeling, it was hard for me as well to learn javascript since I came from a strong typed language (c#). Some answer to your questions are... I usually use arrow functions all the times, don't really remember why but there's a reason for it, I think it was the way javascript was compiled to binary in the browser it will first set those normal function to allow be used everywhere and will consume time if you only have non-arrow functions. As recomendations I give you is to not learn javascript and learn typescript, if you come from a strong typed language is easier and if you are learning this as your first language is easy to understand oop with types and prevents a lot of bugs, typescript is something like a compilter, you write your code and in the terminal just type tsc and boom it returns a .js file. And if you really learn you should not learn javascript alone but with a framework like react, angular vue or svelte, I personally like angular since it easy to learn, a lot of people say is react but if you're learning react you have to learn redux and that is the worst thing to learn, especially with typescript.

Collapse
 
yobretyo profile image
Bret

I’ve been using React and I like it, it has helped me learn JavaScript allot. I haven’t focused on Redux allot.

Collapse
 
benjioe profile image
Benjioe

I thinks that React is one of the hardest UI framework to learn, because you have to understand some advance feature to use it (like this keyword).
Now with hooks it's a little easier but still harder than VueJs or Angular.
(But when you know it, it's awersome)

Thread Thread
 
miguelbogota profile image
Miguel Bogota • Edited

I don't think React is harder than Angular or Vue, but since it only handles the UI part the hardest it to learn all this third party libraries like routing, forms, reactivity... and kind of complicates everything. But If you're learning for now react use TypeScript, I think I can't stretch this enough but TypeScript is the best Microsoft did. and For React try to always use hooks, best thing Facebook did as well :v

Also for real life examples you should try to do thing for you own. I learn Angular by making a love page for my girlfriend where she could add love memories, I use a quote of the day API for romantic quotes that changes everyday and use Firebase as back-end. You could do something like that or maybe a portfolio... When you're doing this you'll realize all the thing needed to create a web app and make it work.

Thread Thread
 
yobretyo profile image
Bret

Thank you! I already have a idea of a “snippets” list, to create snippets of a card or page, that I can then copy with just a “onClick”, but when I try and copy the Class, it dosnt work. Idk what to use for copying the text/syntax in a designated area. So, it’s kinda like a To Do app, except for compiled code and you can “on copy” it

 
yobretyo profile image
Bret

Yea I get messed up on this.state or useState and where to implement that. Define rly when your in the, smaller class info? Where you have card, index... but the card is the class name or you have to make a different name