92% of devs will regret TypeScript in 5 years TypeScript is everywhere. Frontend devs swear by it. Backend devs use it for API contracts. I even see junior developers jumping straight into TS without learning plain JavaScript first. It feels like the perfect solution: type safety, better DX, fewer bugs. What's not to love? But here's my unpopular opinion: TypeScript is a band-aid, not a cure. - It adds complexity to codebases. - It slows down onboarding for new devs (especially juniors). - The type checker isn't foolproof; bugs still sneak in. - And ultimately, types don’t fix bad logic. The real problem isn't JavaScript being "too loose." It's developers writing messy, unmaintainable code. TypeScript won't save you if your team doesn't follow good software engineering practices. In 5 years, everyone will look back at bloated TS projects and realize they wasted time trying to solve the wrong problem. Focus on clean code, not just types. What do you think? Will TypeScript still dominate the JavaScript world in 2028? #typescript #programming #webdevelopment
What a weird fucking take, lmao. How does type safety add "complexity"? Vanilla Javascript is, in fact, harder to write and debug. LLM's are very good with Typescript. Nobody will ever go back to writing Javascript. P.s Use proper languages for backend development and leave JS/TS where they belong (in browser), by the way
Blaming ts for bad code is like blaming a helmet for a bad bike rider, by your logic Java developers have been wasting their time for 30 years
What you just said applies to any programming language. Not ts. I think ts is the middle ground between replacing completely js and keep fully using it. It adds type safety and filters out type related bugs which is a great deal -at least for me-
You can have as much complexity as you need with typescript, and I dont think the onboarding is slower actually it should be faster because you know the input and output type, and the alternatives to not having typescript on mid to big projects like jsdocs take more time
And everywhere type “any”, most of people are mis using it in small startups where code review is not done properly
For any project that has sizeable codebase, using typescript over javascript is a no-brainer. The developer experience it provides more than makes up for the extra types one writes/reads. With modern tools, transpiling, which once a real problem is also not a problem anymore.
I think both sides are true to some extent. TypeScript doesn’t fix bad design or unclear logic. I’ve seen projects where types just add another layer of complexity without solving the real problems. At the same time, in larger codebases and teams, it does help with consistency and understanding how data flows across the system. For me, it’s less about TypeScript itself and more about how it’s used as support for good engineering practices, not a replacement for them.