r/javascript • • Sep 20 '18

The Solo JavaScript Developer Challenging Google and Facebook

https://www.wired.com/story/the-solo-javascript-developer-challenging-google-facebook/
52 Upvotes

38 comments sorted by

View all comments

10

u/spaces_over_tabs Sep 20 '18

I've used Angular and the biggest and best thing about it is Typescript. Don't get me wrong, Angular is fantastic and I love it. I learned TS because of Angular and fell in love with it. Every project I do now, I use TS and not necessarily Angular but I need TS.

4

u/AceBacker Sep 20 '18

Yeah but, Are all of your variables type 'any'? JK. Typescript is great but I find myself leaning on that any class too much.

6

u/spaces_over_tabs Sep 20 '18

Lol really? Try creating Interfaces or Union types. Generics also reduce boilerplate... I almost never use type 'any'

1

u/MrJohz Sep 20 '18

Yeah, my number one tip for getting familiar with TypeScript is to learn how the whole number | string thing works, and just really get comfortable with it. Once you get that, I feel like the language as a whole just really opens up for you, and becomes so much more powerful.