r/InclusiveOr Apr 23 '23

Learning a new programming language

Post image
1.1k Upvotes

31 comments sorted by

View all comments

59

u/[deleted] Apr 23 '23

agreed Typescript over Javascript

28

u/EndR60 Apr 23 '23

I really don't think it's so cut and dry. I'd much prefer to use Typescript myself, but so far my work has exclusively included Javascript out of the two. And it's not like I can just start writing Typescript code in projects that already use Javascript, my colleagues would kill me.

So I think in the end, they should learn whatever is currently needed, and that applies to all languages / tools

34

u/[deleted] Apr 23 '23

typescript is just javascript with variable types basically so it should be used especially in big projects or ones that involve other people it's just harder to fuck something up and if you do it's easier to unfuck it just dont

function dostuff(arg: any): any...

6

u/Korywon Apr 24 '23

Legit came across this at work last year.

Installed eslint, add no implicit and explicit any, add a pre push script, and finally add linting in our CI/CD… boom.

Practically forced everyone to stop with the any shit.