Hacker News new | ask | show | jobs
by arc_of_descent 1174 days ago
Write unit tests, document code, optimize code, explain code. I've tried Python functions and React code. It even converted a class based React component to a functional style component!
1 comments

Can it really optimize code? And what granularity have you seen it succeed?
Sorry, I really meant refactor here. I did ask it to optimize code, and it came with a suggestion of trimming down my function into a smaller chunk and creating a new function. So it actually refactored it TBH, but I am going to try how I can check if it can optimize code too.