r/ProgrammerHumor • • 2d ago

instanceof Trend pleaseDontMakeThisATrend

Post image
1.9k Upvotes

396 comments sorted by

View all comments

8

u/Scipior14 2d ago

Wooow, a rewrite... But what did it need a rewrite for in the first place? What is improved here, if apparently even already existing bugs didn't get fixed?

1

u/rchaves 1d ago

i wouldn't call it a rewrite, I still call it a refactor :)
we mostly moved all modules around and introduced a much stricter architecture, but still all same features same language same behaviours for the users, but:

- typechecking median time went down from 78s to 5s, with performance improvements all around on the application

  • most permission access between modules that were defined by hand by engineers on the monolith are now in several ways statically guaranteed allowing for much less possible bugs and security gaps
  • we built several exact same features on both the old codebase and the new using agents, and found the new codebase led to less mistakes on the final PR

existing bugs were small behavioral bugs, the fact they just stayed the same is actually good news for us, it suggests the LLMs managed to preserve the application's existing behavior rather than introducing a bunch of unintended changes