DEV Community

Discussion on: What's the worst advice you've ever received?

Collapse
 
stereoplegic profile image
Mike Bybee • Edited

"Use TypeScript, it makes JavaScript object oriented and you can check types."

...paging Kyle Simpson, HALP!!!

I was there for the "object oriented JavaScript" craze of the early-mid '10s, and all the predictable, totally avoidable errors caused by treating JS like [insert class-based OOP language you're comfortable with]. Now, we're just teaching junior devs to treat JS like a class-based language from the get-go (not to mention piling a ton of extra learning curve on their plates). That's gonna be fun to untangle.