TypeScript adoption at work
I'm a more junior developer with just about three years of experience. Recently, we were given the go-ahead to start using TypeScript for a newer more green field project to test the waters. I think it's been a great experience, and has given me more confidence in the robustness of my code, and in the safety of my refactoring. Currently, something of a round table is happening where devs from various teams are being asked about whether we should use TS for a shared component library that is being started. There's some pushback from some of the more senior developers, in particular one who stated
Obviously I'm not going to die on this hill. I'm perfectly fine with the conclusion that different teams can make the decision for themselves, and that it should not be enforced necessarily. However, being a bit newer, I want to make sure I'm accurately presenting the biggest advantages. Does anyone have any advice on how to respond to that sentiment, or the sorts of things I can bring up in support?
Thanks, have a great day!
EDIT: I'd also be very interested in hearing some potential reasons NOT to use it. I want to develop and be able to really understand the consequences, rather than trying to be dogmatic. I've brought up the need for people unfamiliar with TS to learn, slow compile times, and potential frustration with errors (which sorta goes hand in hand with the first point), but I'm not sure if there's any other very common reasons people avoid it and would love to get some perspective.
"The kinds of errors that type safety is intended to assist in the prevention of are generally avoidable with good coding practices.".Obviously I'm not going to die on this hill. I'm perfectly fine with the conclusion that different teams can make the decision for themselves, and that it should not be enforced necessarily. However, being a bit newer, I want to make sure I'm accurately presenting the biggest advantages. Does anyone have any advice on how to respond to that sentiment, or the sorts of things I can bring up in support?
Thanks, have a great day!
EDIT: I'd also be very interested in hearing some potential reasons NOT to use it. I want to develop and be able to really understand the consequences, rather than trying to be dogmatic. I've brought up the need for people unfamiliar with TS to learn, slow compile times, and potential frustration with errors (which sorta goes hand in hand with the first point), but I'm not sure if there's any other very common reasons people avoid it and would love to get some perspective.
