DEV Community

Discussion on: TypeScript is wasting my time

Collapse
 
sfleroy profile image
Leroy

Sorry to say but yes it's you. Typescript is a superset of js so you could just rename the files, turn down the strict mess of your linter and incrementally turn your codebase into more of a proper ts codebase.

Some of the challenges you write about can be solved with a simple Google search.

Using anonymous types really doesn't help. Your compact issue for example, and the url builder return type (which is missing, btw).

It's a little bit of time invested now, but easily recouped by preventing bugs before they occur while writing code in the future. I've upgraded a large corp application and it was a pain as well, but well worth it. Using a good ide like webstorm can take some of the tedious work out of your hands, so is highly recommendable

Collapse
 
gmartigny profile image
Guillaume Martigny

You mention that while upgrading a large application code-base, it was worth it. Could you give a few examples of what are the best, real life, advantages ?
Also, I'm using Webstorm. I'm greatly in love with it and it surely helped a lot.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

I was using Jetbrains IDEs as well in the past but nowadays I need to say that VSCode is the top tier IDE for many languages.

The first day was hard to me due to keybindings so I added a pluggin called intelliJ Idea Keybindings, edited the comment block one (I'm with a TKL keyboard) and I'm happy since then 😆

It consumes way less RAM and CPU, has built-in features while working with JS that webstorm lacks, it's more customizable and so on.