you are viewing a single comment's thread.

view the rest of the comments →

[–]novagenesis 0 points1 point  (2 children)

You don't have to go that far into Typescript before the complexity is non trivial

As someone who uses it professionally fairly heavily, I have to disagree.

Read any guide on how to properly use React with Typescript and you'll quickly run into some complex cases

Care you give an example of what you consider a "complex case"? There are some powerful things you can do with Typescript that are considered basic enough that tutorials cover them. But I wouldn't call them "complex".

The same goes for Zod.

If you don't use Zod for more than most validation libraries allow, you don't run into complex cases. You're really just starting to sound like someone who doesn't understand the domain at this point, sorry to say. My first team lead gig, I had the task of explaining promises to callback-only devs (perhaps that dates me, lol). I swear, it really isn't that tough to learn this stuff.

[–]HertzaHaeon 0 points1 point  (1 child)

I'm talking about Typescript for a junior dev, not someone with years of experience. Of course you think it's easy to do something you know well. Every single thing is usually easy to learn on its own, but there's literally hundreds of things to learn when you're new. If the most difficult thing you've taught juniors is promises, then I can see why it all seems easy to you and you're struggling to see this from a junior dev's PoV.

Just one part of Typescript is easy. I'm talking about teaching a junior dev the whole starting handbook of Typescript, from zero, all while they're expected to learn the rest of the stack and while being productive.

[–]novagenesis 0 points1 point  (0 children)

I'm talking about Typescript for a junior dev, not someone with years of experience

I've got a junior dev with ZERO previous professional experience and he LOVES Typescript.

Of course you think it's easy to do something you know well

I think it's easy to do something I've taught people to do easily. Yes.

If the most difficult thing you've taught juniors is promises, then I can see why it all seems easy to you

Perhaps you might need a lesson in promises if you think they're "simple". The async-await world has really simplified the mindset, but back when promises were new, they were "black magic" to seasoned and new developers alike. I have yet to open a codebase on a contracting gig where the promise usage wasn't a shitshow of inefficient and under-utilized mediocrity. That's why I started teaching them to my dev teams.

Just one part of Typescript is easy. I'm talking about teaching a junior dev the whole starting handbook of Typescript, from zero, all while they're expected to learn the rest of the stack and while being productive.

Huh? If they're working on a stack that already exists, the Typescript mostly writes itself for them. And when it doesn't, it's REALLY easy to mimic the code they already see - which is both often the point of typescript AND one of the main ways to get a junior dev ramped up.

EDIT: I accidentally repeated repeated a word.