this post was submitted on 14 Oct 2025
9 points (71.4% liked)

Programming

23631 readers
204 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Hey,

I’m exploring the idea of a webpage where you can paste a function (or a block of code) in any programming language, and it outputs a list of specific, actionable refactoring suggestions - things like:

  • Unnecessary complexity
  • Poor naming conventions
  • Duplicated logic
  • Violations of language-specific best practices
  • Readability issues

The goal is to help developers quickly spot areas for improvement and make their code cleaner, more maintainable, and easier to understand.

Questions for you:

  • Would you use such a tool? Why or why not?
  • What features would make it important for you? (e.g., integration with GitHub, support for obscure languages, explanations for each suggestion, etc.)
  • Are you ready to pay for a tool like this (for example, paying for access to advanced checks or being able to tune checks for your programming style)?
  • Are there existing tools you love (or hate) that do something similar?
top 19 comments
sorted by: hot top controversial new old
[–] Jayjader@jlai.lu 24 points 1 month ago (3 children)

Are you aware of sonarqube?

It does the complexity and best practices parts of your list, and can be plugged into continuous delivery systems. Jetbrains' IDEs have a free plugin that will run it locally, and I would be surprised if similar integrations didn't exist for (neo)vim, vs-code, etc.

It's pretty decent at explaining why it considers a chunk of code to be problematic, and can even propose quick fixes as if it were an LSP.

You can also flag issues it finds as "intended/deemed non-fixable by the dev(s)".

[–] pHr34kY@lemmy.world 7 points 1 month ago* (last edited 1 month ago)

I use this at work. It's actually quite good. Its suggestions aren't the sort of thing you'd ignore.

It does slow the IDE on large projects though.

[–] YUART@feddit.org 7 points 1 month ago (2 children)

Hi, hmm, I think that's almost the tool I had in mind. So if sonarqube exists, I guess there is no need for another tool in the same area. Thanks for sharing

[–] Jayjader@jlai.lu 8 points 1 month ago

You're welcome! I would suggest giving it a try, maybe there's a feature or functionality you have in mind that sonarqube doesn't do.

[–] entwine@programming.dev 3 points 1 month ago

Just because a product exists already doesn't mean there isn't opportunity for a competitor! You could try competing on price, maybe offer a more generous free tier which can help you get more sign ups. Maybe make it free for self-hosting, but you make money offering it as a service as most devs probably won't bother.

Sonarqube proved there's a market for this type of product already, which is the hardest part!

[–] Kissaki@programming.dev 2 points 1 month ago* (last edited 1 month ago)

I love SonarQube (previously called SonarLint). I/We use it at work in dotnet/C# and web/Blazor projects.

Their free offer is great.

The dotnet and Visual Studio analyzer suggestions are already a great tool. Adding SonarQube on top, and recently I've added Roslynator Analyzers as well gives great free tooling, linting, suggestions of various levels, and quick actions to apply.

With the commercial backing they have, SonarQube is very well maintained/developed as well, with regular updates.

[–] 6nk06@sh.itjust.works 8 points 1 month ago* (last edited 1 month ago) (1 children)

JetBrains and Cursor do that already but better and without pasting anything. I'm sure it also exists with Copilot, Claude or ChatGPT.

[–] YUART@feddit.org -3 points 1 month ago
[–] Feyd@programming.dev 7 points 1 month ago (1 children)

This has been a feature in IDEs since like 2000.

[–] YUART@feddit.org 3 points 1 month ago

Hi, can you share an example?

[–] RonSijm@programming.dev 3 points 1 month ago (1 children)

Are there existing tools you love (or hate) that do something similar?

This sounds similar to "Static code analysis" tools. Especially now that these code analysis tools are getting AI integrations.

For example we use coderabbit.ai. That does a code review on PRs in github, and reviews these sort of things. Especially the simpler things that you've mentioned like poor naming conventions, violations of language-specific best practices, and readability issues. I'm not sure if it will automatically come up with "large refactoring opportunities" by default - but maybe you can custom-prompt configure it to try, I guess

(Comment) Why have a separate webpage if such of helper can be built into IDE/editor?

Coderabbit also has IDE extensions: https://www.coderabbit.ai/ide - I think the separate webpage exists for org level configurations and overviews. These "best practices" are probably defined on a team level to ensure everyone uses the same code-style and things like that

I'm not sure if "just a website to copypaste code and get reviews" is really a good idea. Maybe for juniors that want to review one class or method or something. But usually code is spread across multiple files, and structural refactor opportunities are on a larger scale then just a couple files

[–] YUART@feddit.org 2 points 1 month ago

Hi, thanks for sharing the info, appreciated

[–] achacon@lile.cl 2 points 1 month ago (1 children)

@YUART what would be tje difference to do it with Zed or Avante (nvim) directly? I already ask sometimes to my editor for refactor a code. I also somtimes copy and paste it to Lumo (from proton)

[–] YUART@feddit.org -1 points 1 month ago (1 children)

I believe those are tools that use general-purpose LLMs, which aren't tuned for refactoring specifically. So I guess a specifically tuned tool for refactoring will beat those you mentioned in refactoring tasks.

I also imagine a tool that is not AI-driven. While AI will be used for sure for some checks, I believe static checks and other "computable" heuristics will produce better output faster. I don't want to throw a bunch of prompts into AI and sell mediocre-quality software to people.

But overall, I think about what you said, but from another perspective - why have a separate webpage if such of helper can be built into IDE/editor? I think this is harder to do than to create a webpage, but maybe this will be better for users (developers).

[–] achacon@lile.cl 3 points 1 month ago (1 children)

@YUART yes too, i thibk will be hard to hace another tab just for that purpose. And for refactoring you must know what refactor, I mean, I know when a name is no the best or the code was repeated or a code produce a n+1 problem, so when I ask for refactor to an LLM I make a specific query and not just: refactor it

[–] YUART@feddit.org 1 points 1 month ago

That's true, and that's a hard part. I have some ideas on how to solve that problem, but I can't prove anything because this is the first time I'm working on a helper like that one.

That's also the reason why I decided to ask people - there is no point in engaging in complex problem-solving, like for that tool, to only find out that no one actually needs it

[–] PokerChips@programming.dev 2 points 1 month ago

Make an open source project for this. I'd love something like this for neovim. Not that I ever have any novel code to leak but I still find it odd that we just invite businesses to just spy on our code.

[–] sdiowN@sh.itjust.works 1 points 1 month ago (1 children)
[–] YUART@feddit.org 1 points 1 month ago

Hi, not really. Please, see my comment -> https://feddit.org/post/20205034/9426357