Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Going through something similar. Known java since I started coding and now moved to learn JS, which indeed sucks the patience out of you at first.
-
pal31171578yThe exact same thing happened with me too. Atleast there are some rules and restrictions in Java.
-
JS is a pretty straight-forward language, which is the way you should look at it to keep it efficient.
Almost everything is a reference, there are only a few types and they are inferred dynamically. Implicit casts are everywhere. The logic is usually simple - things get cast to the type that's easier to cast to without losing information.
That's it. now you get to write all kinds of bullshit you want.
Because it's like that, code generated on http://www.jsfuck.com/ is actual valid JavaScript.
You have a huge power. Use it wisely. -
Salmakis6738yI hated js in the beginn aswell, because it was mostly just using shitty jquery stuff. Then i played the game Screeps and now i love JavaScript (the language not the shitty frameworks in browsers) now i prefer nodeJS over anything else for most Projekts where i can decide, at job im a c# coder and really need to take care not just using var to often
-
I had a similar journey, starting with Java to JS to ES2015 features and now mostly TypeScript (really recommend it).
-
pal31171578y@2ndAttmt Can you guys help me out? I am currently learning jQuery but I donno anything about Typescript or ES2015. How should I proceed on that path?
-
@pal3117 one does not learn jQuery without knowing JavaScript. It's like learning integrals without knowing arithmetic operations.
-
@pal3117 If you use TypeScript you basically don't have to worry about ES2015 (you have things like modules and classes in both). You just install node.js, then the tsc (TypeScriptCompiler) and in your project root (where you run tsc) you have "tsconfig.json" with your compiler configuration. (You can easily find detailed instructions for each step).
But I have to agree with @apisarenco, you should probably first know JS.
I personally started with TypeScript in combination with Angular.
Started learning js 5 days ago.
Its so trash and all over the place which makes it able to do anything in weird ways
Not sure if I like it. I miss java.
undefined
javascript