TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How can a JavaScript developer convince you they can work in TypeScript?

2 pointsby danroc7 months ago
How would you evaluate a strong JS developer for a TypeScript position? What would convince you they can succeed in the role?<p>I&#x27;m a senior JavaScript developer looking for new opportunities, but many interesting positions require TypeScript experience.<p>While I&#x27;m confident in my ability to learn quickly, I understand the hesitation to hire someone without direct TS experience for a senior role.<p>For context, I see this as different from React &lt;&gt; Vue transitions, where skills are more clearly transferable.

4 comments

erellsworth7 months ago
I think you&#x27;re imagining this will be a bigger deal that it really is. If you&#x27;re a senior JS developer you should be able to pickup TypeScript in a weekend. Spend a few days, maybe a week building a small project using TypeScript. Boom, you&#x27;ve got TypeScript experience.
drpossum7 months ago
You&#x27;re writing this like they&#x27;re subversively different languages. If you think React &lt;&gt; Vue transitions are transferable but then somehow think it&#x27;s a bigger leap between Javascript and Typescript, you might want to reevaluate your own ability to assess developers. I treat the experience between JS and TS as more or less equally weighted and experience in whatever framework I&#x27;m looking to fill as slightly more important.<p>The most important thing that will overrule all of that is a good experience developer who has some demonstrable body of work.
评论 #41983618 未加载
dtagames7 months ago
In my experience, very few projects are really TS &quot;all the way down.&quot; Since all valid JS is also Typescript, what really happens is that you&#x27;re writing JS with a sprinkling of TS <i>where it is helpful</i> and nowhere else.<p>A good place to start is by adding type declarations to a function, to specify the type of parameters it takes and the type of values it returns. This introduces the idea of type checking at compile time so you can spot errors in your calls to those functions or your use of their results when they don&#x27;t match the type you specified. <i>This is the only purpose of Typescript.</i> It has no programming functions of any kind. That&#x27;s all JS.<p>Once you&#x27;ve built and called a function with types on it (and VS Code is excellent for these experiments), the next thing to try is building an <i>interface</i>, that is a data shape of your own design. This is where the rocket takes off because instead of just saying your function needs &quot;an object&quot; parameter, you can specify the exact form of that object and the compiler will help you enforce that.<p>If you&#x27;ve mastered types in function calls and interfaces (and custom types, which are basically the same), congratulations because you know 90% of how TS is really used in the wild.
solardev7 months ago
It&#x27;s probably different at bigger companies, but at the small-medium businesses I&#x27;ve worked with, Typescript was just something everyone struggled with and everyone collaborated on, and it wasn&#x27;t used as any sort of gate-keeping. Sometimes the juniors would get lucky and figure out a typing that the staff dev couldn&#x27;t, and sometimes we&#x27;d all shrug and go &quot;eh, just &#x2F;&#x2F; @ts-ignore and TODO it... not worth wasting any more time on&quot;. It&#x27;s meant to be a tool to help developers and teammates, not restrict them, and most of the time it&#x27;s not very different than using JSDoc comments.<p>Typescript is very much an 80&#x2F;20 tool, as in 80% of it is very easy to learn (literally just telling the IDE &quot;this var must be a string&quot; or &quot;this object must have these keys and these value types&quot;). For your average codebase, those are generally the more useful parts of it, and that part only takes a few hours to learn. Yes, there&#x27;s that 20% of it that&#x27;s harder to wrap your head around, but that constitutes very little of day-to-day work in my experience.<p>Where it gets complicated is if you end up needing to write library code for re-use, especially external re-use. Then generics etc come into play and the syntax becomes less readable, e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;googol&#x2F;DefinitelyTyped&#x2F;blob&#x2F;6836f798cb18612166393382cd3de9f5f029cad5&#x2F;types&#x2F;ramda&#x2F;index.d.ts#L993-L1043">https:&#x2F;&#x2F;github.com&#x2F;googol&#x2F;DefinitelyTyped&#x2F;blob&#x2F;6836f798cb186...</a><p>But you can totally get by with a weekend of self-teaching, maybe a demo project or two – find your favorite old single-purpose NPM package and rewrite it in Typescript – and then learn on the job. Go through a few tutorials and produce some workable sample repos and then just be honest that it&#x27;s something you picked up later in your career while you were focused on more bigger-picture things, but this repo demonstrates the basics, and you spent extra time focusing on _____ and _____ (whatever you found complex or struggled with).<p>IMHO only, but if a senior is wasting their time creating super-detailed typedefs for everything, something is wrong with the team&#x2F;project organization. There are much bigger fish to fry, like architecture, async, state sharing, UX, readability, code review &amp; QA processes, etc. And even among the nitty-gritty, there&#x27;s much more complicated nuances to tackle, like how Next.js caching works in different routing and async models, when&#x2F;how to best use SVG&#x2F;Canvas&#x2F;WebGL&#x2F;WebGPU&#x2F;Web Workers&#x2F;WASM. Nobody is going to sweat an unfinished typedef here or there, and sometimes a simple but well-written comment can be a lot more useful than just a technically &quot;correct&quot; typedef that the juniors can&#x27;t even read.<p>All the roles say Typescript because that&#x27;s just what everyone uses now, just like destructuring or other ES6 features are taken for granted. But Typescript doesn&#x27;t make a break a senior (or any dev), IMO, it&#x27;s just something to learn and use as appropriate, to the extent appropriate for any given team or project. ChatGPT is also increasingly good at it and can save hours of manual definitions (but always double-check its output, as usual).<p>Sorry, not a direct answer to your question since I&#x27;m not a hiring manager, but just echoing what others have said... it&#x27;s really not that big a deal. I&#x27;ve never been quizzed on Typescript specifically, and the teams I&#x27;ve been on would routinely simplify (dumb down) types when we refactor code, just to save time. It&#x27;s not meant to be an exercise in code prowess, just another documentation &amp; write-time testing tool.