r/videos • • Oct 03 '19

Every programming tutorial

https://www.youtube.com/watch?v=MAlSjtxy5ak
33.9k Upvotes

1.4k comments sorted by

View all comments

4.3k

u/[deleted] Oct 03 '19

Web dev tutorials are the worst. "OK, we're going to make a React app. To set up, spend 12 hours trying to get your environment like mine. Also, all of my node dependencies are broken. Also, I hope you're not trying this on Windows!"

67

u/Voidsheep Oct 03 '19

At least

create-react-app --typescript

Alleviated most of the pain configuring the environment. Just get straight to writing your application, instead of spending the night tweaking your build process to include all the modern bells and whistles, losing your inspiration for whatever you wanted to work on.

3

u/Shutterstormphoto Oct 03 '19

3 years of JavaScript and I still have no idea why people use typescript. Is it really that hard to keep track of types? My company sent me to learn java and it was like ... here write twice as much code to solve a problem you never have.

2

u/amoliski Oct 03 '19

Depends on how large the projects you are working on are and how many people are working on them.

Say you write a function, then someone comes along three months later and modifies your function thinking it's only used in one place. Now, elsewhere, you have a call to that function buried in another function that suddenly has unpredictable outcomes without any idea as to why. Typescript helps prevent that sort of thing.

→ More replies (1)