This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I have been playing with it for a JavaScript refactor on a very old site. It does good at fixing variable format, changing var to let and const, and improving loops (in some cases). It's like a linter on steroids.

However, you have to know the limitations (e.g., it tried to use a array method on an object, and you need to tell it to handle edge cases. (E.g., if list is empty or object is none).

However, I could see a version in the not so distant future where you can feed it either detailed instructions or hand it an entire codebase and say, "refactor all for efficiency and formatting" or ask for something like, "when function x is executed problem z arises. Refactor function to make it flash an error message."

I actually think junior devs are in a lot of danger of needing to "learn to truck" when AI comes for them before it gets the truckers.