AI Coding: Ready to Automatically Fix Technical Debt with AI? ??
CodeScene ACE: automatically fix technical debt and complex code with AI-driven refactoring.

AI Coding: Ready to Automatically Fix Technical Debt with AI? ??

Wouldn’t it be great if you could automatically reduce technical debt using AI? By doing so, you’d have much more time to develop fun features and interesting capabilities instead of wading through overly complicated code.

That’s exactly what CodeScene ACE (still in beta) can do for you. Refactoring complicated legacy code has never been this easy — or this fun! ??


AI-Refactor Complex Java Code

In our demo, you’ll see a piece of Java code with numerous branches and complex expressions. CodeScene ACE identifies these complexities, shows that the method is indeed complex, explains how we identify complex methods, and details the metrics we use. This type of code can be a nightmare to maintain.

With a single click, you can automatically refactor the code. ACE suggests a cleaner, more efficient way to write it. This isn't just about simplifying the code; it’s about ensuring that the refactoring improves the code’s overall health while preserving its original behavior.




Why Focus on Improving Existing Code?

We've previously written about guardrails, covering in-depth why you need to use them for AI-assisted coding and why code quality is even more important now in the AI age, as software development teams worldwide adopt AI coding tools.

A 2023 study found that popular AI assistants generate correct code in only 31.1% to 65.2% of cases. Similarly, in our Refactoring vs. Refuctoring study , we found that AI breaks our code in two out of three refactoring attempts(!). A human developer shipping code of such low quality would have a hard time keeping their job, so why do we accept such a low performance rate when it comes to AI?

An easy answer is that AI serves as a shortcut: a developer might know what code they want, and the AI might help them get there faster. A skilled developer can then inspect, tweak, and correct the resulting code, hopefully in less time than if they’d started from scratch.

However, when working with code, the actual typing isn’t the hard part. The bottleneck is the effort required to understand existing code. As AI accelerates the pace of coding, human readers will have a hard time keeping up. The more code we have, the more difficult it becomes to understand a software system. Acceleration isn’t useful if it drives our projects straight into a brick wall of technical debt.


Ready to sign up for CodeScene ACE? Read more, join our waitlist , and get product updates.



Simon Ejsing

Vice President of Architecture

2 个月

How can we get our hands on this tech?!

This would be great. Languages supported?

回复
Dr. Rahmat Ullah

Lecturer, School of Computer Science and Electronic Engineering, University of Essex

2 个月

Interesting

要查看或添加评论,请登录

社区洞察

其他会员也浏览了