Hacker News new | ask | show | jobs
by coding123 2738 days ago
Our team is doing a slow replacement of code written in Java to node. At almost every turn we find that the replaced code is 50 to 80 percent smaller and much easier to read. We're doing it slow because we are phasing in new features at the same time to make sure stakeholders get value while we do it. It's been tremendously successful and cost effective keeping the old and the new running simultaneously.
2 comments

Awesome results! Is the new code smaller due to the different programming language (JS) or a better understanding of the program's requirements?
Sadly just converting poorly written code that doesn't use re-use mostly. Other than that, we're using multiple typescript frameworks for data wrangling and transport and validation without having to re-define objects as DTOs, Models, etc... And taking advantage of graphql has been, massively helpful.
A bit off-topic but: what made you go to Javascript specifically?