[dead]
Re:Maybe we could tone down the JavaScript (2016)
by nullandvoid on Monday December 27, 2021 @12:45PM
(#29704703)
I'm sure you already know this (although I've had conversations with people that hate on TS in the past, that didn't, hence my post), but Typescript is JavaScript at runtime, there are no performance hits by using it in production (and negligible build times on save during development).
Re:Maybe we could tone down the JavaScript (2016)
by LarrySellers on Monday December 27, 2021 @01:25PM
(#29705150)
Shame it's so easy to get comments flagged and killed on HN. The parent comment wasn't inflammatory and (as we can see) contributed to relevant conversation.
Re:Maybe we could tone down the JavaScript (2016)
by throwaway19937 on Monday December 27, 2021 @01:55PM
(#29705525)
I flagged it because it's a Well, Actually (https://tirania.org/blog/archive/2011/Feb-17.html) that makes an unsupported claim.
Re:Maybe we could tone down the JavaScript (2016)
by nicoburns on Monday December 27, 2021 @12:15PM
(#29704361)
Plenty of people still write JavaScript. TypeScript is rapidly gaining popularity, but I'd be surprised if it's reached even parity with plain JS usage yet. People using Angular are probably mostly using TypeScript, but there are still huge communities (React, Vue, Node.js) where TS is optional.
Re:Maybe we could tone down the JavaScript (2016)
by jimmaswell on Monday December 27, 2021 @12:24PM
(#29704473)
Still using JavaScript with occasional jQuery over here.
Re:Maybe we could tone down the JavaScript (2016)
by holoduke on Monday December 27, 2021 @12:37PM
(#29704613)
When quick prototyping i prefer plain JavaScript 100% over typescript. Lot less boiler plate than typescript. Faster, no compilation, can run it in a browser console.
For larger project I might consider typescript.
Re:Maybe we could tone down the JavaScript (2016)
by newshorts on Monday December 27, 2021 @12:46PM
(#29704716)
Vanilla JS is more rare these days. I interview 2-3 devs per week and always ask basic vanilla JS questions since it’s vital for our workflow that you don’t rely on frameworks we may or may not be using. Knowing react/vue is a bonus, but knowing how to do basic tasks like adding event listeners and manipulating the DOM in vanilla JS is required.
It’s anecdotal but I just wanted to say there are a few places that still haven’t fully committed to a framework.
I’d say at least 1 dev per week can’t add an event listener or manipulate styles in plain JavaScript. It’s getting to the point where I’m going to need to stop asking and just test in whatever framework they know. Then retrain when they come on board.
Re:Maybe we could tone down the JavaScript (2016)
by exdsq on Monday December 27, 2021 @01:02PM
(#29704898)
Not going to lie, I’d need to googled that nowadays if I wanted to do those things! Issue with polyglot development. Can’t you ask more fundamental questions like when to use an event listener instead, or best practices?
Re:Maybe we could tone down the JavaScript (2016)
by jenscow on Monday December 27, 2021 @01:05PM
(#29704922)
And this is why we need technical tests during interviews. There are people who call themselves "web developers", apparently been writing websites for 5+ years, but don't know about addEventListener.
Re:Maybe we could tone down the JavaScript (2016)
by bdcravens on Monday December 27, 2021 @03:35PM
(#29706503)
Even better, make their direct supervisor take the same test. If they outscore them, they get their job and the supervisor then is demoted to the job being hired for.