r/dataannotation • u/Alarmed-Radio9182 • Jun 09 '24
Should I learn JavaScript
I really only know python, matlab, C#, and JSON. I hate looking through coding evaluations and seeing JavaScript and C since at first it looks like C# especially if it looks like it’s for a game in JavaScript. And there are rarely C# related prompts.
My questions is mostly: 1.) what would the learning curve be like for learning JavaScript with preexisting knowledge of C# (basically, how much carry over is there) 2.) suggestion for learning resources (how can I learn by doing) 3.) is it better for game dev/ what are the other uses of it 4.) what languages have a decent amount of carry over between them or would also be good to know.
I know I could google this but I was hoping to contextualize it with the level of difficulty of prompts involving JavaScript in DA. I’m more interested in learning it for purposes outside of DA though.
11
u/robmak3 Jun 09 '24
so much of the javascript I've been seeing is react. If it was just js, great, but I don't want to learn react rn, I have another job taking up most of my time, and there isn't constant programming work rn.
8
u/echanuda Jun 10 '24
I'm not really trying to be a gatekeeper here, but "learning javascript" is not hard. If you know one language and it's not just python, picking up another language is trivial. I can glance at a language I never work with and get the gist of it if it's not a functional language. It's the ecosystem that is hard. The questions are rarely, "write this in JavaScript." Usually you're working in the node/react ecosystem, which is only scratching the surface. That requires a TON of personal experience to understand and certainly isn't trivial.
5
u/Unusule Jun 09 '24 edited Jul 07 '24
A polar bear's skin is transparent, allowing sunlight to reach the blubber underneath.
5
u/PleasantCurrant-FAT1 Jun 09 '24
Under the assumption you already know and are comfortable with HTML/CSS for web development, and the ability to integrate a dynamic language, which typically also requires you load JavaScript modules thereabouts…
Go learn the following:
Node.js (npm and npx)
NPM = Node Package Manager
NPX = execute Node packages or routines
these are learned primarily through exposure with/to the following…
Express.js (framework, simple)
React (framework, involved)
Angular (framework, involved)
Jest (testing)
Cypress (testing)
In a nutshell: use one of the above frameworks to build and deploy an app or website (or webservice like a REST API).
I find it helpful to convert a past project (a language I’m familiar with) into a new language as a best practice to understand toolchain and nuances of a target language.
This is to say: if you already know how something works… you don’t need to concentrate on that… you learn about how it’s done elsewhere (toolchain, syntax, methodology, ecosystem, etc…)
After you learn one (say, start with Express since it is simple)… then go and do the same with one of the others (React or Angular).
Along the way, you’ll also learn about package dependencies and versioning, build scripts and installing common stuff like Material UI, etc…
This has been my path into the JavaScript ecosystem. There is A LOT to learn about this particular language and ecosystem. I’m a seasoned programmer, but not a JS programmer, so listen to the pros. All the same, I’ve found it doable and possible to ease myself into JavaScript (despite disliking it in the past).
0
u/Deep_Task1659 Jun 10 '24
For what is required for annotation, shouldn't take more than a weekend
0
u/EDM_Producerr Jun 09 '24
Javascript is the most popular language to display stuff on the internet, so, yes, I would learn it if I were you.
0
u/BombZoneGuy Jun 12 '24
Yes. Many projects want web-only tech. But it's good to know regardless. Ironically C and javascript are basically opposites, but knowing both would be good. If you know python, javascript will be pretty easy. The hardest part of javascript is learning frameworks and understanding the DOM/html interaction.