DEV Community

Discussion on: 13 Typescript Utility: A Cheat Sheet for Developer

Collapse
 
thethirdrace profile image
TheThirdRace

In my experience, the developers that partially or don't type at all will make a lot of mistakes along the way. Only the top 10% will still get it right... and I'm extremely generous with that percentage...

Correct typings force developers to think about how their data is structured, it helps them understand exactly how to manipulate and use that data correctly.

Correct typings add a lot of readability to your code and makes maintenance a lot easier. Both those things should trump pretty much anything else in priority. You can get away with a lot less elegant solution as long as the code is readable and easy to maintain.

Correct typings mostly eliminate runtime crashes, which I would argue are the absolute worst kind of bugs.

These things:

  • increase your customer confidence in your company, which leads to more sales
  • reduce the downtimes due to crashes, which leads to less expanses and more sales
  • reduce the debug time for developers, which leads to less expanses on maintenance for the company
  • increase the mental well being of developers, which in the end:

    • increase productivity
    • attracts more talent to your company
    • gets your product on the market faster
    • give you time to add more and great feature to your product
    • etc.

All this translate to less expanses and more sales.

I would never suggest go without typings as a professional.