loading...

re: Refactoring old code vs Rewriting everything for long-term? VIEW POST

FULL DISCUSSION
 

Selling the idea of changing a technology only because it will be more maintainable is sometimes really hard depending on your client. To obtain your seal of appeoval I strongly suggest you find flaws in the current code that would not be present with TypeScript.

Let'a say you use AngularJS 1.6

It is known to be vulnerable to two major XSS attacks, which is a good point to talk about to your client.

Otherwise, I'm in the rewrite camp, but I might be biased, I just really love Typescript

 

Thank you for sharing your thoughts!

Now I reached a point in my app where I feel types are really needed.

Especially when I've been away from the project for a few days, I find it quite difficult to remember the flow of my app.
If there was an interface that I could inspect in order to remind myself what a part of code does... I think it would a lot more easier.

Tests would help here as well. :D

 

The flow is mainly why I use Typescript. It's just so easier to remember.

Good luck in your further projects 😁

Thanks! You too!

Code of Conduct Report abuse